openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

ui: simplify CameraView and ensure safe VisionBuf lifetime handling

Open deanlee opened this issue 1 month ago • 3 comments

Refactors CameraView to guarantee that the last valid VisionBuf stays usable during client reconnects or stream switches.

It also significantly simplifies stream switching (ROAD ↔ WIDEROAD) by removing the previous multi-step state machine.

This change resolves: : https://github.com/commaai/openpilot/issues/36741

Results:

  • Always shows the last good frame during switches
  • No buffer invalidation or crashes during switches
  • Much simpler and more maintainable logic

deanlee avatar Dec 09 '25 03:12 deanlee

mici raylib UI Preview

Videos differ! View Diff Report

github-actions[bot] avatar Dec 09 '25 03:12 github-actions[bot]

raylib UI Preview

All Screenshots

github-actions[bot] avatar Dec 09 '25 04:12 github-actions[bot]

why close?

sshane avatar Dec 11 '25 01:12 sshane