Every time the Apple reaches VBL there is a screen update event The rest of the emulator is notified after the video frame was redrawn, so this is the best time to capture the state.
()
| 395 | * the best time to capture the state. |
| 396 | */ |
| 397 | public void notifyVBLActive() { |
| 398 | frameCounter--; |
| 399 | if (frameCounter > 0) { |
| 400 | return; |
| 401 | } |
| 402 | frameCounter = captureFrequency; |
| 403 | captureState(); |
| 404 | } |
| 405 | |
| 406 | @InvokableAction( |
| 407 | name = "Rewind", |
no test coverage detected