CommonHostInterface: Make timer resolution increased static

This commit is contained in:
Connor McLaughlin 2021-08-15 11:54:14 +10:00
parent 28d3c0768a
commit eaad87ab4f
2 changed files with 4 additions and 4 deletions

View File

@ -3320,12 +3320,13 @@ std::vector<std::string> CommonHostInterface::GetSettingStringList(const char* s
void CommonHostInterface::SetTimerResolutionIncreased(bool enabled)
{
if (m_timer_resolution_increased == enabled)
#if defined(_WIN32) && !defined(_UWP)
static bool current_state = false;
if (current_state == enabled)
return;
m_timer_resolution_increased = enabled;
current_state = enabled;
#if defined(_WIN32) && !defined(_UWP)
if (enabled)
timeBeginPeriod(1);
else

View File

@ -487,7 +487,6 @@ protected:
bool m_frame_step_request = false;
bool m_fast_forward_enabled = false;
bool m_turbo_enabled = false;
bool m_timer_resolution_increased = false;
bool m_throttler_enabled = true;
bool m_display_all_frames = true;