Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > uk.comp.sys.mac > #137093
| From | Jaimie Vandenbergh <jaimie@sometimes.sessile.org> |
|---|---|
| Newsgroups | uk.comp.sys.mac, comp.sys.mac.system |
| Subject | Re: Remote communications by programs that don't have focus |
| Date | 2019-11-13 12:55 +0000 |
| Message-ID | <bsunse1jvktds7o7gc7lc6ils4it3jr47e@4ax.com> (permalink) |
| References | <131120191034137906%timstreater@greenbee.net> |
Cross-posted to 2 groups.
On Wed, 13 Nov 2019 10:34:13 +0000, Tim Streater <timstreater@greenbee.net> wrote: >Any piece of software that we use can be in various states as far as >the UI is concerned. Roughly: > >1) It can have focus (i.e. is showing its menu bar at the moment) >2) It can have focus but the user has minimised it (its one window is >in the Dock) >3) It can still be showing a window but some other app has focus >4) As (3) but its window(s) are in the Dock >5) The user may have hidden it >6) It may be on a different Desktop entirely > >What I'd like to know is whether an app in any state other than (1) >above has equal rights to resources for CPU and for doing I/O to remote >hosts. I'm wondering because I have some software that, when it is in >states (3), (4) and (6) (and possibly others, I'm still testing) seems >at a minimum to lose contact with remote hosts or its timers don't >work. AFAIK the only quiescing mechanism macOS would apply without collaboration from the app is App Nap. You can see whether that state is applying in Activity Monitor, Energy tab. "By default, your app becomes eligible for App Nap if it’s not actively engaged with the user and hasn’t updated a visible window for some length of time." Overview at https://developer.apple.com/library/archive/documentation/Performance/Conceptual/power_efficiency_guidelines_osx/AppNap.html#//apple_ref/doc/uid/TP40013929-CH2-SW1 Try disabling it and see if that helps - defaults write NSGlobalDomain NSAppSleepDisabled -bool YES and a reboot. Apps can be written to not allow themselves to be Napped when performing actions, so this may be a code fix needed. Some tips at https://developer.apple.com/library/archive/documentation/Performance/Conceptual/power_efficiency_guidelines_osx/PrioritizeWorkAtTheAppLevel.html#//apple_ref/doc/uid/TP40013929-CH36-SW1 Cheers - Jaimie -- Actually, the Singularity seems rather useful in the entire work avoidance field. "I _could_ write up that report now but if I put it off, I may well become a weakly godlike entity, at which point not only will I be able to type faster but my comments will be more on-target." - James Nicoll
Back to uk.comp.sys.mac | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 10:34 +0000
Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 12:55 +0000
Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 13:02 +0000
Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 13:09 +0000
Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 13:10 +0000
Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 15:02 +0000
Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 16:05 +0000
Re: Remote communications by programs that don't have focus Barry Margolin <barmar@alum.mit.edu> - 2019-11-13 15:55 -0500
Re: Remote communications by programs that don't have focus Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2019-11-13 21:44 +0000
Re: Remote communications by programs that don't have focus Tim Streater <timstreater@greenbee.net> - 2019-11-13 13:08 +0000
Re: Remote communications by programs that don't have focus Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-11-13 23:45 +0000
csiph-web