edubart / sokol_gp

Minimal modern efficient cross platform 2D graphics painter in C
MIT No Attribution
456 stars 24 forks source link

Batching algorithm #34

Closed ib00 closed 3 months ago

ib00 commented 4 months ago

What is the batching algorithm you are using? Any links or references are appreciated.

edubart commented 4 months ago

No links of reference, it's something simple I came up on my own. It just tries to merge draws defined by a bounding boxes as long there is no different draw call overlapping in between. The algorithm has to be simple to not put too much heavy work at runtime.