Kingdom-of-The-Moon / FiguraRewriteRewrite

rewrite of the rewrite of figura
GNU Lesser General Public License v2.1
1 stars 1 forks source link

Minor optimization when pinging matrices #85

Closed KitCat962 closed 1 year ago

KitCat962 commented 1 year ago

The row number of the matrix is only encoded once, rather than once per vector. Raw doubles are used instead of vectors. Figura never uses weirdly shaped matrices, so an additional byte can be saved by removing the row number, but I kept it for future proofing.

This saves like 3 bytes for a single mat4. Why did I bother? The repeated data irritated me. Nothing more.