first understanding of timer and redraw in opengl