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.
This commit is contained in:
Colin Snover 2016-02-18 00:52:33 -06:00
parent 03e3f2c68c
commit 766cf6cee7

View File

@ -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;
}