JOML icon indicating copy to clipboard operation
JOML copied to clipboard

Optimize various things

Open 0x000006 opened this issue 1 year ago • 0 comments

Optimizations:

  • Math.PI + Math.PI -> Math.PI_TIMES_2
  • multiply with inverse numbers instead of dividing (excl. single-use scenarios)
  • move some calculations outside of loops

In the future I'm planning to do optimization with fma too, but currently i don't have the time for that.

0x000006 avatar May 15 '23 18:05 0x000006