- TIER0 (<10 tiles): Vec-based linear search, zero hash overhead - TIER1 (10-30 tiles): FxHashMap scratchpad with memory reuse - TIER2 (30-100 tiles): AHashMap scratchpad for better collision resistance - TIER3 (>100 tiles): Chunk waypoint decomposition - Added benchmarking infrastructure with F8 report trigger - Added async infrastructure: PendingPath, CompletedPaths resources - Lowered MAX_NODES to 5000 to prevent runaway searches Benchmarks show P50 improved 13%, max improved 53%
33 lines
646 B
TOML
33 lines
646 B
TOML
[package]
|
|
name = "dorf"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
bevy = { version = "0.18.1", features = ["wayland"] }
|
|
noise = "0.9.0"
|
|
rand = "0.10.0"
|
|
bevy_rand = { version = "0.14.2", features = ["wyrand"] }
|
|
image = "0.25.10"
|
|
bevy_platform = "0.18.1"
|
|
rayon = "1.11.0"
|
|
rustc-hash = "2.1.1"
|
|
ahash = "0.8.12"
|
|
nohash-hasher = "0.2.0"
|
|
|
|
# Enable max optimizations for dependencies, but not for our code:
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
# Enable only a small amount of optimization in debug mode
|
|
[profile.dev]
|
|
opt-level = 1
|
|
debug = true
|
|
|
|
[profile.release]
|
|
lto = true
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
incremental = false
|
|
debug = false
|