I am making a game in java and am using BufferedImages to display content on the screen. I had performance issues on low speed machines where the game was supposed to run, so I switched to VolatileImage, which is usually faster. Except that they actually slow it all down.
Images are created using GraphicsConfiguration.createCompatibleVolatileImage (...) and drawn on the screen using Graphics.drawImage (...) (click on the link to find out which one). They are painted on canvas using double buffering.
Does anyone have any idea what is going wrong here?
source
share