Don't examine every entity when extracting SpriteSources. (#12957)
				
					
				
			`ExtractComponentPlugin` doesn't check to make sure the component is actually present unless it's in the `QueryFilter`. This meant we placed it everywhere. This regressed performance on many examples, such as `many_cubes`. Fixes #12956.
This commit is contained in:
		
							parent
							
								
									60e400b22f
								
							
						
					
					
						commit
						363210f8fe
					
				| @ -214,7 +214,7 @@ pub fn calculate_bounds_2d( | ||||
| impl ExtractComponent for SpriteSource { | ||||
|     type QueryData = (); | ||||
| 
 | ||||
|     type QueryFilter = (); | ||||
|     type QueryFilter = With<SpriteSource>; | ||||
| 
 | ||||
|     type Out = SpriteSource; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Patrick Walton
						Patrick Walton