jdber1 / opendrop

OpenDrop pendant drop tensiometry software
GNU General Public License v3.0
31 stars 19 forks source link

Software lag when/after selecting camera #56

Open Ash-P-Williams opened 1 month ago

Ash-P-Williams commented 1 month ago

After selecting the camera through GenICam (Blackfly S USB3), I experience significant lag in the software on our windows PC, where it may take several minutes to respond to an input. I'm now experiencing 'not responding' issues for long overnight measurements, but I'm not sure if it is related. It may be the frame rate of the camera being fed in which is significantly hindering performance. Data acquisition is relatively modest, collecting frames every 180 s overnight.

OpenDrop version 3.3.1

eugenhu commented 1 month ago

You could maybe try the windows build from v3.3.0 where the camera preview frame rate was capped to 1fps. I'm not sure why the interface would be so laggy in the newer version though.

For the 'not responding' issues during measurements. How many images are you collecting, like ~300? All the captured images are currently held in memory as the application runs, which is not very scalable but that was the easiest way to code it up.. Could you also check the memory consumption of opendrop during long measurements? It's possible it's hogging too much RAM. A work around would be to capture images using another application and then process it offline later with opendrop.

Ash-P-Williams commented 1 month ago

We will try the earlier version and hopefully it will resolve the lag.

For the not responding issue, it is likely that it is a memory issue then. We were running 900 measurements. In this case we may just adjust the acquisition time to only 100 but take a measurement every 30 minutes or so. The offline processing is also a good suggestion. I can report the memory usage if it stops responding again