Improve state load time (#995)

* load state speed improvements

* more

* more

* more
This commit is contained in:
Logan McNaughton
2026-05-31 14:40:40 +00:00
committed by GitHub
parent 19432f33ba
commit 4453e66bcf
6 changed files with 109 additions and 86 deletions
+3 -2
View File
@@ -702,8 +702,9 @@ void rdp_check_framebuffers(uint32_t address, uint32_t length) {
size_t rdp_state_size() { return sizeof(RDP_DEVICE); }
void rdp_save_state(uint8_t *state) {
processor->wait_for_timeline(processor->signal_timeline());
void rdp_save_state(uint8_t *state, bool rewind) {
if (!rewind) // speed hack for rewind
processor->wait_for_timeline(processor->signal_timeline());
memcpy(state, &rdp_device, sizeof(RDP_DEVICE));
}