aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-01-12 23:59:46 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-01-12 23:59:46 +0100
commit7bbba155f10ce1344724ea00ca70c4d3bb469272 (patch)
treea370a39a8ad226e27bc1c4f3957c993ed17ad816 /src/main.rs
parentdef44c6e969f1027da82e4130a82db7e4916ba86 (diff)
downloadhittekaart-7bbba155f10ce1344724ea00ca70c4d3bb469272.tar.gz
hittekaart-7bbba155f10ce1344724ea00ca70c4d3bb469272.tar.bz2
hittekaart-7bbba155f10ce1344724ea00ca70c4d3bb469272.zip
parallelize PNG encoding
This gives a massive speedup
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1859243..269d95c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -39,7 +39,7 @@ fn main() -> Result<()> {
let bar = ProgressBar::new(counter.tile_count().try_into().unwrap())
.with_style(progress_style.clone());
bar.set_prefix("Saving heat tiles");
- renderer::lazy_colorization(&counter, &target, |x| bar.inc(x.try_into().unwrap()))?;
+ renderer::lazy_colorization(counter, &target, |x| bar.inc(x.try_into().unwrap()))?;
bar.finish();
}