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

use conflate mode in VisionIpcClient to prevent stale frame rendering
This commit is contained in:
Dean Lee
2025-06-04 14:06:46 +08:00
committed by GitHub
parent 4c8f15221e
commit fc0bb72147

View File

@@ -57,7 +57,7 @@ else:
class CameraView:
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._stream_type = stream_type
@@ -90,7 +90,7 @@ class CameraView:
self._clear_textures()
self.frame = None
self._stream_type = stream_type
self.client = VisionIpcClient(self._name, stream_type, False)
self.client = VisionIpcClient(self._name, stream_type, conflate=True)
@property
def stream_type(self) -> VisionStreamType: