Hello all!
I’ve spent a lot of time working on video game networking, and floats are the bane of my existence. Turns out floats are basically non deterministic, unless you’re really really careful (and sadly JavaScript compilers are not careful with them.)
(See these two articles for more information:
https://gafferongames.com/post/floating_point_determinism/
https://andrea-jens.medium.com/i-wanna-make-a-fighting-game-a-practical-guide-for-beginners-part-5-f049a78ddc5b)
If Decimals are added to JavaScript, will they be cross platform deterministic? If so that would be amazing!
Hello all!
I’ve spent a lot of time working on video game networking, and floats are the bane of my existence. Turns out floats are basically non deterministic, unless you’re really really careful (and sadly JavaScript compilers are not careful with them.)
(See these two articles for more information:
https://gafferongames.com/post/floating_point_determinism/
https://andrea-jens.medium.com/i-wanna-make-a-fighting-game-a-practical-guide-for-beginners-part-5-f049a78ddc5b)
If Decimals are added to JavaScript, will they be cross platform deterministic? If so that would be amazing!