more optimizations in release builds

This commit is contained in:
yuni 2024-03-17 15:34:57 +01:00
parent 395b0bcd3f
commit 400bfa4dde

View file

@ -7,6 +7,7 @@ edition = "2021"
[dependencies] [dependencies]
bevy = { version = "0.13.0", features = ["dynamic_linking"] } bevy = { version = "0.13.0", features = ["dynamic_linking"] }
#bevy = "0.13.0"
# Enable a small amount of optimization in debug mode # Enable a small amount of optimization in debug mode
[profile.dev] [profile.dev]
@ -16,5 +17,11 @@ opt-level = 1
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3
#[profile.release]
#opt-level = 'z'
[profile.release] [profile.release]
opt-level = 'z' lto = true
opt-level = 3
codegen-units = 1
incremental = false
debug = false