EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

prevent allocations on MultiplyMatrixVector #644

Closed boombuler closed 5 years ago

boombuler commented 5 years ago

due to a lot of calls in ShouldDraw all those allocations of the float slices trigger the GC more often then needed.

this change reduces the allocation from 3 slices per call to 0.

Noofbiz commented 5 years ago

Looks great, thanks!