3 ms·
It's not impossible, it's just hard. I covered the things you have to worry about a while ago in this article: https://randomascii.wordpress.com/2013/07/16/flo
by brucedawson 11y ago
It's not impossible, it's just hard. I covered the things you have to worry about a while ago in this article:
https://randomascii.wordpress.com/2013/07/16/floating-point-determinism/ https://randomascii.wordpress.com/2013/07/16/floating-point-...
As long as you avoid unspecified instructions (reciprocal square-root estimate, fsin) and avoid library functions or code-gen that takes different paths when SSE2/AVX/whatever are available and as long as you run the same binary on every machine (compatibility between PowerPC and x86 is much harder) you can definitely do it. Many games have.
So, if you can restrict yourself to x86 CPUs it's manageable, at least for modest sized chunks of code.