diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java index 6382740e..57ebde14 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java +++ b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuSurfaceView.java @@ -252,8 +252,8 @@ public long drawDanmakus() { mDrawTimes = new LinkedList(); dtime = System.currentTimeMillis() - stime; String fps = String.format(Locale.getDefault(), - "fps %.2f,time:%d s,cache:%d,miss:%d", fps(), - handler.getCurrentTime() / 1000, rs.cacheHitCount, rs.cacheMissCount); + "fps %.2f,time:%d s,cache:%d,miss:%d", fps(), getCurrentTime() / 1000, + rs.cacheHitCount, rs.cacheMissCount); DrawHelper.drawFPS(canvas, fps); } } diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuTextureView.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuTextureView.java index 10726a83..81f9c3c1 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuTextureView.java +++ b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/ui/widget/DanmakuTextureView.java @@ -261,8 +261,8 @@ public synchronized long drawDanmakus() { mDrawTimes = new LinkedList(); dtime = System.currentTimeMillis() - stime; String fps = String.format(Locale.getDefault(), - "fps %.2f,time:%d s,cache:%d,miss:%d", fps(), - handler.getCurrentTime() / 1000, rs.cacheHitCount, rs.cacheMissCount); + "fps %.2f,time:%d s,cache:%d,miss:%d", fps(), getCurrentTime() / 1000, + rs.cacheHitCount, rs.cacheMissCount); DrawHelper.drawFPS(canvas, fps); } }