Revert "Run as "High Priority" on Windows"

Revert "Run as "High Priority" on Windows"

This reverts commit 3f8a7f5fd3.
This commit is contained in:
sukibaby
2024-10-01 01:49:22 -07:00
committed by teejusb
parent e0b254968d
commit c297f73f69
+10 -3
View File
@@ -150,13 +150,20 @@ void ArchHooks_Win32::SetTime( tm newtime )
void ArchHooks_Win32::BoostPriority() void ArchHooks_Win32::BoostPriority()
{ {
// Be sure to boost the app, not the thread, to make sure the sound thread stays higher priority than the main thread. // We just want a slight boost, so we don't skip needlessly if something happens
SetPriorityClass( GetCurrentProcess(), HIGH_PRIORITY_CLASS ); // in the background. We don't really want to be high-priority—above normal should be enough.
//
// Be sure to boost the app, not the thread, to make sure the
// sound thread stays higher priority than the main thread.
//
// Also note that high priority won't prevent the game from being interrupted by Windows
// notifications - that needs to be handled within ArchUtils.
SetPriorityClass( GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS );
} }
void ArchHooks_Win32::UnBoostPriority() void ArchHooks_Win32::UnBoostPriority()
{ {
SetPriorityClass( GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS ); SetPriorityClass( GetCurrentProcess(), NORMAL_PRIORITY_CLASS );
} }
void ArchHooks_Win32::SetupConcurrentRenderingThread() void ArchHooks_Win32::SetupConcurrentRenderingThread()