Revision: 52531
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52531
Author: moguri
Date: 2012-11-24 08:10:56 +0000 (Sat, 24 Nov 2012)
Log Message:
-----------
BGE: Implementing a fix for the "Problem With Clock" issues reported in #32708
and #33088. At the moment this feels like a bit of a stop gap, but it does
solve the stuttering issue that #33088 mentioned.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp 2012-11-24
06:09:43 UTC (rev 52530)
+++ trunk/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp 2012-11-24
08:10:56 UTC (rev 52531)
@@ -552,10 +552,9 @@
double deltatime = m_clockTime - m_frameTime;
if (deltatime<0.f)
{
- printf("problem with clock\n");
- deltatime = 0.f;
- m_clockTime = 0.f;
- m_frameTime = 0.f;
+ // We got here too quickly, which means there is nothing todo,
just return and don't render.
+ // Not sure if this is the best fix, but it seems to stop the
jumping framerate issue (#33088)
+ return false;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs