Fix demo sorting and store data in analysis-input instead of always loading it

This commit is contained in:
Lol3rrr
2024-10-19 00:02:16 +02:00
parent 966bd4f413
commit f22c1a1420
6 changed files with 56 additions and 33 deletions

View File

@@ -29,11 +29,8 @@ impl Analysis for HeatmapAnalysis {
> {
tracing::info!("Generating HEATMAPs");
let file = std::fs::File::open(&input.path).unwrap();
let mmap = unsafe { memmap2::MmapOptions::new().map(&file).unwrap() };
let config = analysis::heatmap::Config { cell_size: 5.0 };
let result = analysis::heatmap::parse(&config, &mmap).unwrap();
let result = analysis::heatmap::parse(&config, input.data()).unwrap();
tracing::info!("Got {} Entity-Heatmaps", result.player_heatmaps.len());
let heatmap_result: Vec<_> = result