Godot Version
4.4.1
Question
I recently acquired a tileset atlas that looks fantastic at first glance — everything about it seems great except for its size.
The resolution is 2816×7248, which makes finding a specific tile quite challenging. Thankfully, the author thoughtfully divided it into over twenty smaller themed atlases, which makes searching much easier.
So I imported these atlases into the TileSet of the TileMapLayer that powers my main game world — and that’s when I ran into the problem I want to ask about:
Even without drawing anything yet, simply running the scene causes a 5–6 second stutter.
I assume this is because it’s loading the TileSet? My project is a 2D game with a resolution of 360p, so I had never really considered performance issues before. But since this game involves frequent scene switching, this stutter is obviously frustrating and would greatly harm the player experience.
In the debugger, I noticed that video memory usage is about 200 MB, most of which comes from loading the TileSet PNG files. I’m using a modern GPU with 12 GB of VRAM, so I suspect the problem lies in how I’m managing the TileMap rather than with the hardware.
I’ve read about chunked or region-based loading as a possible solution, but isn’t that more of an optimization for huge maps?
Right now, just loading the TileSet for each scene already takes 5–6 seconds.
Any kind of help would be gratefully appreciated