0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-26 13:49:01 -05:00

delta is now sampled over 1s, improves stability

This commit is contained in:
liabru 2014-03-28 18:21:33 +00:00
parent 15acf3c9b8
commit 1b2d58cebf

View file

@ -14,7 +14,7 @@ var Engine = {};
(function() {
var _fps = 60,
_deltaSampleSize = 8,
_deltaSampleSize = _fps,
_delta = 1000 / _fps;
var _requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame