<Swing Dev> How to resolve image tearing

ximalaya ims3g at 126.com
Sun Apr 10 20:15:46 UTC 2011


Hi there,
We are implementing a swing application which is required to display images of moving object at about 30 fps(frames per second).  But now we are facing image tearing problem(parts of multiple frames displayed on the screen at the same time).  Does anyone know the solution to resolve it in Java?

We found there is already an opened bug 6378181 for this issue,  however it is still in state "Accepted". Can swing developers share the fix plan/dev roadmap for this bug?
http://bugs.sun.com/view_bug.do?bug_id=6378181

>From the bug report,  it is said vsync is required to fix image tearing. Before 6378181 is closed, at current stage, is there a way to support vsync?

We've tried JOGL(java over openGL, support vsync, GLCanvas is used), it can fix image tearing issue. Howerver, there is issues to mix lightweight(text as overlay on the image) and heavyweight(GLCanvas) components. Latest openJDK 6/7 was used in our test.

See more information regarding tearing here,
http://en.wikipedia.org/wiki/Screen_tearing

Thanks and Best Regards,
Lin








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20110411/d537ed4f/attachment.html>


More information about the swing-dev mailing list