mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 08:43:54 +08:00
camerad: reduce cpu usage (#24993)
wait for 50ms old-commit-hash: d13137a83f2036d436c4bc56b4a65fa6962b519d
This commit is contained in:
@@ -126,7 +126,7 @@ CameraBuf::~CameraBuf() {
|
||||
}
|
||||
|
||||
bool CameraBuf::acquire() {
|
||||
if (!safe_queue.try_pop(cur_buf_idx, 1)) return false;
|
||||
if (!safe_queue.try_pop(cur_buf_idx, 50)) return false;
|
||||
|
||||
if (camera_bufs_metadata[cur_buf_idx].frame_id == -1) {
|
||||
LOGE("no frame data? wtf");
|
||||
|
||||
Reference in New Issue
Block a user