From: Zachary Cook Date: Thu, 20 Feb 2020 03:27:52 +0000 (-0500) Subject: Use a more lightweight reset method for lightrec X-Git-Tag: r24l~663^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7070d5c660963aec56e1d667211b4a09a62d400d;p=pcsx_rearmed.git Use a more lightweight reset method for lightrec Reset is common when using runahead, this seems to prevent crashes when resets occur rapidly. --- 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 =