[go-nuts] Re: ticker not firing often enough in minimal mac app with run loop

2019-09-05 Thread Tor Langballe
Thanks for all the replies everybody! id activity = [[NSProcessInfo processInfo] beginActivityWithOptions:NSActivityBackground reason:@"Good Reason"]; *Seems to do the trick*, and cpu usage stays at 0.01% I tried using sudo nice -1 and even -20, the cpu usage went up from 0.01 to 0.1, but I

[go-nuts] Re: ticker not firing often enough in minimal mac app with run loop

2019-09-05 Thread Subramanian Sridharan
I came across a similar issue when I was working with a heartbeat feature for Macs. The same code ran as expected on Linux machines. In the end, the issue was with Sleep Mode in the Mac machine. When a Mac goes to sleep, time based functions seem to pause. They resume when the machine is woken