You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't dive too deep in the code to check out how much this is impacting performance (hopefully not more than a few calls each tick), but in case it is it would be better to use Date.now() rather than +new Date() or window.performance.now().
The text was updated successfully, but these errors were encountered:
The timestamp is not actually high-resolution. To mitigate security threats such as Spectre, browsers currently round the results to varying degrees. (Firefox started rounding to 1 millisecond in Firefox 60.) Some browsers may also slightly randomize the timestamp. The precision may improve again in future releases; browser developers are still investigating these timing attacks and how best to mitigate them.
More on performance.now here: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now
I didn't dive too deep in the code to check out how much this is impacting performance (hopefully not more than a few calls each tick), but in case it is it would be better to use Date.now() rather than +new Date() or window.performance.now().
The text was updated successfully, but these errors were encountered: