Skip to content

Commit

Permalink
remove this
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Dec 2, 2023
1 parent 4ecac45 commit a2f2faf
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions src/turfs/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,26 +370,20 @@ fn post_process() {
with_turf_gases_read(|arena| {
let processables = crate::gas::types::with_reactions(|reactions| {
GasArena::with_all_mixtures(|all_mixtures| {
Some(
arena
.map
.par_values()
.filter_map(|&node_index| {
let mix = arena.get(node_index).unwrap();
mix.enabled().then_some(mix)
})
.filter_map(|mixture| {
post_process_cell(mixture, &vis, all_mixtures, reactions)
})
.collect::<Vec<_>>(),
)
arena
.map
.par_values()
.filter_map(|&node_index| {
let mix = arena.get(node_index).unwrap();
mix.enabled().then_some(mix)
})
.filter_map(|mixture| post_process_cell(mixture, &vis, all_mixtures, reactions))
.collect::<Vec<_>>()
})
});
if processables.is_none() {
return;
}
processables.unwrap().into_par_iter().for_each(
|(tmix, should_update_vis, should_react)| {
processables
.into_par_iter()
.for_each(|(tmix, should_update_vis, should_react)| {
let sender = byond_callback_sender();
let id = tmix.id;

Expand All @@ -415,7 +409,6 @@ fn post_process() {
//update again later
tmix.invalidate_vis_cache();
}
},
);
});
});
}

0 comments on commit a2f2faf

Please sign in to comment.