1. pygame
  2. pygame
  3. pygame

Commits

illume  committed a0a4019

Release the GIL before updating the screen.

  • Participants
  • Parent commits 5cf3f95
  • Branches default

Comments (0)

Files changed (1)

File src/display.c

View file
  • Ignore whitespace
             ++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;