-
Notifications
You must be signed in to change notification settings - Fork 1
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
Camera frame update can hog MATLAB and massively slow down some stuff #126
Comments
To test this I start Zapit and look at the resource meter on Windows. It's 80% CPU use. Drops to 15% on Is there a more efficient way? There must be. e.g.
|
I test and find that with the original frame update system involving the listener, it is laggy confirming the sample calib. With the Edit it's just:
To reverse axes:
|
The |
A lot of operations, like opening folders, fitting models, etc, run orders of magnitude slower because somehow they are being bogged down by the camera updating. Only certain things seem badly affected. It shouldn't really be like this but at present a bunch of Zapit operations that seem affected will shut down the camera temporarily whilst they complete before firing it back up again. We should work out why this happens and fix it. I'm sure we can do better than this. Maybe there should be a timer rather than a listener on the new frame property.
For sure something wrong is happening because if you
ctrl-c
at the CLI you abort the image acquisition and the following error pops up:You might also get:
Exactly what you see must depend on what it was doing when
ctrl-c
is hit.Other times it will start filling the screen with:
And you have to restart it.
The text was updated successfully, but these errors were encountered: