Comparing version 2.3.0 to 2.4.0
@@ -88,2 +88,3 @@ var isGL = require('is-webgl-context'); | ||
this._then = Date.now(); | ||
this.maxDeltaTime = typeof options.maxDeltaTime === 'number' ? options.maxDeltaTime : 1000/24; | ||
@@ -116,3 +117,3 @@ //FPS counter | ||
var now = Date.now(); | ||
var dt = (now-this._then); | ||
var dt = Math.min(this.maxDeltaTime, (now-this._then)); | ||
@@ -119,0 +120,0 @@ this._frames++; |
{ | ||
"name": "canvas-app", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "sets up a retina-scaled canvas with render loop", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13587
207