Hello,
At the end of the game loop, we display the prepared buffer. This should take almost constant amount of time since the same thing is done every iteration.
However, this time is not factored in the time allocated for every frame. We wait for the entire target time of a frame before we actually draw.
Shouldn't we reduce the target frame time a little bit to factor in the time needed for the buffer update?