Page 1 of 1

Performance differences with float vs double for Real

Posted: Sat Nov 16, 2019 5:52 am
by jharwell
Hi Carlo,

Do you have any experience with seeing noticable performance gains when you use float instead of double for the Real primitive? Were the losses in simulation fidelity significant ? I haven't been able to find anything in the docs showing the conditions under which one vs. the other could/should be used.

Thanks!

- John

Re: Performance differences with float vs double for Real

Posted: Sat Nov 16, 2019 5:55 am
by pincy
In general, on 64bit machines it's better to use double for reasons of numerical stability. Float is for when ARGoS is crosscompiled on real robots.

Re: Performance differences with float vs double for Real

Posted: Mon Nov 25, 2019 6:51 pm
by jharwell
Got it, thanks!