Re:Minimal OpenGL 3.3 Core Profile Demo
by Narishma on Sunday June 07, 2015 @07:43PM
(#9676729)
This uses gettimeofday() for timing purposes which has been deprecated for a few years now. I believe it's not reliable as it can be changed by other processes running alongside your application (like ntpd for example). A better alternative is clock_gettime() with a monotonic clock.
[ Parent
| on HN ]
Re:Minimal OpenGL 3.3 Core Profile Demo
by elmindreda on Sunday June 07, 2015 @08:10PM
(#9676810)
Since the demo now uses GLFW it could call glfwGetTime, which uses clock_gettime where available.