diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-04-05 07:05:02 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-04-05 07:05:02 +0400 |
commit | 62b254e42af10a38d1dd760b4b26177f23f6baca (patch) | |
tree | 6a626cfad16b756310ed80ce61d698b63a938af8 /source/gameengine/Ketsji/KX_KetsjiEngine.cpp | |
parent | 87adbbbfba87b29441a9a4a8d7a90a8a2e5e0d9b (diff) |
This fixes BGE bugs #30484 (Frame rate increases very high after game engine start with record animation enabled) and #29449 (Record Animation runs 1000+ fps on Mac OSX 10.6.8 64bit). The problem was, recording animation was forcing "fixed time", which always advances the engine one frame instead of advancing based on time passed. This means that "fixed time" runs at full speed. Now fixed time is disabled when recording animation.
Diffstat (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_KetsjiEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp index dfb4e86c6ff..dbcfe7983c7 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp @@ -1772,8 +1772,8 @@ void KX_KetsjiEngine::SetAnimRecordMode(bool animation_record, int startFrame) m_animation_record = animation_record; if (animation_record) { - //when recording physics keyframes, always run at a fixed framerate - m_bFixedTime = true; + //when recording physics keyframes, run at a variable (capped) frame rate (fixed time == full speed) + m_bFixedTime = false; } m_currentFrame = startFrame; } |