Skip to content
28 changes: 27 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ std = [
"bevy_color?/std",
"bevy_input?/std",
"bevy_time?/std",
"dep:async-channel",
]
libm = ["bevy_math/libm", "dep:libm"]

Expand Down Expand Up @@ -66,9 +67,34 @@ bevy_input = { version = "0.18.0", default-features = false, optional = true, fe
] }
bevy_time = { version = "0.18.0", default-features = false, optional = true }
libm = { version = "0.2", default-features = false, optional = true }
async-channel = { version = "2.5", optional = true }

[dev-dependencies]
bevy = "0.18.0"
bevy = { version = "0.18.0", default-features = false, features = [
"bevy_animation",
"bevy_asset",
"bevy_color",
"bevy_gizmos",
"bevy_gizmos_render",
"bevy_gltf",
"bevy_log",
"bevy_pbr",
"bevy_post_process",
"bevy_render",
"bevy_scene",
"bevy_remote",
"bevy_ui",
"bevy_ui_render",
"bevy_window",
"bevy_winit",
"default_font",
"multi_threaded",
"png",
"reflect_auto_register",
"tonemapping_luts",
"x11",
"zstd_rust"
] }
noise = "0.9"
turborand = "0.10"
criterion = "0.8"
Expand Down
4 changes: 2 additions & 2 deletions benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn spatial_hashing(c: &mut Criterion) {
.single(app.world())
.unwrap();
let spatial_map = app.world().resource::<CellLookup>();
let hash = CellId::__new_manual(parent, &CellCoord { x: 0, y: 0, z: 0 });
let hash = CellId::new_manual(parent, &CellCoord { x: 0, y: 0, z: 0 });
let entry = spatial_map.get(&hash).unwrap();

assert_eq!(spatial_map.nearby(entry).count(), 27);
Expand Down Expand Up @@ -263,7 +263,7 @@ fn spatial_hashing(c: &mut Criterion) {
.single(app.world())
.unwrap();
let spatial_map = app.world().resource::<CellLookup>();
let hash = CellId::__new_manual(parent, &CellCoord { x: 0, y: 0, z: 0 });
let hash = CellId::new_manual(parent, &CellCoord { x: 0, y: 0, z: 0 });
let entry = spatial_map.get(&hash).unwrap();

assert_eq!(spatial_map.nearby(entry).count(), 27);
Expand Down
Loading
Loading