diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-06-19 17:45:57 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-06-19 20:20:50 +0100 |
commit | 2b749055c763005c42616b83d2b9050cde5fdf32 (patch) | |
tree | a02a1dbba9482594f31e96cac83cb603a8bcf69b /tests/manual | |
parent | eebbdb87b255545c83038aa4ff422e7ef34c3f6e (diff) |
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 <mike.krus@kdab.com>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/manual-renderloop/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { } |