Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Floats are actually much faster than integers.


That is my point. You are sacrificing the accuracy of a double for the speed of a float.

You are already storing all these values in floats which is inherently inaccurate. Also if the dt becomes very large you have bigger problems than gravity anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: