From 400bfa4ddefb49a746ef68e4e2ca515be4479e98 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 17 Mar 2024 15:34:57 +0100 Subject: [PATCH] more optimizations in release builds --- Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a8885fb..1f7945c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [dependencies] bevy = { version = "0.13.0", features = ["dynamic_linking"] } +#bevy = "0.13.0" # Enable a small amount of optimization in debug mode [profile.dev] @@ -16,5 +17,11 @@ opt-level = 1 [profile.dev.package."*"] opt-level = 3 +#[profile.release] +#opt-level = 'z' [profile.release] -opt-level = 'z' +lto = true +opt-level = 3 +codegen-units = 1 +incremental = false +debug = false