summaryrefslogtreecommitdiffstats
path: root/src/core/services/qdownloadhelperservice.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2019-05-27 11:49:33 +0200
committerPaul Lemire <paul.lemire@kdab.com>2019-08-07 08:51:10 +0200
commit8daa8bcb8e9a7110289d15c94f53a4be9adac1ac (patch)
tree56330947d547e59efd9b08182a51589d82be5049 /src/core/services/qdownloadhelperservice.cpp
parentfd64e870fad0e619704e79689f20645760dbdc0e (diff)
Remove the Aspect Thread
This now makes the Qt3D simulation loop run in the Main Thread. In theory having the Aspect Thread allowed Qt3D to continue rendering even if the main thread got locked. In practice however this leads to a large amount of complexities in the Qt3D implementations and provides little value as in most cases blocking the main thread would block animations driven by frontend nodes. Removing the Aspect Thread will allow to remove the backend tree copies each aspect had to make which will allow to reduce memory. In addition, getting direct access to frontend nodes, will now be possible without introducing races which should allow to make more optimizations and reduce latencies on some operations. Change-Id: I80e4cd6427de06ddedfa1bb50d40710b91867b24 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/core/services/qdownloadhelperservice.cpp')
-rw-r--r--src/core/services/qdownloadhelperservice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/services/qdownloadhelperservice.cpp b/src/core/services/qdownloadhelperservice.cpp
index 4cd89c5d0..deddf3ae0 100644
--- a/src/core/services/qdownloadhelperservice.cpp
+++ b/src/core/services/qdownloadhelperservice.cpp
@@ -39,10 +39,10 @@
#include "qdownloadhelperservice_p.h"
#include "qdownloadnetworkworker_p.h"
+#include <QtCore/QThread>
#include <Qt3DCore/QAspectEngine>
#include <Qt3DCore/private/qabstractserviceprovider_p.h>
#include <Qt3DCore/private/qaspectengine_p.h>
-#include <Qt3DCore/private/qaspectthread_p.h>
#include <Qt3DCore/private/qaspectmanager_p.h>
#include <Qt3DCore/private/qservicelocator_p.h>
@@ -196,7 +196,7 @@ QString QDownloadHelperService::urlToLocalFileOrQrc(const QUrl &url)
QDownloadHelperService *QDownloadHelperService::getService(QAspectEngine *engine)
{
auto enginePrivate = Qt3DCore::QAspectEnginePrivate::get(engine);
- return enginePrivate->m_aspectThread->aspectManager()->serviceLocator()->downloadHelperService();
+ return enginePrivate->m_aspectManager->serviceLocator()->downloadHelperService();
}
bool QDownloadHelperService::isLocal(const QUrl &url)