On 30/11/19 2:59 pm, Rick Bonafied wrote:
What does release the GIL mean?
GIL = Global Interpreter Lock. It's a lock that the Python interpreter uses to protect its data structures, and it only allows one thread in a process to execute Python code at a time. A well-written extension module will release the GIL while it's doing something time-consuming that doesn't touch Python objects, to give other threads a chance to run Python code. I don't know whether Pillow does this, but quite likely it does. Try doing the image loading in another thread and see if it will run concurrently with your timer. -- Greg -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyglet-users/2e20ac3b-7be5-d52b-28e9-2b640f215c8b%40canterbury.ac.nz.