Im using managed images, but I am having some troubles with when they are loaded into video memory. Basically this is what I am doing now:
- Use ImageIO to read a large PNG from disk (20x20 tiles, 242kb)
- Split ut up into tiles/sprites using gc.createCompatibleImage(width,height, Transparency.BITMASK);
- Draw the individual sprites to screen
The first time they are drawn onto the screen there will be a slight delay which i guess is because they are loaded from disk into video memory, but after this inital delay everything runs smoothly. What can I do to make all my images go straight onto video memory?