Skip to main content

Bad default D3D performance

1 reply [Last post]
spikeles
Offline
Joined: 2008-07-15

I think this is the right place to put it?

While playing with the JInternalFrame tutorial ( http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe... ) i noticed really really bad performance while dragging the frames. In the order of 1/2 updates per second.

I searched around and found the document at http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/gcghe.html and played with the settings:

Results:
Best performance was setting this which gave perfect rendering speed:
-Dsun.java2d.d3d=false
OR setting
J2D_D3D_RASTERIZER=rgb

Worst results:
J2D_D3D_RASTERIZER=hal

Setting it to use OpenGL with -Dsun.java2d.opengl=True was slightly better than the D3D hal, but was still very slow, 7/8 updates per second

System Specs:
Operating System: Windows Vista

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trembovetski
Offline
Joined: 2003-12-31

Thanks for the report.

This problem is most likely caused by this bug:
http://bugs.sun.com/view_bug.do?bug_id=6635462

The OUTLINE drag mode in internal frames uses XOR, which causes this bad performance you see. Just don't use OUTLINE drag mode in your application.

Thanks,
Dmitri