Skip to content

Add camera primitives benchmark#23863

Open
CrazyRoka wants to merge 1 commit intobevyengine:mainfrom
CrazyRoka:camera-bench
Open

Add camera primitives benchmark#23863
CrazyRoka wants to merge 1 commit intobevyengine:mainfrom
CrazyRoka:camera-bench

Conversation

@CrazyRoka
Copy link
Copy Markdown
Contributor

Objective

  • Add performance benchmarks for camera primitives to track the efficiency of intersection tests.

Solution

  • Created a new benchmark suite bevy_camera.

Testing

  • Ran the benchmarks locally using cargo bench -p benches --bench camera -- --save-baseline main intersects_obb.
intersects_obb/sphere_intersects_obb
                        time:   [6.5819 ns 6.6022 ns 6.6255 ns]
intersects_obb/frustum_intersects_obb
                        time:   [14.919 ns 14.954 ns 14.991 ns]
intersects_obb/frustum_intersects_obb_fallback_identity
                        time:   [14.940 ns 14.965 ns 14.993 ns]
intersects_obb/frustum_intersects_obb_identity
                        time:   [6.8076 ns 6.8173 ns 6.8276 ns]

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Math Fundamental domain-agnostic mathematical operations C-Benchmarks Stress tests and benchmarks used to measure how fast things are S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Apr 17, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in Rendering Apr 17, 2026
@alice-i-cecile alice-i-cecile added X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Benchmarks Stress tests and benchmarks used to measure how fast things are D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Uncontroversial This work is generally agreed upon

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

2 participants