Skip to content

Commit

Permalink
Fixed performance problem, was calling isPipelineRunning in update...
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed Mar 1, 2024
1 parent e38eae0 commit 3ee7400
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rerun_py/depthai_viewer/_backend/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,8 @@ def update_pipeline(self, runtime_only: bool) -> Message:
def update(self) -> None:
if self._oak is None:
return
if not self._oak.device.isPipelineRunning():
if not self._oak.running():
return
# self._oak.poll()

for component, queue in self._queues:
try:
packet = queue.get_queue().get_nowait()
Expand Down

0 comments on commit 3ee7400

Please sign in to comment.