4 ms·
In my project the serviceWorker only has a setInterval that will trigger the main loop. When the setInterval was in the main code it would slow down, a lot, wh
by ogig 10y ago
In my project the serviceWorker only has a setInterval that will trigger the main loop.
When the setInterval was in the main code it would slow down, a lot, when the tab was on background. That made the generated music go slow aswell. With the serviceWorker the clock is rock solid, even when the background app can't keep up, the timing is solid.