Intel HD Graphics / GPU on Java

asked 2013-01-18 18:53:16 -0500

rf314 gravatar image

updated 2013-01-19 11:58:57 -0500

Hi all,

I'm running Fedora 17 on a decent laptop (Intel Core i5 with HD Graphics 3000, nVidia GeForce GTX 670m). I'm using the nouveau driver.
I recently tried playing Minecraft, which ran rather smoothly (around 30fps) but I noticed that it only used the Intel HD Graphics chipset.

Is there anyway to force OpenJDK to use my graphics card to render the game?

Thanks in advance,

rf

[edit]
Ok so I've been looking around trying to use Bumblebee, but my applications crash when starting them with optirun:

~$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.335 FPS
300 frames in 5.0 seconds = 59.984 FPS
300 frames in 5.0 seconds = 59.980 FPS
300 frames in 5.0 seconds = 59.981 FPS
300 frames in 5.0 seconds = 59.981 FPS
^C
~$ optirun glxgears
Error: nConfigOptions (15) does not match the actual number of options in
       __driConfigOptions (10).

The first frame of glxgears is drawn correctly, but it instantly freezes without any more info. Apparently, that error I get is not even fatal as I've seen it on other people's logs when glxgears continued running properly.
This might have something to do with my setup of Bumblebee and/or VirtualGL, but I'm out of ideas here. =/

rf314

edit retag flag offensive close merge delete

Comments

Have you tried primusrun instead? Also it has different settings, ex. vblank_mode=0 primusrun something will run something with disabled vsync. Also the bridge used,etc. Some laptops allow disabling the integrated GPU in favor of the discrete one - not a good idea if you ask me, but could work well for you.

You can also try the proprietary drivers with Bumblebee(which works fine, the GPU is turned off when unused and all .. or if you want you can use nVidia's driver without Bumblebee,since nVidia has added optimus support but doesn't allow you turn of the GPU)

x0rzz0r gravatar imagex0rzz0r ( 2015-04-06 12:49:22 -0500 )edit