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/auto/render/opengl/computecommand/tst_computecommand.cpp | |
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/auto/render/opengl/computecommand/tst_computecommand.cpp')
-rw-r--r-- | tests/auto/render/opengl/computecommand/tst_computecommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/render/opengl/computecommand/tst_computecommand.cpp b/tests/auto/render/opengl/computecommand/tst_computecommand.cpp index 4f4f7a1fb..0b1ff3881 100644 --- a/tests/auto/render/opengl/computecommand/tst_computecommand.cpp +++ b/tests/auto/render/opengl/computecommand/tst_computecommand.cpp @@ -46,7 +46,7 @@ class tst_Renderer : public Qt3DRender::Render::OpenGL::Renderer { public: tst_Renderer() - : Qt3DRender::Render::OpenGL::Renderer(Qt3DRender::QRenderAspect::Synchronous) + : Qt3DRender::Render::OpenGL::Renderer() {} ~tst_Renderer() { |