-
I have 8 cores on my computer but thread_num returns 2. When running tasks bevy only uses half my CPU. how can I use my whole CPU for async tasks? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
bjorn3
Dec 17, 2021
Replies: 1 comment 2 replies
-
You need to insert a bevy/crates/bevy_core/src/task_pool_options.rs Lines 56 to 81 in cf221f9 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ria8651
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to insert a
DefaultTaskPoolOptions
resource into theWorld
that specifies how much threads are dedicated to what kind of task (io, async compute, compute) By default half of all threads are assigned to compute:bevy/crates/bevy_core/src/task_pool_options.rs
Lines 56 to 81 in cf221f9