diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-04-03 21:20:53 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2019-05-25 09:28:33 +0100 |
commit | 861a73b5328334ebf076d3dd6b2ad6c17bdc0700 (patch) | |
tree | eecd01b77c76c4376813b59da63484bd866af813 /tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp | |
parent | d108987a6ce9087908a14396ac90c8d9bb0860cb (diff) |
Iterate on child handles
Resolving list of handles as list of node pointers introduces
extra heap memory allocation (via QVector) which can cause locking with
high number of threads.
Added Entity::traverse() methods to apply a functor to all entitied
in a sub-tree.
Change-Id: I239ab30ac8ac53ba83666a147015d58465d76eb2
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp')
-rw-r--r-- | tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp b/tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp index 497e620a7..d7903b8f7 100644 --- a/tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp +++ b/tests/auto/render/pickboundingvolumejob/tst_pickboundingvolumejob.cpp @@ -114,6 +114,7 @@ void runRequiredJobs(Qt3DRender::TestAspect *test) Qt3DRender::Render::UpdateWorldTransformJob updateWorldTransform; updateWorldTransform.setRoot(test->sceneRoot()); + updateWorldTransform.setManagers(test->nodeManagers()); updateWorldTransform.run(); // For each buffer @@ -135,6 +136,7 @@ void runRequiredJobs(Qt3DRender::TestAspect *test) Qt3DRender::Render::ExpandBoundingVolumeJob expandBVolume; expandBVolume.setRoot(test->sceneRoot()); + expandBVolume.setManagers(test->nodeManagers()); expandBVolume.run(); Qt3DRender::Render::UpdateMeshTriangleListJob updateTriangleList; |