3 ms·
Can you now write a JUCE app that doesn't wake up every 16 miliseconds or so, even when idling? It's horrible for any battery operated device.
by seba_dos1 8y ago
Can you now write a JUCE app that doesn't wake up every 16 miliseconds or so, even when idling? It's horrible for any battery operated device.
- BubRoss 8y agoIt is a GPL library in non commercial form so I would guess the answer is yes. That's good to know though.
- seba_dos1 8y agoWell, if we count "fixing it yourself" as an answer, then of course - but at this point you could just write your own toolkit anyway ;) I have actually tried to take a look at what JUCE does there and it looks like their whole rendering path is strongly tied to constantly running timers. Reworking JUCE to sleep more doesn't look to me like a small patch - it's more likely to be some kind of architectural rework. BTW. I know this only because the Pocket C.H.I.P used JUCE for its default launcher and I tried to investigate why does the launcher eat 5-8% CPU all the time even when idling in background. At the end I've "fixed" it by putting something like "max(200, duration)" instead of "duration" in the code inside JUCE that schedules timers. This makes the UI pretty laggy, but at least the device sleeps around 10 times longer than before :P