mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Release GIL when swapping buffers
This commit is contained in:
@@ -202,7 +202,9 @@ dealloc(Window* self) {
|
||||
|
||||
static PyObject*
|
||||
swap_buffers(Window *self) {
|
||||
Py_BEGIN_ALLOW_THREADS;
|
||||
glfwSwapBuffers(self->window);
|
||||
Py_END_ALLOW_THREADS;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user