SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.47k stars 472 forks source link

Prevent texture switching #2973

Open tobbi opened 3 weeks ago

tobbi commented 3 weeks ago

One common source of stalling in rendering is switching between OpenGL textures. That's why it's more customary to create sprite sheets from the SuperTux sprites.

I'd like to merge the SuperTux textures into one OpenGL texture (instead of multiple) and change the draw calls so that only this one texture is referenced when a draw_image (or whatever) call is used.