mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Detect when kPaletteSetIntensity is called from an unthrottled script loop and only apply speed throttling in that situation. This fixes several slow fade-in / fade-outs such as KQ6's Sierra logo and title screen. We've been throttling kPaletteSetIntensity on every call, even when it was being used once per game cycle (which our kGameIsRestarting throttling already handles) or within kWait-throttled loops. In both cases this has added delays on top of delays and slowed things down even further.