Hi, is it possible to make big worlds like terraria with one level(it might me 1/10 of terraria world and lots of static blocks) because you only see few parts of world at once or is it going to lag because of there is thousands of sprites even its not visible?
Hi there, yeah I think it will and spawning/despawning areas as needed will help.
There is an example project showing how to do this (like view distance in 3D games) but I forgot what it’s called.
Sprites outside the camera’s view are not rendered by the engine by default (this is called culling).
Your game logic that touches those objects will matter more than their visuals. This is true even with visible objects, as I have tested directly before and can have about 40k sprites on screen at once without it impacting performance.
1 Like