4 ms·
Don't try this at home kids. Floating point determinism is a huge problem, especially with different chips/architectures/compilers out there.
by banachtarski 8y ago
Don't try this at home kids. Floating point determinism is a huge problem, especially with different chips/architectures/compilers out there.
- yvdriess 8y agoI wouldn't be surprised if their game state ran completely on integer types to avoid the awful x87 instructions.
- JanisL 8y agoI'd love to hear more about this, any links I can look at?
- banachtarski 8y agohttps://gafferongames.com/post/floating_point_determinism/ https://gafferongames.com/post/floating_point_determinism/ Here's a decent primer on it. In general chips implement floating point math differently and you could google terms like "floating point register" and "floating point stack" to get you started. Most importantly, floating point math is not generally commutative due to precision/rounding.
- JanisL 8y agoThanks!