summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/Q3DSTranslation.cpp
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2019-01-02 10:56:06 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-01-11 14:05:55 +0000
commit7cff3312940fe170b707527101ddd2301b1d66a3 (patch)
treeaf436a4813545cbf4346c2809f8a6cd4b325239a /src/Authoring/Studio/Render/Q3DSTranslation.cpp
parent31a881f6bd43ae3593642a9432f4a2bd0fe57484 (diff)
Convert synchronous rendering to asynchronous
This change fixes the horrible performance and flickering in the UI with synchronous rendering, but removes the control for frame rate. After this change the view is rendered continuosly in Qt3D render thread. Task-number: QT3DS-2071 Change-Id: I7e5e68ae41fd55d268e3acc7b234fbc6a456cd93 Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/Q3DSTranslation.cpp')
-rw-r--r--src/Authoring/Studio/Render/Q3DSTranslation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Render/Q3DSTranslation.cpp b/src/Authoring/Studio/Render/Q3DSTranslation.cpp
index c788da31..93212fd2 100644
--- a/src/Authoring/Studio/Render/Q3DSTranslation.cpp
+++ b/src/Authoring/Studio/Render/Q3DSTranslation.cpp
@@ -147,6 +147,8 @@ Q3DSTranslation::Q3DSTranslation(Q3DStudioRenderer &inRenderer,
std::bind(&Q3DSTranslation::markBeginComponentSeconds, this, std::placeholders::_1)));
m_signalConnections.push_back(theProvider->ConnectComponentSeconds(
std::bind(&Q3DSTranslation::markComponentSeconds, this, std::placeholders::_1)));
+
+ clearDirtySet();
}
Q3DSTranslation::THandleTranslatorPairList &Q3DSTranslation::getTranslatorsForInstance(