Hello there, I’m Marcio Ribeiro from Brazil and just started out trying to write some C + OpenGL (GLUT) code.
I did managed to write some stuff that rotates a Torus (doughnut) with keyboard interaction (when i press r it rotates clockwise and with R anti-clockwise), so far so good. The problem appears when i just keep r or R pressed, i can clearly see the window redrawing itself (glutPostRedisplay calling my display backend), is there anyway to make it smoother (like games does)?
My machine isnt too fast (Celeron 400Mhz, 128Mb RAM, ATI Rage 3D Pro) tough.
Originally posted by mmr:
[b]Hello there, I’m Marcio Ribeiro from Brazil and just started out trying to write some C + OpenGL (GLUT) code.
I did managed to write some stuff that rotates a Torus (doughnut) with keyboard interaction (when i press r it rotates clockwise and with R anti-clockwise), so far so good. The problem appears when i just keep r or R pressed, i can clearly see the window redrawing itself (glutPostRedisplay calling my display backend), is there anyway to make it smoother (like games does)?
My machine isnt too fast (Celeron 400Mhz, 128Mb RAM, ATI Rage 3D Pro) tough.