commaai / openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system in 275+ supported cars.
https://comma.ai/openpilot
MIT License
49.81k stars 9.08k forks source link

Improve camerad startup time #21925

Closed adeebshihadeh closed 1 year ago

adeebshihadeh commented 3 years ago

camerad takes noticeably longer to startup on C3 vs C2

adeebshihadeh commented 3 years ago

@deanlee interested in looking into this one?

deanlee commented 2 years ago

It seems that most of the time is spent on vipc_server->create_buffers. but we can't execute it in multiple threads, maybe there will be some improvement after removing rgb buffer

adeebshihadeh commented 1 year ago

This does indeed seem to be pretty good without the RGB buffers.