From 766cf6cee7edbc3f6fa22a50381391725f70cabc Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 18 Feb 2016 00:52:33 -0600 Subject: SCI: Fix too-fast rendering Now that the renderer is loading resources without spinning CPU time on decompression every frame, it becomes apparent that kFrameOut is spammed constantly by the interpreter and needs to be throttled to ensure that transitions and fades work properly. --- engines/sci/engine/kgraphics32.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index 03cbd66984..f6b0074ad3 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -127,6 +127,8 @@ reg_t kGetHighPlanePri(EngineState *s, int argc, reg_t *argv) { reg_t kFrameOut(EngineState *s, int argc, reg_t *argv) { bool showBits = argc > 0 ? argv[0].toUint16() : true; g_sci->_gfxFrameout->kernelFrameout(showBits); + s->speedThrottler(16); + s->_throttleTrigger = true; return NULL_REG; } -- cgit v1.2.3