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:
Matthias Schiffer 2023-08-03 23:02:49 +02:00
parent fb712cd2f5
commit deb33814ee
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 29 additions and 9 deletions

View file

@ -20,6 +20,7 @@ image = { version = "0.24.5", default-features = false, features = ["png"] }
indexmap = { version = "2.0.0", features = ["serde"] }
itertools = "0.11.0"
num-integer = "0.1.45"
rustc-hash = "1.1.0"
serde = "1.0.152"
serde_json = "1.0.99"
zstd = "0.12.3"