diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2016-12-07 14:41:38 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2016-12-08 12:10:40 +0000 |
commit | 9a3b339e1c3aea4e92149706357e988979593b4d (patch) | |
tree | 1054b7cdce0a7d261605f5570cedb67cb24c6b14 /src/quick/items/qquickspriteengine_p.h | |
parent | ee347ee875f69aff72df294546a0c90ffd79de93 (diff) |
QQuickSpriteEngine: Optimistic speedup for updateSprites
Switch from QList to QVector, and avoid using pop_front -- remove all in one
operation instead.
The idea here was to provide some gain to sprite-sequence in qmlbench, but any
possible gain is pretty miniscule due to the lack of batching that example
suffers. Still, we end up with less CPU time taken, which is a win of sorts.
Change-Id: Ib7c101afa71ee617c3c4506b14701d6a4143ed3a
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/items/qquickspriteengine_p.h')
-rw-r--r-- | src/quick/items/qquickspriteengine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickspriteengine_p.h b/src/quick/items/qquickspriteengine_p.h index cf50cd2d84..3b7fcfb1f1 100644 --- a/src/quick/items/qquickspriteengine_p.h +++ b/src/quick/items/qquickspriteengine_p.h @@ -254,7 +254,7 @@ protected: QVector<int> m_goals; QVector<int> m_duration; QVector<int> m_startTimes; - QList<QPair<uint, QList<int> > > m_stateUpdates;//### This could be done faster - priority queue? + QVector<QPair<uint, QVector<int> > > m_stateUpdates;//### This could be done faster - priority queue? QTime m_advanceTime; uint m_timeOffset; |