bevy/examples/app/thread_pool_resources.rs
2020-09-21 20:23:09 -07:00

11 lines
298 B
Rust

use bevy::prelude::*;
/// This example illustrates how to customize the thread pool used internally (e.g. to only use a
/// certain number of threads).
fn main() {
App::build()
.add_resource(DefaultTaskPoolOptions::with_num_threads(4))
.add_default_plugins()
.run();
}