1) how can determine the size of the window decoration of
a glut window? my window is slightly displaced when i re-init it....
2) i want to put a fps-throttle in my program so i added the following
code to the end of my display func which is registered via
struct timeval ltime,ttime;
struct timespec wtime;
is done in the normal init of the program so the time struct is not
but it differs about 7 milliseconds (31fps instead of 25 fps)
i tried usleep() and select(0,NULL,NULL,NULL,&timeout) too.. same
i also tried to do it via a glut timer callback but its too slow then
gettimeofday seems to give me correct values (~15000microsecs/frame)
i have no idea what i could do ...
thanks in advance