From 28632bd87e0ea56acafc9b8779d813eb95e62c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BF=8A=E9=91=AB?= <18810544291@163.com> Date: Thu, 27 Jul 2017 07:11:25 +0800 Subject: [PATCH] 1 second is inclusive in fps (#79) --- src/Stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stats.js b/src/Stats.js index 6351e1d..310746f 100644 --- a/src/Stats.js +++ b/src/Stats.js @@ -74,7 +74,7 @@ var Stats = function () { msPanel.update( time - beginTime, 200 ); - if ( time > prevTime + 1000 ) { + if ( time >= prevTime + 1000 ) { fpsPanel.update( ( frames * 1000 ) / ( time - prevTime ), 100 );