goodrobots/vision_landing

Python ThreadedReader queue building up

fnoop opened this issue · 1 comments

fnoop commented

Long latency between the incoming data and the sending timestamp - up to 1s. This looks to be because the threadsafe FIFO queue is building up rapidly and not being processed quickly enough, so old data is being processed.
Changing to a LIFO queue helps, but the queue will build up infinitely and doesn't deal with the underlying problem.

fnoop commented

Temporarily addressed in cef02bd, by adding an additional logic to pop the FIFO queue if it gets above 10