<p>When running a Java application and routing the output to another display 
using X Windows, I see a trade-off between performance (frame rate) and 
horizontal image tearing. To remove the complexities of my application from the 
issue, I'll use the <a 
href=http://java.sun.com/products/java-media/2D/samples/java2demo/Java2Demo.html>Java
 2D Demo</a> as my example. </p>

<p>When I set the DISPLAY environment variable to another machine on my gigabit 
network and launch the Java2D Demo, the performance is fairly slow. Going to 
the Transforms tab and enlarging the lower panel - 
demos.Transforms.TransformAnim - for example, shows a fairly slow animation. 
Running again with <a 
href=http://java.sun.com/javase/6/docs/technotes/guides/2d/flags.html>off-screen
 pixmaps disabled</a> (-Dsun.java2d.pmoffscreen=false) results in a significant 
performance boost, with the unpleasant side effect of horizontal tearing.</p>

<p>I realize I may be asking to have my cake and eat it too, but is there any 
way to get the best of both worlds here? Or, if not the same performance 
without tearing, is there any middle ground? Any fancy alternatives I could try 
to reduce tearing without the performance hit seen when pixmaps are enabled. My 
app makes heavy use of moving images and the tearing seen without pixmaps 
renders it almost unusable, while the performance hit when using pixmaps makes 
a remote solution definitely unusable.</p>
[Message sent by forum member 'javajason83' (javajason83)]

http://forums.java.net/jive/thread.jspa?messageID=321294

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".

Reply via email to