Skip to content

Commit

Permalink
1 second is inclusive in fps (mrdoob#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjunxin authored and mrdoob committed Jul 26, 2017
1 parent 066cb4e commit 28632bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 28632bd

Please sign in to comment.