Skip to content
Discussion options

You must be logged in to vote

You need to insert a DefaultTaskPoolOptions resource into the World 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:

DefaultTaskPoolOptions {
// By default, use however many cores are available on the system
min_total_threads: 1,
max_total_threads: std::usize::MAX,
// Use 25% of cores for IO, at least 1, no more than 4
io: TaskPoolThreadAssignmentPolicy {
min_threads: 1,
max_threads: 4,
percent: 0.25,
},
// Use 25% of cores for async compute, at…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ria8651
Comment options

@bjorn3
Comment options

bjorn3 Dec 17, 2021
Collaborator

Answer selected by ria8651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants