Skip to content

Commit

Permalink
add compile with performance optimizations (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameknite committed Sep 23, 2023
1 parent c3e4e6d commit 836400f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 836400f

Please sign in to comment.