diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-09-28 22:12:14 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:44:25 +0300 |
commit | 7ea55eff17c28cb688f314e0904c160cba4c8952 (patch) | |
tree | ba4dc3d778f42e52fcbff2dc3473a5ff923d4553 /anim/controller.hpp | |
parent | b307e49a76580e8c64cee6c51ea66fb1978ddf23 (diff) |
keeping anim::Controller pre-warmed for 5 cycles to allow new animations to start without interrupting rendering process.
Diffstat (limited to 'anim/controller.hpp')
-rw-r--r-- | anim/controller.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/anim/controller.hpp b/anim/controller.hpp index b93b19b71e..ff8a66e863 100644 --- a/anim/controller.hpp +++ b/anim/controller.hpp @@ -22,6 +22,8 @@ namespace anim TTasks m_tasksList; int m_LockCount; + int m_IdleThreshold; + int m_IdleFrames; static void CopyAndClearTasks(list<shared_ptr<Task> > & from, list<shared_ptr<Task> > & to); @@ -44,5 +46,12 @@ namespace anim int LockCount(); // Perform single animation step void PerformStep(); + // When the last animation is finished, Controller continues + // to be considered animating something for some frames to allow + // animations that are likely to happen in the next few frames to + // catch the Controller up and animate everything smoothly without + // interrupting rendering process, which might had happened in these + // "frames-in-the-middle". + bool IsPreWarmed() const; }; } |