开发者

Opengl acceleration problem in java

开发者 https://www.devze.com 2023-03-23 11:29 出处:网络
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

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

精彩评论

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

关注公众号