CPU gets thrashed on macOS/Linux when a fullScreenMode=0 window loses focus (e.g. in all console demos)

Issue #38 new
Jeremy Hill created an issue

On Windows, no problem. On the 2013 MacBook Pro, this uses about 15% CPU when the window is on top, but 45% when it is in the background:

python3 -c "import Shady; w = Shady.World(fullScreenMode=0, threaded=0); w.Run()"

Unfortunately this means that the CPU gets thrashed, in all the interactive demos while the user is interacting at the console.

Use this bash line to observe the phenomenon from another console tab:

while true; do ps waux | grep python3 | grep -v grep; sleep 1; done

Comments (1)

  1. Log in to comment