Some bug fixing

Published May 21, 2005
Advertisement
Do you know the bug that is the hardest to fix ? The one that doesn't exist.

Let me explain: some days ago i had a performance problem with my engine. For some reason, all the rendering calls seemed to run extremely slowly (by a factor of 10 or about). Nothing seemed to change after i rebooted or reinstalled the latest drivers.. and i didn't change any major thing in my rendering code. I spent, oh well, about 3 hours ? trying to find the cause of this problem.

Finally i got it: i forgot that i had installed GLtrace (a DLL to record GL calls in a text file) in my app's directory in order to test something, some days before. Once my tests were done, i completely forgot to disable GLtrace. So it was still running and logging everything.. every single GL call! No surprize it became slow!

Yesterday i also fixed a small bug in my planet code. I was implementing planet revolutions (self-rotation around an axis) and forgot that my scene graph is fully hierarchical. When a planet was rotating, it made its moons follow the rotation movement too (not only the translation). In order to fix that, i had to split each planet into a center of mass, and an actual body. The fix was easy to implement.
0 likes 4 comments

Comments

Stompy9999
I once made a mistake when making a logging system that wrote a message to the log every iteration of the game loop. I opened the log and saw that I had 5000 game loop messages.
May 21, 2005 06:20 AM
Ysaneya
In the same genre, i once had a log system that opened the log file in append mode. After months not caring i discovered the log file had grown to more than 3 Gb. Always fun.
May 21, 2005 10:10 AM
Stompy9999
Seriously?! I didn't know a text file could hold 3GB!
May 21, 2005 10:42 AM
Evil Steve
Yup, it probably won't open in Notepad, but it's perfectly valid. Not fun, but valid [smile]
May 24, 2005 08:37 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement