diff options
author | Bastien Bouclet | 2018-01-01 05:40:41 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-01-27 18:12:34 +0100 |
commit | 3b50b57f544cb7c719a5f02f061853e10885ae6c (patch) | |
tree | 12a1aed649f42b4b45f16389577e403f9b67daef /gui/widgets/scrollbar.h | |
parent | d5d1229ae303030c4a478504f86e4eefad2ccc11 (diff) | |
download | scummvm-rg350-3b50b57f544cb7c719a5f02f061853e10885ae6c.tar.gz scummvm-rg350-3b50b57f544cb7c719a5f02f061853e10885ae6c.tar.bz2 scummvm-rg350-3b50b57f544cb7c719a5f02f061853e10885ae6c.zip |
GUI: Rework the frame limiter to actually reach the target framerate
The previous combination of a fixed 10 milliseconds delay and time since
last update checks meant that in most cases 20 milliseconds elapsed
between two calls to updateScreen resulting in a 50 fps framerate. On
systems with wait for vsync enabled that meant that some frames were
missed.
The new frame limiter waits for a variable delay equal to the non
consumed time in the slot allocated to the frame.
Diffstat (limited to 'gui/widgets/scrollbar.h')
0 files changed, 0 insertions, 0 deletions