Commit 099ae059 authored by Gunnar Sletta's avatar Gunnar Sletta
Browse files

Improve performance of animators.


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: default avatarMichael Brasser <michael.brasser@live.com>
parent 7f5a59c2
Branches
Tags
No related merge requests found
Showing with 63 additions and 18 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment