From 1b2d58cebfdae75c9a58d38c1e6ee8d202b4bc92 Mon Sep 17 00:00:00 2001 From: liabru Date: Fri, 28 Mar 2014 18:21:33 +0000 Subject: [PATCH] delta is now sampled over 1s, improves stability --- src/core/Engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Engine.js b/src/core/Engine.js index cac6298..249f91f 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -14,7 +14,7 @@ var Engine = {}; (function() { var _fps = 60, - _deltaSampleSize = 8, + _deltaSampleSize = _fps, _delta = 1000 / _fps; var _requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame