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,