hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
11.12k stars 664 forks source link

Update image.DrawTriangles to re-use indices #3026

Closed ernestrc closed 5 months ago

ernestrc commented 5 months ago

Reduces allocations and GC overhead for programs that call ebiten.Image.DrawTriangles hundreds of times per rendered frame.