I am developing a full screen exclusive mode isometric tile game from scratch -i.e. I don’t use a game engine- and I have a problem when it comes to drawing “BufferedImages” and “Images” on screen. (I am using active rendering)
The default FPS value is set to 80, but when the map tiles are drawn on screen the FPS value drops at 60. The map size (=array’s size) at the moment is 100 tiles (10 width * 10 height). If I change that to 100*100=1000 tiles then the FPS value drops to 0 and the game cannot be played.
The code I use to load buffered images is the following:
[quote]BufferedImage image= ImageIO.read(new File(file));
[/quote]
while the code to load Images is the following:
[quote]Image image= ImageIO.read(new File(file));
[/quote]
where file is a string containing the path to the image.
The size of the tile-image that it loaded is ~3KB.
Do you have any idea why does the FPS value drop? Or a different way to suggest on how to draw images without occuring problems to the FPS value?
Thanks in advance,
sp0wner