diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-12-23 05:41:09 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-12-23 05:41:09 (GMT) |
commit | eb395badcba6eada75ad5e6a72b74f5204170ed9 (patch) | |
tree | c4f6d46e5a0698b60bec96eb0106b04677035cf6 /src/declarative | |
parent | 93edc0680b8ca9cccefa31f8d2df08b0fc8f32f8 (diff) | |
download | Qt-eb395badcba6eada75ad5e6a72b74f5204170ed9.zip Qt-eb395badcba6eada75ad5e6a72b74f5204170ed9.tar.gz Qt-eb395badcba6eada75ad5e6a72b74f5204170ed9.tar.bz2 |
WorkerScript could starve image loading of CPU.
We use idle priority for image loading and XmlListModel in order to
keep the UI responsive, but WorkerScript used LowPriority which would
significantly reduce CPU available for image loading.
Task-number: QTBUG-16167
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativeworkerscript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeworkerscript.cpp b/src/declarative/qml/qdeclarativeworkerscript.cpp index 4b78020..9dc214f 100644 --- a/src/declarative/qml/qdeclarativeworkerscript.cpp +++ b/src/declarative/qml/qdeclarativeworkerscript.cpp @@ -458,7 +458,7 @@ QDeclarativeWorkerScriptEngine::QDeclarativeWorkerScriptEngine(QDeclarativeEngin { d->m_lock.lock(); connect(d, SIGNAL(stopThread()), this, SLOT(quit()), Qt::DirectConnection); - start(QThread::LowPriority); + start(QThread::IdlePriority); d->m_wait.wait(&d->m_lock); d->moveToThread(this); d->m_lock.unlock(); |