Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added revoking of buffers without releasing datastream and functionality to reuse previously announced bufferes #426

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eugene-mcn
Copy link

@eugene-mcn eugene-mcn commented Aug 2, 2023

Found an issue where repeated ia.start() and ia.stop() calls would allocate imcreasing amounts of memory. Appears to be from a combination of ia._create_ds_on_connection = True and no call to data_stream.revoke_buffer() being made at acquisition stop.

Have added _reuse_buffers flag and check to announce or revoke buffers if required number of buffers changed.

No tracking of which datastreams own which so will only work with single datastream cameras

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant