Hi, i wrote a simple 2d test application that displays 100 copies of the same tile, loaded by ImageIO.read().
I made 2 copies of the image file:
- a transparent GIF (8bits)
- a transparent PNG (24bits)
The problem is that when i render the scene using the GIF tile i reach about 900fps, when i use the PNG i get only 22fps.
The only optimization I’m explicitly using, is the double buffering.
I tried to load my tile into a VolatileImageObject, but the result doesn’t change, I think that JDK 1.5 automatically loads the tile in the video memory.
Can anyone help me? thanks.