mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
10 lines
304 B
Rust
10 lines
304 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_plugins(DefaultPlugins)
|
|
.run();
|
|
}
|