Set thread priorities for time-critical threads
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 02:38:58 -0700
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/platform/qt/Display.cpp
→
src/platform/qt/Display.cpp
@@ -44,7 +44,7 @@ m_painter->moveToThread(m_drawThread);
doneCurrent(); context()->moveToThread(m_drawThread); connect(m_drawThread, SIGNAL(started()), m_painter, SLOT(start())); - m_drawThread->start(); + m_drawThread->start(QThread::TimeCriticalPriority); } void Display::stopDrawing() {
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -72,7 +72,7 @@ GameController* controller = static_cast<GameController*>(context->userData);
controller->postLog(level, QString().vsprintf(format, args)); }; - m_audioThread->start(); + m_audioThread->start(QThread::TimeCriticalPriority); m_audioProcessor->moveToThread(m_audioThread); connect(this, SIGNAL(gameStarted(GBAThread*)), m_audioProcessor, SLOT(start())); connect(this, SIGNAL(gameStopped(GBAThread*)), m_audioProcessor, SLOT(pause()));