Closed OlivierLDff closed 1 year ago
I found the catch:
stream.next
push internal buffers to v4l then call stream.start
. By default with new
buffer count is 4.stream.start
, without setting any buffer. This result in v4l only having 1 buffer (I guess), so because there is no double buffer (or more), 1 frame out of two is skipped.My suggestion is that nokhwa shouldn't call stream.start
, or put it behing a feature flag. So by default performance are normal. On raspberry PI performance can be downgraded in order not to crash.
PR https://github.com/l1npengtul/nokhwa/pull/121 introduce a performance regression. When calling
stream.start
, frame rate is divided by 2. I have no idea why, I'm currently investigating.