test_onroad: ignore first few ui timing frames (#36385)

clean up
pull/36331/head
Shane Smiskol 4 days ago committed by GitHub
parent 702bebf176
commit d71d2bd2d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      selfdrive/test/test_onroad.py
  2. 1
      selfdrive/ui/onroad/cameraview.py

@ -206,7 +206,8 @@ class TestOnroad:
result += "-------------- UI Draw Timing ------------------\n"
result += "------------------------------------------------\n"
ts = self.ts['uiDebug']['drawTimeMillis']
# skip first few frames -- connecting to vipc
ts = self.ts['uiDebug']['drawTimeMillis'][10:]
result += f"min {min(ts):.2f}ms\n"
result += f"max {max(ts):.2f}ms\n"
result += f"std {np.std(ts):.2f}ms\n"

@ -68,6 +68,7 @@ else:
class CameraView(Widget):
def __init__(self, name: str, stream_type: VisionStreamType):
super().__init__()
# TODO: implement a receiver and connect thread
self._name = name
# Primary stream
self.client = VisionIpcClient(name, stream_type, conflate=True)

Loading…
Cancel
Save