Closed codenamecpp closed 4 years ago
Draw only those sprites that are currently on screen.
The right way to do it - use spatial structure for scene (aabb tree for example).
But also there is a fast and dirty one - draw only objects which are located at certain distance from camera position.
Draw only those sprites that are currently on screen.