PGXP: Further optimizations

Up to an 8% speed improvement in Racing Lagoon with CPU mode enabled.
This commit is contained in:
Connor McLaughlin
2021-06-12 22:02:28 +10:00
parent a47686a313
commit d3d92226a5
4 changed files with 117 additions and 361 deletions

View File

@ -1050,7 +1050,7 @@ bool DoState(StateWrapper& sw, HostDisplayTexture** host_texture, bool update_di
// only reset pgxp if we're not runahead-rollbacking. the value checks will save us from broken rendering, and it
// saves using imprecise values for a frame in 30fps games.
if (sw.IsReading() && g_settings.gpu_pgxp_enable && !is_memory_state)
PGXP::Initialize();
PGXP::Reset();
if (!sw.DoMarker("Bus") || !Bus::DoState(sw))
return false;