aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Cook2020-02-19 22:27:52 -0500
committerZachary Cook2020-02-19 22:27:52 -0500
commit7070d5c660963aec56e1d667211b4a09a62d400d (patch)
treef4659f567e8c80973294c165d77a0ab2ad8e5433
parentf12a6e13ce6e9ea1b9a7d0f48b76633e3c9c0164 (diff)
downloadpcsx_rearmed-7070d5c660963aec56e1d667211b4a09a62d400d.tar.gz
pcsx_rearmed-7070d5c660963aec56e1d667211b4a09a62d400d.tar.bz2
pcsx_rearmed-7070d5c660963aec56e1d667211b4a09a62d400d.zip
Use a more lightweight reset method for lightrec
Reset is common when using runahead, this seems to prevent crashes when resets occur rapidly.
-rw-r--r--libpcsxcore/lightrec/plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpcsxcore/lightrec/plugin.c b/libpcsxcore/lightrec/plugin.c
index 64587be..3cd672a 100644
--- a/libpcsxcore/lightrec/plugin.c
+++ b/libpcsxcore/lightrec/plugin.c
@@ -564,8 +564,10 @@ static void lightrec_plugin_shutdown(void)
static void lightrec_plugin_reset(void)
{
- lightrec_plugin_shutdown();
- lightrec_plugin_init();
+// Called in every frame (or every frame where input changes) when using runahead
+// lightrec_plugin_shutdown();
+// lightrec_plugin_init();
+ lightrec_invalidate_all(lightrec_state);
}
R3000Acpu psxRec =