Download

Question on basic math library functions.

Hi guys, really quick questions right here.
a. Which is more economic, performance-wise, trigonometry functions ( specifically acos, asin, acosf, and asinf ) or square root sqrt function?
b. Is the difference significant (just roughly speaking)?
c. Is unreal’s sqrt function is economic compared to other cpp libraries’, or is it just another square root function not different at all in any meaningful sense.

Thanks in advance, and take care in these rough times guys.

Profiling tools can answer your questions…
You can use SCOPE_CYCLE macros in c++ to measure function cost;

Thanks indeed.