Re:Cosmoteer: A starship design, simulation, and battle game
by mattnewport on Tuesday September 17, 2019 @08:05PM
(#21001291)
If they're using lock step deterministic networking like many RTS games then simulation results using floating point can differ between 32 bit and 64 bit machines (or between release and debug builds on the same architecture).
[ Parent
| on HN ]
Re:Cosmoteer: A starship design, simulation, and battle game
by gridspy on Wednesday September 18, 2019 @04:17AM
(#21003298)
Perhaps someone will benefit from a more detailed explanation:
To be more specific, some CPUs will increase or decrease the accuracy of floats in some situations.
Different CPU instructions will do different things. For instance a "multiply and add" instruction might store a high resolution float, where a different approach would suffer an expected rounding error.
If two computers get different answers in the maths, their simulation of the world drifts apart over time. Then they start to disagree on what is happening.
When you change compiler settings, platforms (32/64/windows/mac/linux) the compiler is likely to make different choices about which instructions to use where.