I created a Simple Sprite Batcher for SFML. It batches them for you automatically and improves performance! Work with your normal sprites!

It's a part of my SFML Snippets repository on GitHub:
https://github.com/Hapaxia/SfmlSnippets
and also available on the SFML wiki:
https://github.com/SFML/SFML/wiki/Source:-Simple-Sprite-Batcher

The (small) class is there along with an example program.

Here's a video using it (excuse the compression issues):
Sprite batching in SFML https://youtu.be/2P13hhMgeFs?si=dbsmnlt7NqKhy4pJ

#sfml #sprite #spritebatching #batching #performance

GitHub - Hapaxia/SfmlSnippets: Miscellaneous Snippets for use with SFML

Miscellaneous Snippets for use with SFML. Contribute to Hapaxia/SfmlSnippets development by creating an account on GitHub.

GitHub