use MapRenderer.frametime
This commit is contained in:
parent
c093fe3b0c
commit
5ce9024eae
@ -6,6 +6,7 @@ import org.oscim.core.MapPosition;
|
|||||||
import org.oscim.core.MercatorProjection;
|
import org.oscim.core.MercatorProjection;
|
||||||
import org.oscim.core.Point;
|
import org.oscim.core.Point;
|
||||||
import org.oscim.core.Tile;
|
import org.oscim.core.Tile;
|
||||||
|
import org.oscim.renderer.MapRenderer;
|
||||||
import org.oscim.utils.FastMath;
|
import org.oscim.utils.FastMath;
|
||||||
|
|
||||||
// TODO: rewrite
|
// TODO: rewrite
|
||||||
@ -163,13 +164,13 @@ public class MapAnimator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* called by GLRenderer at begin of each frame.
|
* called by MapRenderer at begin of each frame.
|
||||||
*/
|
*/
|
||||||
public void updateAnimation() {
|
public void updateAnimation() {
|
||||||
if (mState == ANIM_NONE)
|
if (mState == ANIM_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
long millisLeft = mAnimEnd - System.currentTimeMillis();
|
long millisLeft = mAnimEnd - MapRenderer.frametime;
|
||||||
|
|
||||||
synchronized (mViewport) {
|
synchronized (mViewport) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user