System: Improve reset determinism

This commit is contained in:
Stenzek
2024-04-22 00:19:44 +10:00
parent 35f0d7f623
commit b26a9556f7
5 changed files with 19 additions and 14 deletions

View File

@ -164,6 +164,10 @@ void GPU::Reset(bool clear_vram)
if (clear_vram)
std::memset(g_vram, 0, sizeof(g_vram));
// Force event to reschedule itself.
m_crtc_tick_event->Deactivate();
m_command_tick_event->Deactivate();
SoftReset();
UpdateDisplay();
}
@ -211,7 +215,6 @@ void GPU::SoftReset()
SetTextureWindow(0);
UpdateDMARequest();
UpdateCRTCConfig();
UpdateCRTCTickEvent();
UpdateCommandTickEvent();
UpdateGPUIdle();
}
@ -342,7 +345,6 @@ bool GPU::DoState(StateWrapper& sw, GPUTexture** host_texture, bool update_displ
if (update_display)
UpdateDisplay();
UpdateCRTCTickEvent();
UpdateCommandTickEvent();
}