Release GIL when swapping buffers
This commit is contained in:
parent
c9b34e98f9
commit
58c3a5b4ac
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user