I have a Java application I am developing and I would like to use Ubuntu to work on it at home. The application displays some images and allows a user to pan and view. The same application runs smoothly on a lower spec Windows machine at work.
When I tested it on my much more powerful Ubuntu laptop the graphics are slow and jumpy. I played around with different versions of Java until I found the trick to add the argument
-Dsun.java2d.pmoffscreen
and this has fixed it. Could someone explain why this works and what is going on?