<Swing Dev> How to resolve image tearing
ims3g at 126.com
Sun Apr 10 13:15:46 PDT 2011
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?
>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,
Thanks and Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swing-dev