Skip to content

Commit

Permalink
SCI: Fix too-fast rendering
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
csnover committed Feb 18, 2016
1 parent 03e3f2c commit 766cf6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/sci/engine/kgraphics32.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 766cf6c

Please sign in to comment.