Re:It Can Happen to You
by scaramanga on Thursday March 04, 2021 @02:21AM
(#26339632)
Great data-point, I was wondering what the costs of all that would be.
How do you measure when the frame is done, are you waiting for a vsync?
It's self-reported by the logging system after glfwShowWindow() returns for the first time, so probably not 100% accurate, but reasonably close.
A truly fancy system would be something like Tristan Hume's keyboard-to-photon latency system: https://thume.ca/2020/05/20/making-a-latency-tester/
In practice, I'm racing mesh loading against "how long does the OS take to give you an OpenGL context", which is rarely below 160 ms (longer if it has to switch from integrated to discrete GPU).