From 7070d5c660963aec56e1d667211b4a09a62d400d Mon Sep 17 00:00:00 2001 From: Zachary Cook Date: Wed, 19 Feb 2020 22:27:52 -0500 Subject: [PATCH] Use a more lightweight reset method for lightrec Reset is common when using runahead, this seems to prevent crashes when resets occur rapidly. --- libpcsxcore/lightrec/plugin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/lightrec/plugin.c b/libpcsxcore/lightrec/plugin.c index 64587be6..3cd672a7 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 = -- 2.39.5