Skip to content

Commit

Permalink
fix ticker.getMeasuredFPS should not be greater than target fps
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Aug 28, 2017
1 parent bd2666b commit 5db97ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ var Ticker = Class.create(/** @lends Ticker.prototype */{
* 获得测定的运行时帧率。
*/
getMeasuredFPS: function(){
return this._measuredFPS;
return Math.min(this._measuredFPS, this._targetFPS);
},

/**
Expand Down

0 comments on commit 5db97ab

Please sign in to comment.