From bb259d0e4edfcbb9d89fc3934a3d09ff8616b69e Mon Sep 17 00:00:00 2001 From: Pixelstorm Date: Fri, 18 Aug 2023 13:24:17 +0100 Subject: [PATCH] Remove Resource and add Debug to TaskPoolOptions --- crates/bevy_core/src/task_pool_options.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/bevy_core/src/task_pool_options.rs b/crates/bevy_core/src/task_pool_options.rs index 0d917c3550e32..3eaedb8c8f972 100644 --- a/crates/bevy_core/src/task_pool_options.rs +++ b/crates/bevy_core/src/task_pool_options.rs @@ -1,10 +1,9 @@ -use bevy_ecs::prelude::Resource; use bevy_tasks::{AsyncComputeTaskPool, ComputeTaskPool, IoTaskPool, TaskPoolBuilder}; use bevy_utils::tracing::trace; /// Defines a simple way to determine how many threads to use given the number of remaining cores /// and number of total cores -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct TaskPoolThreadAssignmentPolicy { /// Force using at least this many threads pub min_threads: usize, @@ -33,7 +32,7 @@ impl TaskPoolThreadAssignmentPolicy { /// Helper for configuring and creating the default task pools. For end-users who want full control, /// set up [`TaskPoolPlugin`](super::TaskPoolPlugin) -#[derive(Clone, Resource)] +#[derive(Clone, Debug)] pub struct TaskPoolOptions { /// If the number of physical cores is less than min_total_threads, force using /// min_total_threads