Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Process priority when application is minimized on dock or not focused #2822
I'm developing a CPU intensive application with electron and i'm experiencing some issue with process priority. We have a native module written in C doing signal processing (low level) and we broadcast live streaming over a socket. When application window is visible everything goes smooth but when is not focused (or worse minimized on dock) it looks like process is running at extremely low priority (native lib buffers are not able to be processed in real time). The strange fact is that this behaviour was introduced somewhere between electron 0.26.1 (firts version we used) and 0.31.1 (next version bump we adopted). Between these two version we have a leap of chromium from 42 to 44.
Anyone has any idea about this issue?
To be clear even in 0.26.1 i had experienced something similar but it wasn't so bad to compromise application functionality