[bisq-network/bisq] OSX App Nap mode causes Bisq to lose network connections (#1701)

Manfred Karrer notifications at github.com
Fri Sep 21 20:03:24 UTC 2018


The JavaFX media player consumes a lot of CPU (100%) even if idle. I used old swing style code which consumes no visible extra cpu (Bisq in idle is about 2%) with that. 
The sound file we use is filled with white noise at a very low volume which is not audible at even pretty high speaker volume. Using complete silence does not work as the OS detects that there is no audio.

I am aware that this is a hack, but there are quite a few arguments to go that path and not use the official way (https://developer.apple.com/library/archive/documentation/Performance/Conceptual/power_efficiency_guidelines_osx/PrioritizeWorkAtTheAppLevel.html#//apple_ref/doc/uid/TP40013929-CH36-SW3 ).

- It would introduce native OSX code which complicates build process
- We don't have any expert in that area (OSX native). 
- The official way will only work for AppNap not preventing sleep mode. 
- It might be also that Apple changes the behavior or API as they did in the past. 
- Other OS might have already or might add in future similar features like App Nap and playing a sound is likely helping there as well to prevent that Bisq gets set to sleep mode or App Nap (low resources) mode.

I added a checkbox in the settings to deactivate that playing of the silent sound and allow standby mode, so for users who want explicitly allow standby mode it can be set. 

<img width="1198" alt="screen shot 2018-09-21 at 14 38 23" src="https://user-images.githubusercontent.com/1449498/45903467-6e2a6a00-bdaf-11e8-9cc6-ff6a9d77c431.png">

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/1701#issuecomment-423655290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180921/456cb5a9/attachment.html>


More information about the bisq-github mailing list