nqthqn / craconweb

https://www.cravecontrol.org
0 stars 1 forks source link

Time logging accuracy improvement. #79

Closed daved closed 7 years ago

daved commented 7 years ago

The system should be as accurate as possible. For example, the current "500 ms intervals" regularly report somewhere between 500 and 520 milliseconds.

abadi199 commented 7 years ago

I'm not sure if there's anything we can do to improve this. I don't have any experience in this level of application optimization, but I believe since we're relying on RequestAnimationFrame, which means the tick will happen every 16ms (assuming we're getting 60fps). This means, we only have 16ms to finish all the calculation on our update+view function, and according to Firefox performance tools, we're already at 60fps for most of the time here.

And to answer your question:

daved commented 7 years ago

@abadi199 I think you covered everything thoroughly. Thanks for your help!

@nqthqn Please reopen this issue if you see or think of anything that should be addressed.