Skip to content

Commit

Permalink
Changed max default values to Infinity instead of 1000. As per realis…
Browse files Browse the repository at this point in the history
…ation in #10.
  • Loading branch information
mrdoob committed Sep 1, 2012
1 parent 4ffed28 commit 1c5b07f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
var Stats = function () {

var startTime = Date.now(), prevTime = startTime;
var ms = 0, msMin = 1000, msMax = 0;
var fps = 0, fpsMin = 1000, fpsMax = 0;
var frames = 0, mode = 0;
var ms = 0, msMin = Infinity, msMax = 0;
var fps = 0, fpsMin = Infinity, fpsMax = 0;
var frames = 0, mode = 0;

var container = document.createElement( 'div' );
container.id = 'stats';
Expand Down Expand Up @@ -89,6 +89,8 @@ var Stats = function () {

return {

REVISION: 10,

domElement: container,

setMode: setMode,
Expand Down Expand Up @@ -133,9 +135,9 @@ var Stats = function () {
update: function () {

startTime = this.end();

}

}

};

0 comments on commit 1c5b07f

Please sign in to comment.