MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / CheckForGSConfigChanges

Method CheckForGSConfigChanges

pcsx2/VMManager.cpp:2973–2997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2971}
2972
2973void VMManager::CheckForGSConfigChanges(const Pcsx2Config& old_config)
2974{
2975 if (EmuConfig.GS == old_config.GS)
2976 return;
2977
2978 Console.WriteLn("Updating GS configuration...");
2979
2980 // We could just check whichever NTSC or PAL is appropriate for our current mode,
2981 // but people _really_ shouldn't be screwing with framerate, so whatever.
2982 if (EmuConfig.GS.FramerateNTSC != old_config.GS.FramerateNTSC ||
2983 EmuConfig.GS.FrameratePAL != old_config.GS.FrameratePAL)
2984 {
2985 UpdateVSyncRate(false);
2986 UpdateTargetSpeed();
2987 }
2988 else if (EmuConfig.GS.VsyncEnable != old_config.GS.VsyncEnable ||
2989 EmuConfig.GS.DisableMailboxPresentation != old_config.GS.DisableMailboxPresentation)
2990 {
2991 // Still need to update target speed, because of sync-to-host-refresh.
2992 UpdateTargetSpeed();
2993 MTGS::UpdateVSyncMode();
2994 }
2995
2996 MTGS::ApplySettings();
2997}
2998
2999void VMManager::CheckForEmulationSpeedConfigChanges(const Pcsx2Config& old_config)
3000{

Callers

nothing calls this directly

Calls 2

UpdateVSyncRateFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected