 6d6bc2a8b4
			
		
	
	
		6d6bc2a8b4
		
	
	
	
	
		
			
			This is extracted out of eb8f973646476b4a4926ba644a77e2b3a5772159 and includes some additional changes to remove all references to AppBuilder and fix examples that still used App::build() instead of App::new(). In addition I didn't extract the sub app feature as it isn't ready yet. You can use `git diff --diff-filter=M eb8f973646476b4a4926ba644a77e2b3a5772159` to find all differences in this PR. The `--diff-filtered=M` filters all files added in the original commit but not in this commit away. Co-Authored-By: Carter Anderson <mcanders1@gmail.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			305 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 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();
 | |
| }
 |