Rather than trying to restrict the drift adjustment into a sane range, just stop applying it if it's huge or tiny.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@656 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Charlie Groves
2008-09-14 23:27:29 +00:00
parent 1c864bf169
commit 62740fe546
2 changed files with 10 additions and 5 deletions
@@ -221,12 +221,12 @@ public abstract class FrameManager
* Returns the highest drift ratio our timer has seen. 1.0 means no drift (and is what we return
* if we're not using a CalibratingTimer)
*/
public double getMaxTimerDriftRatio ()
public float getMaxTimerDriftRatio ()
{
if (_timer instanceof CalibratingTimer) {
return ((CalibratingTimer)_timer).getMaxDriftRatio();
} else {
return 1.0;
return 1.0F;
}
}