Skip to content

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

Open
eugene-mcn wants to merge 3 commits intogenicam:masterfrom
eugene-mcn:master
Open

Added revoking of buffers without releasing datastream and functionality to reuse previously announced bufferes#426
eugene-mcn wants to merge 3 commits intogenicam:masterfrom
eugene-mcn:master

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