Open jteresco opened 1 year ago
Can we avoid the repeated calls to Date.now in the tight loop in nextStep?
Date.now
nextStep
The problem here is that an event handler triggered by setTimeout won't be processed until the current event handler being executed yields to the browser.
setTimeout
Can we avoid the repeated calls to
Date.now
in the tight loop innextStep
?The problem here is that an event handler triggered by
setTimeout
won't be processed until the current event handler being executed yields to the browser.