From 2b749055c763005c42616b83d2b9050cde5fdf32 Mon Sep 17 00:00:00 2001 From: Mike Krus Date: Fri, 19 Jun 2020 17:45:57 +0100 Subject: Remove the OpenGL Render Thread We're trading a bit of performance at submission (since we could start preparing the next frame while submitting the current one) for convenience and ease of maintenance. Besides, this allows to remove a thread and in cases Qt3D was used with Scene3D, which is likely the majority of cases, the RenderThread was not used anyway. To control whether the QRenderAspect should submit on its own or not, a new Submission type enum with values Automatic/Manual was added. This allows the QRenderAspect to automatically perform command submission when Qt3D is used on its own. For other cases when Qt3D is integrated into a 3rd party engine or with Scene3D, the Manual mode is used to let the QRenderAspect render only when it is told to do so. Change-Id: Idc270b5a07bcb9ea9e61674a69c6b8cf6ccd8182 Reviewed-by: Mike Krus --- tests/manual/manual-renderloop/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/manual') diff --git a/tests/manual/manual-renderloop/main.cpp b/tests/manual/manual-renderloop/main.cpp index a3f108e50..60521d865 100644 --- a/tests/manual/manual-renderloop/main.cpp +++ b/tests/manual/manual-renderloop/main.cpp @@ -68,7 +68,7 @@ class ManualRenderer public: ManualRenderer() : m_aspectEngine(new Qt3DCore::QAspectEngine()) - , m_renderAspect(new Qt3DRender::QRenderAspect(Qt3DRender::QRenderAspect::Synchronous)) + , m_renderAspect(new Qt3DRender::QRenderAspect()) { } -- cgit v1.2.3