Let us clear our CalibratedTimer's memory about drifts we've seen.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@440 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -216,6 +216,16 @@ public abstract class FrameManager
|
|||||||
return 1.0;
|
return 1.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears out the maximum drift our timer remembers seeing.
|
||||||
|
*/
|
||||||
|
public void clearMaxTimerDriftRatio ()
|
||||||
|
{
|
||||||
|
if (_timer instanceof CalibratingTimer) {
|
||||||
|
((CalibratingTimer)_timer).clearMaxDriftRatio();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an overlay that can be used to render sprites and animations on top of the entire
|
* Returns an overlay that can be used to render sprites and animations on top of the entire
|
||||||
|
|||||||
@@ -81,6 +81,14 @@ public abstract class CalibratingTimer
|
|||||||
{
|
{
|
||||||
return _maxDriftRatio;
|
return _maxDriftRatio;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears out our remembered max drift.
|
||||||
|
*/
|
||||||
|
public void clearMaxDriftRatio ()
|
||||||
|
{
|
||||||
|
_maxDriftRatio = 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
/** Returns the difference between _startStamp and current() */
|
/** Returns the difference between _startStamp and current() */
|
||||||
protected long elapsed ()
|
protected long elapsed ()
|
||||||
|
|||||||
Reference in New Issue
Block a user