Graphics.drawImage() in Java is EXTREMELY slow on some computers yet much faster on others

后端 未结 7 1575
情话喂你
情话喂你 2020-12-08 08:22

I\'m having a strange problem, basically in Java Graphics.drawImage() is extremely slow on some computers and faster on others. This isn\'t related to the computers power ei

7条回答
  •  抹茶落季
    2020-12-08 09:06

    If you are using sun's Java try some of the following system properties, either as command line parameters or the first lines in main

    sun.java2d.opengl=true  //force ogl  
    sun.java2d.ddscale=true //only when using direct3d  
    sun.java2d.translaccel=true //only when using direct3d  
    

    more flags can be viewed at this page

    Look at sun.java2d.trace which can allow you to determine the source of less-than-desirable graphics performance.

提交回复
热议问题