If you have any kind of synchronization procedure, I suggest you put the call right after that, that is, before big calculations. Otherwise, time calculations can be shaky and give different values ββfor each loop ... and note: it is better to have a stable FPS than a fluctuating FPS in order to maximize it. The fluctuation, even so subtle, makes the viewer / player realize that all game and immersion are lost.
source share