aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qquickparticlesystem_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-11-02 13:46:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-02 23:56:47 +0100
commita06ec0c299a267149d9440ddb935272b0165e464 (patch)
treec197873a3bcad2171828ef718b7bc0b303639d78 /src/declarative/particles/qquickparticlesystem_p.h
parent030b3d1ceca96bfa2a04f761d574887687c666c1 (diff)
Only simulate if particle was alive
When spliting the simulation into multiple parts, do not simulate for times before the particle was born. Otherwise huge simulation times lead to huge effects even on particles with a simulated birth of near the end of that time. Change-Id: I7ff507b27bf819dbebd61934b9523b23316b5e80 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/particles/qquickparticlesystem_p.h')
-rw-r--r--src/declarative/particles/qquickparticlesystem_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/particles/qquickparticlesystem_p.h b/src/declarative/particles/qquickparticlesystem_p.h
index 6e35f0b7b0..87f2f2adce 100644
--- a/src/declarative/particles/qquickparticlesystem_p.h
+++ b/src/declarative/particles/qquickparticlesystem_p.h
@@ -219,7 +219,8 @@ public:
QQuickImageParticle* animationOwner;
void debugDump();
- bool stillAlive();
+ bool stillAlive();//Only checks end, because usually that's all you need and it's a little faster.
+ bool alive();
float lifeLeft();
float curSize();
void clone(const QQuickParticleData& other);//Not =, leaves meta-data like index