Revert some thread priority level changes

This commit is contained in:
sukibaby
2024-07-10 11:57:37 -07:00
committed by teejusb
parent 56444b560a
commit 8f5b45f2ca
2 changed files with 0 additions and 22 deletions
-11
View File
@@ -24,10 +24,6 @@
#include <cmath> #include <cmath>
#include <vector> #include <vector>
#ifdef _WIN32
#include "archutils/Win32/ThreadPriorityHelper.h"
#endif
static RageTimer g_GameplayTimer; static RageTimer g_GameplayTimer;
static Preference<bool> g_bNeverBoostAppPriority( "NeverBoostAppPriority", false ); static Preference<bool> g_bNeverBoostAppPriority( "NeverBoostAppPriority", false );
@@ -413,13 +409,6 @@ void ConcurrentRenderer::RenderThread()
if( m_State == RENDERING_START ) if( m_State == RENDERING_START )
{ {
#ifdef _WIN32
bool setThreadSuccess = BoostThreadPriorityToHighest();
if (!setThreadSuccess)
{
ASSERT_M(0, "Failed to set thread priority to highest.");
}
#endif
/* We're starting to render. Set up, and then kick the event to wake /* We're starting to render. Set up, and then kick the event to wake
* up the calling thread. */ * up the calling thread. */
DISPLAY->BeginConcurrentRendering(); DISPLAY->BeginConcurrentRendering();
-11
View File
@@ -8,10 +8,6 @@
#include "RageThreads.h" #include "RageThreads.h"
#include <list> #include <list>
#ifdef _WIN32
#include "archutils/Win32/ThreadPriorityHelper.h"
#endif
class RageThread; class RageThread;
class RageSoundReader_ThreadedBuffer: public RageSoundReader_Filter class RageSoundReader_ThreadedBuffer: public RageSoundReader_Filter
{ {
@@ -76,13 +72,6 @@ private:
bool m_bShutdownThread; bool m_bShutdownThread;
static int StartBufferingThread(void* p) static int StartBufferingThread(void* p)
{ {
#ifdef _WIN32
bool setThreadSuccess = BoostThreadPriorityToHighest();
if (!setThreadSuccess)
{
ASSERT_M(0, "Failed to set thread priority to highest.");
}
#endif
((RageSoundReader_ThreadedBuffer*)p)->BufferingThread(); ((RageSoundReader_ThreadedBuffer*)p)->BufferingThread();
return 0; return 0;
} }