Commits

illume committed a0a4019

Release the GIL before updating the screen.

Comments (0)

Files changed (1)

             ++count;
         }
 
-        if (count)
+        if (count) {
+            Py_BEGIN_ALLOW_THREADS;
             SDL_UpdateRects (screen, count, rects);
+            Py_END_ALLOW_THREADS;
+        }
+
         PyMem_Free ((char*)rects);
     }
     Py_RETURN_NONE;