开发者

Opengl acceleration problem in java

Having problem with -Dsun.java2d.opengl=True.I managed to write a code i开发者_开发知识库n order to be able to set it to true/false when ever i want inside the program, but doesn't really work.i want to test the performance of java Graphics2D when opengl=true and when opengl=false.Does someone have any idea ?


You can only set -Dsun.java2d.opengl=True before you load up the GUI. So basically you can't switch between in middle of a running application and test the results like you want.

Though there might be a hidden way to force it to switch using reflection but nothing that I have come across yet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜