Took a stab at optimizing Matrix4, Frustum and BoundingBox. This PR is mainly focused on Matrix4 optimizations.
Added tests for the Matrix4 operators that were missing tests that i optimized.
No uint tests for both Frustum and BoundingBox but that's mainly because it's difficult to make unit tests for them. I've instead tested them manually. The optimizations for these two are also very small and it should be easy to see that the old and new code are equivalent.
The optimizations in Matrix4 are mainly done by replacing uses of the index operator with the row it would return and by vectorizing math operations.
Took a stab at optimizing
Matrix4
,Frustum
andBoundingBox
. This PR is mainly focused onMatrix4
optimizations.Added tests for the
Matrix4
operators that were missing tests that i optimized.No uint tests for both
Frustum
andBoundingBox
but that's mainly because it's difficult to make unit tests for them. I've instead tested them manually. The optimizations for these two are also very small and it should be easy to see that the old and new code are equivalent.The optimizations in
Matrix4
are mainly done by replacing uses of the index operator with the row it would return and by vectorizing math operations.Matrix4
benchmarks usingSystem.Numerics