diff options
author | Paul Lemire <paul.lemire350@gmail.com> | 2015-10-14 18:26:17 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-10-20 12:28:14 +0000 |
commit | 207efae0772c6903964a13461ee392267ea76753 (patch) | |
tree | 384b097058eb14053fc0d90a790e4d2c6610fd81 /src/render/jobs/updateboundingvolumejob_p.h | |
parent | 2c80c228f22ffef310ac711d874627b207b5db6a (diff) |
QRenderAspect: use a single instance of UpdadeBoundingVolumeJob
instead of creating one every frame
Change-Id: I577c7c92f0c9ab00db96e8328c0f32efdb1110d6
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/render/jobs/updateboundingvolumejob_p.h')
-rw-r--r-- | src/render/jobs/updateboundingvolumejob_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/jobs/updateboundingvolumejob_p.h b/src/render/jobs/updateboundingvolumejob_p.h index 27dc82486..6f6c3b3cb 100644 --- a/src/render/jobs/updateboundingvolumejob_p.h +++ b/src/render/jobs/updateboundingvolumejob_p.h @@ -62,7 +62,9 @@ class Entity; class UpdateBoundingVolumeJob : public Qt3DCore::QAspectJob { public: - explicit UpdateBoundingVolumeJob(Entity *m_node); + UpdateBoundingVolumeJob(); + + void setRoot(Entity *root); protected: void run() Q_DECL_OVERRIDE; |