Revert some thread priority level changes
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user