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

Use ReadQueue for PhotonCamera timestamps #1316

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

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented May 5, 2024

This removes the extra GetLastChange call to keep everything properly atomic.

Closes #1303

@mcm001 mcm001 requested a review from a team as a code owner May 5, 2024 00:24
@mcm001 mcm001 force-pushed the getatomic-lib branch 4 times, most recently from 37e3f47 to a455ac2 Compare May 7, 2024 15:17
@srimanachanta
Copy link
Member

What's the overhead of enabling poll storage? If it's somewhat decent we should make this a configurable option when actually creating the camera.

@mcm001
Copy link
Contributor Author

mcm001 commented May 13, 2024

It just makes the circular buffer of std vectors of bytes larger. Since the contents of the vector are dynamically allocated, the cost is zero, and then as you push more new packets in, you allocate new memory. So probably on the order of 20kb, at worst, of dynamically allocated memory, and 20*sizeof(vector) statically?

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.

Add unique result getter to PhotonCamera
2 participants