aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/qquickparticlesystem_p.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-01-17 02:00:26 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2015-02-12 17:21:11 +0000
commite4132ab7d178a8d9adb28d1c9b984f396a856557 (patch)
treeff5ebf6cb6c5b4b2d07fb29db3707cfcfb7bd00d /src/particles/qquickparticlesystem_p.h
parent4ca9be54ad02ad1012bf5acef27783d28f544191 (diff)
QQuickParticleData: Reorganise fields to drop size from 208 to 200 bytes on x86_64.
Change-Id: Ide7a70baecf6d1ff3ec8160a2cb47f0bd9955e45 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/particles/qquickparticlesystem_p.h')
-rw-r--r--src/particles/qquickparticlesystem_p.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/particles/qquickparticlesystem_p.h b/src/particles/qquickparticlesystem_p.h
index 6f4f1f6ebc..c8061916b5 100644
--- a/src/particles/qquickparticlesystem_p.h
+++ b/src/particles/qquickparticlesystem_p.h
@@ -164,7 +164,6 @@ public:
qreal curVY() const;
qreal curAY() const { return ay; }
- int group;
QQuickParticleEmitter* e;//### Needed?
QQuickParticleSystem* system;
int index;
@@ -203,18 +202,24 @@ public:
float animY;
float animWidth;
float animHeight;
+
+ int group;
+
//Used by ImageParticle data shadowing
QQuickImageParticle* colorOwner;
QQuickImageParticle* rotationOwner;
QQuickImageParticle* deformationOwner;
QQuickImageParticle* animationOwner;
- //Used by CustomParticle
- float r;
+
//Used by ItemParticle
QQuickItem* delegate;
int modelIndex;
//Used by custom affectors
float update;
+ //Used by CustomParticle
+ float r;
+
+ // 4 bytes wasted
void debugDump();