EVENTRECORDER: Add screen update tracking

Screen update boundaries are now used as sync points.
Screenshots are now processed on a screen update boundary.

This change increments the version of the Event Recorder
file format to 2; version 1 files will still play back as
before, without synchronising to screen updates.
This commit is contained in:
Scott Percival 2021-08-25 20:05:57 +08:00 committed by Martin Gerhardy
parent 40aadcf139
commit 5cbcd98963
5 changed files with 87 additions and 13 deletions

View file

@ -186,6 +186,8 @@ void ModularGraphicsBackend::fillScreen(uint32 col) {
void ModularGraphicsBackend::updateScreen() {
#ifdef ENABLE_EVENTRECORDER
g_system->getMillis(); // force event recorder to update the tick count
g_eventRec.processScreenUpdate();
g_eventRec.preDrawOverlayGui();
#endif