mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-01 05:29:05 +02:00
minedmap/tile_renderer: avoid calling block_color() more often than necessary
Collect all biome indices/weights for a chunk and deduplicate using a hash map.
This commit is contained in:
parent
fb712cd2f5
commit
deb33814ee
3 changed files with 29 additions and 9 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -401,6 +401,7 @@ dependencies = [
|
|||
"indexmap",
|
||||
"itertools",
|
||||
"num-integer",
|
||||
"rustc-hash",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"zstd",
|
||||
|
@ -489,6 +490,12 @@ dependencies = [
|
|||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustc-hash"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
||||
|
||||
[[package]]
|
||||
name = "rustix"
|
||||
version = "0.38.4"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue