Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Re: JInput and Steam overlay on: 2015-04-21 08:50:36
Just wanted to say, we fixed the bug  Grin. Or worked around it actually..

I'll post it here, maybe it helps someone else.

The problem is with the Raw input plugin for windows. Luckily, you can disable it:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
AccessController.doPrivileged(new PrivilegedAction<Object>() {
        public Object run() {
            String os = System.getProperty("os.name", "").trim();
            if (os.startsWith("Windows")) {  

                // disable default plugin lookup
                System.setProperty("jinput.useDefaultPlugin", "false");

                // set to same as windows 7 (tested for windows 8 and 8.1)
                System.setProperty("net.java.games.input.plugins", "net.java.games.input.DirectInputEnvironmentPlugin");

            }
            return null;
        }
    });
2  Java Game APIs & Engines / JInput / JInput and Steam overlay on: 2015-04-03 09:01:59
Hi all!

We are integrating steam support into Caromble! and we are running into a bit of trouble that we can't find a way around ourselves.

The problem is that after the Steam Overlay has been active, we are no longer getting any input into our game.

We are using JInput for the input handling.

Our current work-around involves restarting JInput every time we don't get input for a few seconds. The downside of this approach is that this makes the windows plugin a bit unstable (i.e. it starts missing some input). We could theoretically patch the windows client for our situation, but I fear that would only lead to more similar fixes for the other platforms we support. And also it feels like a bit of a nasty hack.

So here's my question. Does anyone have experience with the Steam Overlay and getting the focus back to the game? Any clue what else we could try??

Thanks!

3  Discussions / General Discussions / Re: Best lwjgl game graphically? on: 2014-03-11 09:51:46
Is it bad style to mention your own game here? Cause I like the way Caromble! looks too.

But in the end it's all a matter of taste I guess.
4  Discussions / General Discussions / Re: Blogpost about NVIDIA Optimus and a .exe launcher on: 2014-03-02 16:08:16
Yeah, that's mostly why I posted. Maybe it will save the next guy some trouble...
5  Discussions / General Discussions / Re: Blogpost about NVIDIA Optimus and a .exe launcher on: 2014-02-28 09:18:00
For this trick to work you need to export the variable in such a manner that the driver can find it by looking at the compiled .exe. It probably uses something like __declspec(dllimport) to find it.

It looked at the documentation of batch to exe, but I couldn't find a way to do this. Did I miss something?
6  Discussions / General Discussions / Re: Blogpost about NVIDIA Optimus and a .exe launcher on: 2014-02-25 19:15:21
But that way I couldn't have set the global variable NvOptimusEnablement that I needed to get the Optimus driver to select the high performance GPU for my game, instead of the integrated GPU.

7  Discussions / General Discussions / Blogpost about NVIDIA Optimus and a .exe launcher on: 2014-02-25 13:03:13
Hi,

Recently I have spent quite some time trying to get the NVIDIA Optimus driver to select the high-performance card by default for my Java game.

I turns out that (as far as I know) the only way to do that is to launch your java game from C++.

Since it took me some time to figure it out, I wrote a bit about how I did it.

Hopefully it will save someone some time!

BTW, this thread helped quite a bit.

Cheers!
8  Discussions / General Discussions / Re: Blogpost about the garbage collector and GPU resources on: 2013-11-13 18:08:14
I did see that post you mentioned, but I forgot all about it. A pity, for it would have saved me some time :-)

Minor difference is that I ran into problems with GPU memory instead of native buffers, but the cause is exactly the same. I was wondering if I should post on the Ardor forum to alert people about the problem, but now I see that you have already done so.
9  Discussions / General Discussions / Re: Blogpost about the garbage collector and GPU resources on: 2013-11-13 15:21:17
Thanks :-).

Using this mechanism for keeping track of which objects aren't destroyed is a clever trick, maybe I'll add it to our engine.
10  Discussions / General Discussions / Blogpost about the garbage collector and GPU resources on: 2013-11-12 12:51:04
Hi all,

I just wrote a small blogpost about using the garbage collector for objects that have allocated GPU resources.

You can read it here: http://goo.gl/izYWng

I hope you find it interesting, and I'm curious to hear about other strategies that I could employ.

Cheers!
Pages: [1]
 
bilznatch (27 views)
2015-08-04 11:03:17

SHC (44 views)
2015-08-01 03:58:20

Jesse (25 views)
2015-07-29 04:35:27

Riven (48 views)
2015-07-27 16:38:00

Riven (26 views)
2015-07-27 15:35:20

Riven (28 views)
2015-07-27 12:26:13

Riven (19 views)
2015-07-27 12:23:39

BurntPizza (42 views)
2015-07-25 00:14:37

BurntPizza (56 views)
2015-07-24 22:06:39

BurntPizza (35 views)
2015-07-24 06:06:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!