-
Notifications
You must be signed in to change notification settings - Fork 157
Various performance optimizations #262
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
base: humble
Are you sure you want to change the base?
Conversation
Hello @DanBmh |
At least with my setup (ubuntu22+docker), the camera reconnection on the humble branch does not work if i plug out and in the USB cable:
|
I have retested the two branches (this and humble) again today, and interestingly the delay benefit was much lower this time. Maybe you could test the delay difference with one of your cameras? I've measured delay with:
|
Reduced the image grabbing/processing time by about 30% for my a2A1920-160umBAS.
Instead of 18ms per frame it now only takes 12ms per frame.
Influence of changes:
The main reason for the time improvements is that the api calls in those code snippets take a lot of time.
There should be further optimization options in other methods as well. Basically the best option might be a complete reimplementation of the parameter handling which stores/updates them as class attributes each time they are changed, so that they don't need to be requested every time.