mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 18:53:55 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user