optimizations!!!! woohoo!!

This commit is contained in:
Schrottkatze 2024-11-22 21:25:34 +01:00
parent c186e8c50a
commit 20ac63c64e
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
3 changed files with 29 additions and 1 deletions

18
.cargo/config.toml Normal file
View file

@ -0,0 +1,18 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = [
"-C", "link-arg=-fuse-ld=mold",
# (Nightly) Make the current crate share its generic instantiations
"-Zshare-generics=y",
]
[unstable]
codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
[profile.dev.package."*"]
codegen-backend = "llvm"

10
Cargo.lock generated
View file

@ -301,6 +301,7 @@ version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "043c9ad4b6fc4ca52d779873a8ca792a4e37842d07fce95363c9e17e36a1d8a0"
dependencies = [
"bevy_dylib",
"bevy_internal",
]
@ -508,6 +509,15 @@ dependencies = [
"sysinfo",
]
[[package]]
name = "bevy_dylib"
version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c399292fac67682a72666e78872626f3c1c39b34c430b6f02c81d21da91b500"
dependencies = [
"bevy_internal",
]
[[package]]
name = "bevy_ecs"
version = "0.14.2"

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
bevy = "0.14.2"
bevy = { version = "0.14.2", features = ["dynamic_linking"] }
bevy_rapier2d = "0.27.0"
# Enable a small amount of optimization in the dev profile.