Is it possible to update at intervals of 10nths milliseconds. I used
window.setInterval(timeUpdate,20);
Is this possible, or does the browser stream have some kind of minimum period?
thank
Depending on the browser, its version and if the focus is on the tab, the timer resolution may vary. For more details see refrence below , especially minimum delay and timeout nesting .
You can set a very small interval (for example, 1 ms); however, most browsers have a minimal timer granularity, usually somewhere between 4-50 ms; special cases can be applied for inactive browser views / tabs / windows.
: , , - -, , -, , , .