Jump to content    • Log In with Google      Sign In      •
Create Account  Rapid-fire debugging thoughts  Posted by
ApochPiQ, 16 May 2012 · 16,559 views  Just a collection of
assorted things that have been running through my mind during
the past week and a half of marathon debugging...    • Unless
you have a really darn good reason, don't use different
coordinate systems for different parts of your game, and
especially not if you're using floating-point representations.
Conversion back and forth between coordinate spaces will
inevitably introduce floating-point drift, and if your data flow
involves conversions, you will start to see discrepancies
between systems that use the different coordinate spaces. This
can be a nightmare to figure out.   • If you're dumping a lot of
stuff to a log using printf()-style format commands, it pays to
be sure you're dumping an actual float and not a SIMD float
wrapper struct. What appears to produce sane numbers on one
machine/architecture can start spewing random stack/heap