GPU: Further improve vsync handling

This commit is contained in:
Stenzek
2024-05-24 01:59:35 +10:00
parent 4e922a34a7
commit 42a5fe0a6e
20 changed files with 184 additions and 163 deletions

View File

@ -19,6 +19,8 @@ class Error;
class SmallStringBase;
class StateWrapper;
enum class GPUVSyncMode : u8;
class Controller;
struct CheatCode;
@ -295,9 +297,6 @@ void UpdateThrottlePeriod();
void ResetThrottler();
void ResetPerformanceCounters();
/// Resets vsync/max present fps state.
void UpdateDisplaySync();
// Access controllers for simulating input.
Controller* GetController(u32 slot);
void UpdateControllers();
@ -466,10 +465,7 @@ void ToggleWidescreen();
bool IsRunningAtNonStandardSpeed();
/// Returns true if vsync should be used.
bool IsHostVSyncEffectivelyEnabled();
/// Returns true if vsync is being used for frame pacing.
bool IsHostVSyncUsedForTiming();
GPUVSyncMode GetEffectiveVSyncMode();
/// Quick switch between software and hardware rendering.
void ToggleSoftwareRendering();