[solved] Enabling hardware acceleration (Java2D)

Hey JGO, I found this page here: http://www.m0interactive.com/archives/2008/12/30/using_hardware_acceleration_for_java2d.html

Which suggests that by enabling the 2 property’s below, I’ll enable hardware acceleration in my game and enhance my rendering.


-Dsun.java2d.opengl
-Dsun.java2d.d3d

I had a few questions to ask, before trying to implement it into my game.

Questions:
Will these, when set by ‘System.setProperty()’ truly enable hardware acceleration?
Can I enable/disable these property’s on the fly (Example JComboBox for high/low quality rendering) and have them take effect instantly?

Thanks for any feedback / info guys :slight_smile: