System: Don't discard PGXP state when runahead-rollbacking

You'll still see some glitches if you have the frame count set too high,
since you'll get imprecise values for any vertices which have moved, but
that's going to happen anyway because of the runahead in the first
place.
This commit is contained in:
Connor McLaughlin
2021-04-28 02:50:46 +10:00
parent c2916e0719
commit f1310bf93a
2 changed files with 22 additions and 14 deletions

View File

@ -101,15 +101,10 @@ void Initialize()
UpdateFastmemBase();
GTE::Initialize();
if (g_settings.gpu_pgxp_enable)
PGXP::Initialize();
}
void Shutdown()
{
// GTE::Shutdown();
PGXP::Shutdown();
ClearBreakpoints();
StopTrace();
}
@ -137,9 +132,6 @@ void Reset()
GTE::Reset();
SetPC(RESET_VECTOR);
if (g_settings.gpu_pgxp_enable)
PGXP::Initialize();
}
bool DoState(StateWrapper& sw)
@ -188,12 +180,6 @@ bool DoState(StateWrapper& sw)
sw.Do(&g_state.icache_data);
}
if (sw.IsReading())
{
if (g_settings.gpu_pgxp_enable)
PGXP::Initialize();
}
return !sw.HasError();
}