diff --git a/crates/bevy_ecs/src/schedule_v3/executor/multi_threaded.rs b/crates/bevy_ecs/src/schedule_v3/executor/multi_threaded.rs index a6c13e7673afeb..b61e904945d490 100644 --- a/crates/bevy_ecs/src/schedule_v3/executor/multi_threaded.rs +++ b/crates/bevy_ecs/src/schedule_v3/executor/multi_threaded.rs @@ -32,9 +32,6 @@ struct SystemTaskMetadata { } /// Runs the schedule using a thread pool. Non-conflicting systems can run in parallel. -/// -/// **Note:** If there are no ambiguities between systems with conflicting access, this will return -/// the same results as the [`SingleThreadedExecutor`]. pub struct MultiThreadedExecutor { /// Metadata for scheduling and running system tasks. system_task_metadata: Vec, @@ -345,9 +342,9 @@ impl MultiThreadedExecutor { fn can_run(&mut self, system_index: usize, schedule: &SystemSchedule, world: &World) -> bool { #[cfg(feature = "trace")] - let system = schedule.systems[system_index].borrow(); + let name = schedule.systems[system_index].borrow().name(); #[cfg(feature = "trace")] - let _span = info_span!("check_access", name = &*system.name()).entered(); + let _span = info_span!("check_access", name = &*name).entered(); let system_meta = &mut self.system_task_metadata[system_index]; if self.local_thread_running && !system_meta.is_send { @@ -386,9 +383,9 @@ impl MultiThreadedExecutor { world: &World, ) -> bool { #[cfg(feature = "trace")] - let system = schedule.systems[system_index].borrow(); + let name = schedule.systems[system_index].borrow().name(); #[cfg(feature = "trace")] - let _span = info_span!("check_conditions", name = &*system.name()).entered(); + let _span = info_span!("check_conditions", name = &*name).entered(); // evaluate conditions let mut should_run = true;