From e24c0edb8f665ad885b5a9685867627653e8fbae Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 23 Jan 2024 15:50:31 -0800 Subject: [PATCH] =?UTF-8?q?=D0=90dded=20optimizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c84faa4..57b3816 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,12 @@ incremental = true codegen-units = 256 rpath = false +# Rapier is a LOT faster with optimizations, +# make sure they're always enabled +[profile.dev.package.rapier2d] +opt-level = 3 +codegen-units = 1 + [profile.release] opt-level = 3 debug = false