From 836400fcf948ec0ba6c103bb4bf74718fcb03680 Mon Sep 17 00:00:00 2001 From: "Ame :]" <104745335+ameknite@users.noreply.github.com> Date: Sat, 23 Sep 2023 17:54:37 -0600 Subject: [PATCH] add compile with performance optimizations (#43) --- Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1fe8c06..6cba0c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,16 @@ version = "0.1.0" edition = "2021" license = "MIT OR Apache-2.0" +# Compile with Performance Optimizations: +# https://bevyengine.org/learn/book/getting-started/setup/#compile-with-performance-optimizations + +# Enable a small amount of optimization in debug mode +[profile.dev] +opt-level = 1 + +# Enable high optimizations for dependencies (incl. Bevy), but not for our code: +[profile.dev.package."*"] +opt-level = 3 + [dependencies] bevy = "0.11"