Py5 release 0.10.11a0!

Version 0.10.11a0 of py5 is now live. What changed?

Addressing MacOS’s so-called “App Nap”

MacOS will throttle the CPU usage of application windows that do not have the focus. This is called “App Nap.” This can cause a problem for py5 Sketches because the frame rate is throttled. About a minute after the Sketch window loses focus, the frame rate will drop significantly. The Sketch will keep running, but much slower.

This release fixes this problem by enabling py5 to communicate with MacOS and disable App Nap for its Sketch windows.

Other Bug Fixes and Small Improvements

  • #778 Fixed a shortcoming in py5’s trimesh integration. Many thanks to @villares for finding this bug!
  • Fix the method signature for begin_closed_shape(). Previously the signature incorrectly implied that this method accepts a shape type parameter.

I also made some small adjustments to the Live Coding functionality to support the upcoming Posix Renderer… Wait, what is the Posix Renderer? You’ll find out soon. Stay tuned!

Congrats on the release :smiley:

Is that something that should also be fixed in processing/processing4 or was the issue specific to py5?

I tested Processing through the PDE on my MacOS computer and I could not duplicate the problem there. I’m not entirely sure why it doesn’t affect Processing but am glad you don’t have to deal with it.

I didn’t test mewnala for this issue but made a note to give it a try later today. If it is a problem I’ll open an issue for it.

@sableraph I tested mewnala and I see that library doesn’t have the app nap problem either. I’m not sure why py5 is affected and these others are not. In any case, I’m glad you don’t have to worry about this.