I’m using the Slick2d library to create a game, with a large background. I’m using
mapback.startUse();
for(float x = 0; x < mapwidth; x+=200){
for(float y = 0; y < mapheight; y+=200){
mapback.getSubImage(0,0).drawEmbedded(x,y,200,200);
}
}
mapback.endUse();
to draw the same background over a large area, but it takes a bit of GPU and its slowing my game down and creating graphical glitches.
So is there a way to draw the image once (maybe in the init()) with OpenGL or something, so that i dont have to update it every loop. The image is static and only goes away when the state changes, so i will have to also dispose of the image, too.
Thanks in advance.