-
-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCI: Detect SCI16 unthrottled inner loops
This restores kGetEvent throttling (10ms delay) during inner loops that don't throttle themselves. For example, the event processing loop in Dialog:doit doesn't include a kWait(1) call in some games. In these games, dialogs max out CPU, and if they run animations then they run too fast. This happens in the CD version of JONES, bug #14020. I had considered doing something like this earlier, but it wasn't clear how to best detect these loops. What I didn't realize is that the SCI32 code already does this by counting kGetEvent calls in between kFrameout. Now that technique is adapted for SCI16. Combined with the existing "fast cast" detection, this throttles event-polling inner loops while keeping the kGetEvent and kGameIsRestarting throttling separate so that they don't overlap and conflict. See: e09010f
- Loading branch information
Showing
5 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters