$ ./guess_the_languageGame Dev
Game Dev · hard · #270

Why do some lockstep RTS games use fixed-point maths instead of floats?

  1. Floats can differ across machines
  2. Fixed-point always uses less bandwidth
  3. GPUs cannot handle float maths
  4. Fixed-point avoids all overflow
Different CPUs, compilers and instruction sets can round floats differently; integer fixed-point gives bit-identical results so every peer stays in sync.
Play Game Dev ▸