mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
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:
parent
03e3f2c68c
commit
766cf6cee7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user