Hey guys, not sure if this is the right place for this but here it goes:
I’m working on a tile engine, like 2d minecraft or whatever. I am organizing the blocks in chunks and draw a whole chunk if any of it is on-screen. If I am drawing like 20 chunks or something like that then its no problem (default zoom and screen size only 12 chunks MAX are drawn anyway). BUT, when the user zooms out and a few hundred chunks need being drawn with 256 blocks in each of them, it obviously drops the FPS quite significantly.
I was wondering if it would make any sense at all to take some sort of “chunk snapshot” where it does a one time thing and draws all the blocks in the chunk onto an image and every draw sequence after that just draws that image. I THINK this is a good idea, and I think I picked it up from somewhere else (I’m not that clever :P) but just in case I need some validation xD
IF this makes sense and would boost performance, how exactly could I go about doing this? (I’m using Slick2d BTW)
Thanks
EDIT: Also if It’s unclear what I’m asking just tell me