# Objective Benchmark current `compute_*_normals` methods to get a baseline as requested in https://github.com/bevyengine/bevy/pull/18552#issuecomment-2764875143 ## Solution Since the change to the default smooth normals method will definitely cause a regression, but the previous method will remain as an option, I added two technically-redundant benchmarks but with different names: `smooth_normals` for whatever default weighting method is used, and `face_weighted_normals` to benchmark the area-weighted method regardless of what the default is. Then I'm adding `angle_weighted_normals` in #18552. I also added `flat_normals` for completeness.
12 lines
181 B
Rust
12 lines
181 B
Rust
use criterion::criterion_main;
|
|
|
|
mod compute_normals;
|
|
mod render_layers;
|
|
mod torus;
|
|
|
|
criterion_main!(
|
|
render_layers::benches,
|
|
compute_normals::benches,
|
|
torus::benches
|
|
);
|