How to debug a game
Posted: Sun Jul 27, 2014 7:57 pm
Hi,
I am trying to find what goes wrong in my game.
But it is too fast for me to understand as normal speed.
When I reduce the overall speed things change a bit as steps are smaller, and it takes more iterations to do the same thing.
What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...
Other than random.seed() and the actual "dt"s, what else is different between 2 runs?
Seems a simple thing to add on my side, maybe we have it already.
I am trying to find what goes wrong in my game.
But it is too fast for me to understand as normal speed.
When I reduce the overall speed things change a bit as steps are smaller, and it takes more iterations to do the same thing.
What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...
Other than random.seed() and the actual "dt"s, what else is different between 2 runs?
Seems a simple thing to add on my side, maybe we have it already.