Skip to content

render optimize - #494

Merged
thftgr merged 2 commits into
carrot-wipfrom
thftgr/cluster
Jul 31, 2026
Merged

render optimize#494
thftgr merged 2 commits into
carrot-wipfrom
thftgr/cluster

Conversation

@thftgr

@thftgr thftgr commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

변경 내용

  • 유효한 측후방 거리값 없이 BSD 신호만 활성화됐을 때 고정 위치 LR/RR 가상 차량을 생성하던 fallback 로직을 제거했습니다.
  • 실제 거리값이 있는 코너 레이더 차량과 BSD 차선 강조 동작은 그대로 유지했습니다.
  • BSD 신호만으로 차량이 생성되지 않는지와 실측 후방 차량은 유지되는지 검증하는 회귀 테스트를 추가했습니다.

검증

  • 관련 테스트를 실행했습니다.
    • test_cluster_route_replay.py, test_cluster_live.py, test_cluster_scene.py
    • 75개 테스트 통과
    • 사용자 문서 누락 검사 통과
  • 사용자에게 보이는 동작이 바뀌면 docs/user/kodocs/user/en의 연결된 문서 쌍을 함께 수정했습니다.

Docs-Not-Needed: 제거된 표시는 유효한 거리 측정값 없이 BSD 불리언만으로 생성되던 내부 합성 fallback이며, 사용자 설정이나 보장된 공개 기능으로 문서화되어 있지 않습니다. 사용자 문서의 LaneChangeBsd 항목은 차로 변경 제어 설정으로 이번 클러스터 렌더링 변경과 무관합니다. 실제 코너 레이더 차량 표시와 BSD 차선 강조 기능 및 설정은 그대로 유지되므로 연결된 사용자 문서 쌍은 수정하지 않았습니다.

thftgr added 2 commits August 1, 2026 01:19
Revamped road-camera overlay rendering to batch contiguous visible segments and reuse projection buffers, reducing redundant computations. Achieved a notable FPS and CPU performance improvement while preserving UI fidelity and maintaining exact legacy fallback functionality. Extensive profiling, regression tests, and visual validation were conducted to ensure correctness and stability.
Eliminates the creation of fixed-position rear virtual vehicles based solely on BSD signals without valid distance fields. Preserves behavior for measured corner vehicles and ensures BSD lane highlights remain functional. Updated tests verify compliance with the new logic.
@thftgr
thftgr merged commit 0f02e3c into carrot-wip Jul 31, 2026
happymaj11r pushed a commit to happymaj11r/openpilot that referenced this pull request Jul 31, 2026
* Optimize road-camera CPU usage by implementing batching.

Revamped road-camera overlay rendering to batch contiguous visible segments and reuse projection buffers, reducing redundant computations. Achieved a notable FPS and CPU performance improvement while preserving UI fidelity and maintaining exact legacy fallback functionality. Extensive profiling, regression tests, and visual validation were conducted to ensure correctness and stability.

* Remove synthetic BSD-based virtual vehicles in cluster logic

Eliminates the creation of fixed-position rear virtual vehicles based solely on BSD signals without valid distance fields. Preserves behavior for measured corner vehicles and ensures BSD lane highlights remain functional. Updated tests verify compliance with the new logic.

(cherry picked from commit 0f02e3c)
happymaj11r pushed a commit that referenced this pull request Jul 31, 2026
* Optimize road-camera CPU usage by implementing batching.

Revamped road-camera overlay rendering to batch contiguous visible segments and reuse projection buffers, reducing redundant computations. Achieved a notable FPS and CPU performance improvement while preserving UI fidelity and maintaining exact legacy fallback functionality. Extensive profiling, regression tests, and visual validation were conducted to ensure correctness and stability.

* Remove synthetic BSD-based virtual vehicles in cluster logic

Eliminates the creation of fixed-position rear virtual vehicles based solely on BSD signals without valid distance fields. Preserves behavior for measured corner vehicles and ensures BSD lane highlights remain functional. Updated tests verify compliance with the new logic.

(cherry picked from commit 0f02e3c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant