Refer to the frameTimeNanos from Choreographer
This is to fix . Please check out the root cause analysis in .
@@ -82,7 +82,7 @@ public class LottieValueAnimator extends BaseLottieAnimator implements Choreogra
return;
}
- long now = System.nanoTime();
+ long now = frameTimeNanos;
long timeSinceFrame = now - lastFrameTimeNs;
float frameDuration = getFrameDurationNs();
float dFrames = timeSinceFrame / frameDuration;
