letmaik / pyvirtualcam

🎥 Send frames to a virtual camera from Python
GNU General Public License v2.0
472 stars 50 forks source link

FPS limiter yields a frame rate that is too high #1

Closed letmaik closed 3 years ago

letmaik commented 4 years ago

The simple.py sample uses sleep_until_next_frame() which should achieve the requested frame rate of 20, however the actual framerate is ~30-34.

Something must be wrong with this: https://github.com/letmaik/pyvirtualcam/blob/35505d3ad3db3e1f39405061bd4105b76b9637e3/pyvirtualcam/camera.py#L75-L78