From 7cecf8ee6887be2f4c4f1279e6583b6450406dca Mon Sep 17 00:00:00 2001 From: ctiao Date: Thu, 19 Nov 2015 18:28:41 +0800 Subject: [PATCH] DrawHandler: increase mCordonTime2 --- .../main/java/master/flame/danmaku/controller/DrawHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java index 7aa1ff59..2d81d67d 100644 --- a/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java +++ b/DanmakuFlameMaster/src/main/java/master/flame/danmaku/controller/DrawHandler.java @@ -456,7 +456,7 @@ private void syncTimerIfNeeded() { private void initRenderingConfigs() { long averageFrameConsumingTime = 16; mCordonTime = Math.max(33, (long) (averageFrameConsumingTime * 2.5f)); - mCordonTime2 = mCordonTime * 2; + mCordonTime2 = (long) (mCordonTime * 2.5f); mFrameUpdateRate = Math.max(16, averageFrameConsumingTime / 15 * 15); mThresholdTime = mFrameUpdateRate + 3; // Log.i("DrawHandler", "initRenderingConfigs test-fps:" + averageFrameConsumingTime + "ms,mCordonTime:"