summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-13 22:15:47 +0200
committer hap <happppp@users.noreply.github.com>2020-06-13 22:16:01 +0200
commitdf19755202d389c8e933db161de09204eed723c9 (patch)
treee017574bb186e7f0eeab3e94c3da5533592fb5f1
parentd7e0c639431cbd26bab5acedb7798449ccc9bd5d (diff)
video: don't do frameskip related calculations at init time (nw)
-rw-r--r--src/emu/video.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index 8da14f03b85..eb277180c32 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -229,7 +229,7 @@ void video_manager::frame_update(bool from_debugger)
// if we're throttling, synchronize before rendering
attotime current_time = machine().time();
- if (!from_debugger && !skipped_it && !m_low_latency && effective_throttle())
+ if (!from_debugger && !skipped_it && phase > machine_phase::INIT && !m_low_latency && effective_throttle())
update_throttle(current_time);
// ask the OSD to update
@@ -238,7 +238,7 @@ void video_manager::frame_update(bool from_debugger)
g_profiler.stop();
// we synchronize after rendering instead of before, if low latency mode is enabled
- if (!from_debugger && !skipped_it && m_low_latency && effective_throttle())
+ if (!from_debugger && !skipped_it && phase > machine_phase::INIT && m_low_latency && effective_throttle())
update_throttle(current_time);
// get most recent input now
@@ -251,11 +251,11 @@ void video_manager::frame_update(bool from_debugger)
machine().call_notifiers(MACHINE_NOTIFY_FRAME);
// update frameskipping
- if (!from_debugger)
+ if (!from_debugger && phase > machine_phase::INIT)
update_frameskip();
// update speed computations
- if (!from_debugger && !skipped_it)
+ if (!from_debugger && !skipped_it && phase > machine_phase::INIT)
recompute_speed(current_time);
// call the end-of-frame callback