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 still got the big pauses, I guess it still puts the app to sleep when it thinks it isn't doing anything, even if it gets more CPU when it's not sleeping. tor -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c2e7d85a-dd86-4fd7-b2c8-e52d6fd5b712%40googlegroups.com.