For my application, timing is quite critical. I need to know when exactly the buffers are swapped.
First I was thinking to use glfwGetTime() and just keep track of the time, however in no way this guarantees a high accuracy; you might be off by a few miliseconds or something.
Hence, I was thinking that it would be awesome if there is a callback, which is called everytime the buffers are swapped. However, after looking in the GLFW documentation, googling and looking through many posts, I haven’t found anything I could use.
My question, thus, is: is there such a callback (I fear not), and if not, what else can I do to have an accurate estimation when the buffers are swapped?
Thanks in advance:)