diff --git a/crates/re_space_view_spatial/src/visualizers/mod.rs b/crates/re_space_view_spatial/src/visualizers/mod.rs index 773ca4c3193c..bf4555b95d63 100644 --- a/crates/re_space_view_spatial/src/visualizers/mod.rs +++ b/crates/re_space_view_spatial/src/visualizers/mod.rs @@ -132,7 +132,6 @@ pub fn process_color_slice<'a>( ) -> Vec { // This can be rather slow for colors with transparency, since we need to pre-multiply the alpha. re_tracing::profile_function!(); - use rayon::prelude::*; let default_color = DefaultColor::EntityPath(ent_path); @@ -146,7 +145,7 @@ pub fn process_color_slice<'a>( (None, ResolvedAnnotationInfos::Many(annotation_infos)) => { re_tracing::profile_scope!("no-colors, many annotations"); annotation_infos - .par_iter() + .iter() .map(|annotation_info| annotation_info.color(None, default_color)) .collect() } @@ -155,7 +154,7 @@ pub fn process_color_slice<'a>( re_tracing::profile_scope!("many-colors, same annotation"); debug_assert_eq!(colors.len(), *count); colors - .par_iter() + .iter() .map(|color| annotation_info.color(color.map(|c| c.to_array()), default_color)) .collect() } @@ -163,8 +162,8 @@ pub fn process_color_slice<'a>( (Some(colors), ResolvedAnnotationInfos::Many(annotation_infos)) => { re_tracing::profile_scope!("many-colors, many annotations"); colors - .par_iter() - .zip(annotation_infos.par_iter()) + .iter() + .zip(annotation_infos.iter()) .map(move |(color, annotation_info)| { annotation_info.color(color.map(|c| c.to_array()), default_color) }) @@ -209,8 +208,6 @@ pub fn process_radius_slice( ent_path: &EntityPath, ) -> Vec { re_tracing::profile_function!(); - use rayon::prelude::*; - let ent_path = ent_path.clone(); match radii { @@ -218,7 +215,7 @@ pub fn process_radius_slice( vec![re_renderer::Size::AUTO; default_len] } Some(radii) => radii - .par_iter() + .iter() .map(|radius| process_radius(&ent_path, radius)) .collect(), }