luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 128 forks source link

Release the GIL in the waitKey function #1181

Closed moratom closed 1 week ago

moratom commented 1 week ago

GIL can be safely released as there are no Python API calls in the waitKey function.

Since this is often called in a hot loop, this can severely reduce performance of the remaining Python code.