mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
CommonHostInterface: Make timer resolution increased static
This commit is contained in:
parent
28d3c0768a
commit
eaad87ab4f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue