PaxInstruments / t100-software

0 stars 1 forks source link

Periodic update slow down when sleeping and 'out of focus' #33

Open kehribar opened 9 years ago

kehribar commented 9 years ago

Hi,

Periodic timer that handles the log, UI update and led blink tasks slow down when my Mac OSX laptop goes to sleep or went out of focus. I just became aware of after added the LED task.

It seems like a known issue: https://forum.qt.io/topic/43602/qtimer-is-slow-on-mac-if-application-is-running-in-background and nothing to do with QT mainly.

I haven't done anything yet but just opening this issue to inform everyone.

ihsan.

charlespax commented 9 years ago

Yeah, that looks like app nap at work.

You can disable app nap for an application via the terminal (http://stackoverflow.com/questions/22773570/disable-app-nap-for-ruby-on-mavericks). Maybe we have a choice to disable app nap at run time or at compile time.

charlespax commented 9 years ago

We should address this before shipping the minimum viable product.