Files
waozi 8cca2a0169 Send Game2D shapes to SDL in batches
Every shape was its own SDL_RenderGeometry call, and Kasaival draws about
4,500 a frame. SDL merges them into few GPU draws, but its validation,
vertex copy and command upkeep per call dominated frames on phones. Shapes
that share a texture and blend mode now queue and go to SDL as one call.
Anything that draws otherwise, switches the target or clip, changes or
frees a queued texture, or reads the frame flushes the queue first. Each
shape is still checked as SDL checks a call, so a bad one drops alone.
2026-11-18 13:34:07 -03:00
..
2026-11-18 13:34:07 -03:00