all repos — mgba @ 39b5396c0b46d1bb13b39b466c206a10c5ce7bdc

mGBA Game Boy Advance Emulator

Set thread priorities for time-critical threads
Jeffrey Pfau jeffrey@endrift.com
Wed, 15 Oct 2014 02:38:58 -0700
commit

39b5396c0b46d1bb13b39b466c206a10c5ce7bdc

parent

bd731e82662fa9193bd997e31774990404821830

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/Display.cppsrc/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.cppsrc/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()));