Java : VolatileImage slower than BufferedImage.
Posted
by Norswap
on Stack Overflow
See other posts from Stack Overflow
or by Norswap
Published on 2010-04-21T15:06:33Z
Indexed on
2010/04/21
15:53 UTC
Read the original article
Hit count: 177
I'm making a game in java and in used BufferedImages to render content to the screen. I had performance issues on low end machines where the game is supposed to run, so I switched to VolatileImage which are normally faster. Except they actually slow the whole thing down.
The images are created with GraphicsConfiguration.createCompatibleVolatileImage(...) and are drawn to the screen with Graphics.drawImage(...) (follow link to see which one specifically). They are drawn upon a Canvas using double buffering.
Does someone has an idea of what is going wrong here ?
© Stack Overflow or respective owner