diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-10-07 12:22:26 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-10-10 21:10:52 +0200 |
commit | 099ae0597df6f6bbd0b9e05d063a4a58c9cae2ff (patch) | |
tree | ccfaf743aa3a572d362927131311787dd98c599b /src/quick/util/qquickanimatorjob_p.h | |
parent | 7f5a59c2025022f99dff9fa030c892adb4473d6a (diff) |
Improve performance of animators.v5.4.0-beta1
The use of one QCoreApp::postEvent() per completed animation added up
to a very large overhead when 1000+ animators were used at the same
time. This is very relevant for sprite games and similar and deserves
to work at least as good as normal animations.
Instead, store the animations to stop and stop then on the gui thread
later as a result of frameSwapped. For the benchmark in question this
allows for roughly double the amount of animators being started and
stopped.
Change-Id: Iae3d1ec1502ee1908fdbba708fa9f976aa230064
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/quick/util/qquickanimatorjob_p.h')
-rw-r--r-- | src/quick/util/qquickanimatorjob_p.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/quick/util/qquickanimatorjob_p.h b/src/quick/util/qquickanimatorjob_p.h index 4bdcd6917d..d87c9072a2 100644 --- a/src/quick/util/qquickanimatorjob_p.h +++ b/src/quick/util/qquickanimatorjob_p.h @@ -72,8 +72,6 @@ public: void markJobManagedByController() { m_jobManagedByController = true; } protected: - bool event(QEvent *); - void updateCurrentTime(int); void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState); |