acquire-project / acquire-common

Core libraries, runtime, and common devices driver for Acquire
Apache License 2.0
0 stars 8 forks source link

simulated camera stalling #7

Open nclack opened 9 months ago

nclack commented 9 months ago

We've seen examples where there's excessive lock contention in the rendering thread for the simulated camera. This can cause stalls in some cases. It seems especially prevalent on os x.

It does not happen super reproducibly.

See this test failure

aliddell commented 2 months ago

Image render thread (simulated_camera_streamer_thread) will generate a frame, release the lock, and then reacquire the lock before the video source thread (in simcam_get_frame) can grab it.

aliddell commented 2 months ago

To test, the best simulated image type is radial sine.