Commits

Anonymous committed a91a19b

SH-1329 FIXED Physics are "twitchy" for high-FPS machines

Fixed bug that was messing up time slices for physics.

  • Participants
  • Parent commits a34b0bc

Comments (0)

Files changed (1)

File indra/newview/llphysicsmotion.cpp

         //
 
         const F32 time_delta = time - mLastTime;
-        if (time_delta > 3.0 || time_delta <= 0.01)
+
+	// Don't update too frequently, to avoid precision errors from small time slices.
+	if (time_delta <= .01)
+	{
+		return FALSE;
+	}
+	
+        if (time_delta > 3.0)
         {
                 mLastTime = time;
                 return FALSE;