toji / gl-matrix

Javascript Matrix and Vector library for High Performance WebGL apps
glmatrix.net
MIT License
5.4k stars 725 forks source link

fromQuat2 allocates a vector on every call #459

Open rafern opened 1 year ago

rafern commented 1 year ago

fromQuat2 should use a temporary shared vector instead of allocating on every call, so that it's nicer to the GC

Looks like there's other functions that also do this, such as: