aboutsummaryrefslogtreecommitdiff
path: root/azalea
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-19 15:05:44 +0600
committermat <git@matdoes.dev>2026-01-19 13:28:15 +0400
commit6f82263de58c6f33cca8cc36276b5e478801b352 (patch)
tree6230d62ce601efa2ae31f9fb363e8d756d787d4d /azalea
parent70bd9c94dd7ca68777a0ead5f9432812e535bee3 (diff)
downloadazalea-drasl-6f82263de58c6f33cca8cc36276b5e478801b352.tar.xz
minor physics optimizations
Diffstat (limited to 'azalea')
-rw-r--r--azalea/benches/physics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/benches/physics.rs b/azalea/benches/physics.rs
index d81a0221..8b15cc6c 100644
--- a/azalea/benches/physics.rs
+++ b/azalea/benches/physics.rs
@@ -32,7 +32,7 @@ fn generate_world(partial_chunks: &mut PartialChunkStorage, size: u32) -> ChunkS
for z in 0..16_u8 {
chunk.set_block_state(
&ChunkBlockPos::new(x, 1, z),
- BlockKind::OakFence.into(),
+ BlockKind::Stone.into(),
chunks.min_y,
);
}
@@ -74,7 +74,7 @@ fn run_physics_benchmark(b: &mut Bencher<'_>) {
b.iter(|| {
let entity = simulation_set.spawn(SimulatedPlayerBundle::new(Vec3::new(0.5, 2.0, 0.5)));
- for _ in 0..20 {
+ for _ in 0..200 {
simulation_set.tick();
}
simulation_set.despawn(entity);