Closed TimPietrusky closed 4 years ago
@alexanderson1993 suggested to try these options in Chrome:
chrome://flags/#expensive-background-timer-throttling
chrome://flags/#stop-non-timers-in-background
I tried both flags while having luminave in a background tab, which resulted in nothing = No lights were updated.
The final solution (after trying Electron first, which also didn't work because of https://github.com/electron/electron/issues/9567) was to move the playback-loop (rAF wrapped inside a setTimeout) from the timeline-manager into a Web Worker, which triggers the main-loop.
luminave can't be in a background tab, it must be active. You can open any other application in fullscreen.
luminave can be in a background tab or minimized.
Issue description
When using luminave in the background (not the active tab, another window is maximized), nothing happens on Mac.
Steps to reproduce
Versions