Custom math functions vs. supplied Math functions?

前端 未结 5 2035
滥情空心
滥情空心 2021-01-28 14:10

I am basically making a Java program that will have to run a lot of calculations pretty quickly(each frame, aiming for at least 30 f/s). These will mostly be trigonometric and p

5条回答
  •  鱼传尺愫
    2021-01-28 14:52

    The built-in Math functions will be extremely difficult to beat, given that most of them have special JVM magic that makes them use hardware intrinsics. You could conceivably beat some of them by trading away accuracy with a lot of work, but you're very unlikely to beat the Math utilities otherwise.

提交回复
热议问题