openpilot
openpilot copied to clipboard
ui: simplify CameraView and ensure safe VisionBuf lifetime handling
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
raylib UI Preview
All Screenshots
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
why close?