mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-04 19:15:42 -04:00
System: Don't reset performance counters when turboing
This commit is contained in:
parent
bda573a540
commit
e7b113f454
@ -133,6 +133,7 @@ void HostInterface::ResetSystem()
|
|||||||
{
|
{
|
||||||
System::Reset();
|
System::Reset();
|
||||||
System::ResetPerformanceCounters();
|
System::ResetPerformanceCounters();
|
||||||
|
System::ResetThrottler();
|
||||||
AddOSDMessage(TranslateStdString("OSDMessage", "System reset."));
|
AddOSDMessage(TranslateStdString("OSDMessage", "System reset."));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +150,10 @@ void HostInterface::PauseSystem(bool paused)
|
|||||||
OnSystemPaused(paused);
|
OnSystemPaused(paused);
|
||||||
|
|
||||||
if (!paused)
|
if (!paused)
|
||||||
|
{
|
||||||
System::ResetPerformanceCounters();
|
System::ResetPerformanceCounters();
|
||||||
|
System::ResetThrottler();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HostInterface::DestroySystem()
|
void HostInterface::DestroySystem()
|
||||||
@ -424,6 +428,7 @@ bool HostInterface::LoadState(const char* filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
System::ResetPerformanceCounters();
|
System::ResetPerformanceCounters();
|
||||||
|
System::ResetThrottler();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1174,6 +1179,7 @@ void HostInterface::RecreateSystem()
|
|||||||
}
|
}
|
||||||
|
|
||||||
System::ResetPerformanceCounters();
|
System::ResetPerformanceCounters();
|
||||||
|
System::ResetThrottler();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HostInterface::SetMouseMode(bool relative, bool hide_cursor) {}
|
void HostInterface::SetMouseMode(bool relative, bool hide_cursor) {}
|
||||||
|
@ -845,7 +845,7 @@ void CommonHostInterface::UpdateSpeedLimiterState()
|
|||||||
if (System::IsValid())
|
if (System::IsValid())
|
||||||
{
|
{
|
||||||
System::SetTargetSpeed(target_speed);
|
System::SetTargetSpeed(target_speed);
|
||||||
System::ResetPerformanceCounters();
|
System::ResetThrottler();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_audio_stream)
|
if (m_audio_stream)
|
||||||
@ -1994,6 +1994,7 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
|||||||
if (!ConfirmMessage(confirmation_message))
|
if (!ConfirmMessage(confirmation_message))
|
||||||
{
|
{
|
||||||
System::ResetPerformanceCounters();
|
System::ResetPerformanceCounters();
|
||||||
|
System::ResetThrottler();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user