bevy/examples/app/thread_pool_resources.rs
2021-07-24 16:43:37 -07:00

10 lines
305 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::new()
.insert_resource(DefaultTaskPoolOptions::with_num_threads(4))
.add_plugins(DefaultPlugins)
.run();
}