summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video.cpp
diff options
context:
space:
mode:
author 057a3dd61f99517a3afea0051a49cb27994f94d <rslovers@yandex.com>2017-05-18 04:09:47 +0000
committer somebody <somebody@somewhere>2017-05-18 04:09:47 +0000
commit5b398221034a9b17b53378f4470d201c3ad07182 (patch)
tree611b90b189bbbbaad9d55a216bf4e5d99a99579a /src/emu/video.cpp
parentb6625b410478d866aab6b84e40e0ddf090205029 (diff)
Relax the threshold to consider an oversleep as a system time change,
in case of running on a heavily loaded system, as suggested by cuavas.
Diffstat (limited to 'src/emu/video.cpp')
-rw-r--r--src/emu/video.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index 15fbe54eb83..05de7c55c7e 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -920,7 +920,7 @@ osd_ticks_t video_manager::throttle_until_ticks(osd_ticks_t target_ticks)
// calculated as a very small value, even less than minimum_sleep, which will make this
// loop to be a busy one wasting cpu resource
osd_ticks_t actual_ticks = new_ticks - current_ticks;
- if (actual_ticks > delta && actual_ticks < delta * 2)
+ if (actual_ticks > delta && actual_ticks < delta * 10)
{
// take 90% of the previous average plus 10% of the new value
osd_ticks_t oversleep_milliticks = 1000 * (actual_ticks - delta) / delta;