From 28a664641abf8b5ed7947a1b007ff3541950ca01 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 24 Nov 2024 03:47:23 +0100 Subject: [PATCH] perf --- flake.nix | 2 ++ src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 889414b..bda68e4 100644 --- a/flake.nix +++ b/flake.nix @@ -51,6 +51,8 @@ clang trunk binaryen + hotspot + linuxKernel.packages.linux_6_6.perf ]; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs; diff --git a/src/main.rs b/src/main.rs index e377df5..7c3df87 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,11 +25,11 @@ enum PausedState { fn main() { let rapier_config = RapierConfiguration { - scaled_shape_subdivision: 10, + scaled_shape_subdivision: 2, timestep_mode: TimestepMode::Variable { max_dt: 0.5, time_scale: 1.0, - substeps: 20, + substeps: 10, }, gravity: Vec2::new(0.0, -9.81 * METER), physics_pipeline_active: true,