selfdrive/ui: enable conflate mode in VisionIpcClient to prevent stale frame rendering (#35445)

use conflate mode in VisionIpcClient to prevent stale frame rendering
pull/35450/head
Dean Lee 3 months ago committed by GitHub
parent 4c8f15221e
commit fc0bb72147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      selfdrive/ui/onroad/cameraview.py

@ -57,7 +57,7 @@ else:
class CameraView: class CameraView:
def __init__(self, name: str, stream_type: VisionStreamType): def __init__(self, name: str, stream_type: VisionStreamType):
self.client = VisionIpcClient(name, stream_type, False) self.client = VisionIpcClient(name, stream_type, conflate=True)
self._name = name self._name = name
self._stream_type = stream_type self._stream_type = stream_type
@ -90,7 +90,7 @@ class CameraView:
self._clear_textures() self._clear_textures()
self.frame = None self.frame = None
self._stream_type = stream_type self._stream_type = stream_type
self.client = VisionIpcClient(self._name, stream_type, False) self.client = VisionIpcClient(self._name, stream_type, conflate=True)
@property @property
def stream_type(self) -> VisionStreamType: def stream_type(self) -> VisionStreamType:

Loading…
Cancel
Save