crappy-coder / astrid

2D Game Engine and Application Framework
2 stars 0 forks source link

update Timer to use window.performance.now #15

Closed crappy-coder closed 9 years ago

crappy-coder commented 9 years ago

The timer code uses Date.now and just relative timing, need to use window.performance.now() instead.

fabslab commented 9 years ago

I'll do it

fabslab commented 9 years ago

btw looks like rAF argument is high precision now https://developers.google.com/web/updates/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision