How To Do Timer in opengl?
Timers have nothing to do with OpenGL (disregarding GLUT, which I know very little about). Look into QueryPerformanceCounter() and QueryPerformanceFrequency() in the Win32 API.
time.h
easier? it might be a couple lines shorter.
as accurate? QueryPerformanceCounter() is much better.
Go with QueryPerformanceCounter(). You get a better timer for almost no extra work.
easier? it might be a couple lines shorter.
as accurate? QueryPerformanceCounter() is much better.
Go with QueryPerformanceCounter(). You get a better timer for almost no extra work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement