-
Compile with -pg to profile, then run gprof
-
To get assembler output from GCC, try gcc -c -g -Wa,-a,-ad or just -S
-
Remember to reset all openGL modes each frame: GL_PROJECTION,GL_MODELVIEW,GL_COLOR,GL_TEXTURE. If you miss one, you get weird effects like the picture disappearing into the distance shortly after your program starts.