Questions:
I am working on a procedural Space game that deals with long distances. I am researching the best way to measure distances efficiently between a lot of objects (Example 1000 Stars) Would dividing these distances before using the distance function (for the purpose of say... finding the closest star) improve performance overall? I'm not having performance issues I am just wondering.
In my estimation B seems to be faster but I am having trouble proving this...
youtu.be/NLAvBOgx0RE
Develop games in your browser. Powerful, performant & highly capable.
There shouldn't be any issues with performance.
The issues would be with accuracy if you do a lot of rounding.
Thanks Newt. Posting a video. Yeah... it is working really well! Testing autopilot code today:
Thanks,
Gillis
Computers don't care if they have to add 10 or 100000000, but if you divide first before adding, that's two things the computer has to do instead of one...