 8b88887152
			
		
	
	
		8b88887152
		
			
		
	
	
	
	
		
			
			# Objective - Enable capturing screenshots of all examples in CI on a GitHub runner ## Solution - Shorten duration of a run - Disable `desktop_app` mode - as there isn't any input in CI, examples using this take way too long to run - Change the default `ClusterConfig` - the runner are not able to do all the clusters with the default settings - Send extra `WindowResized` events - this is needed only for the `split_screen` example, because CI doesn't trigger that event unlike all the other platforms --------- Co-authored-by: Rob Parrett <robparrett@gmail.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			810 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			810 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
 | |
| index c71a92814..b138d07a0 100644
 | |
| --- a/crates/bevy_winit/src/winit_config.rs
 | |
| +++ b/crates/bevy_winit/src/winit_config.rs
 | |
| @@ -47,15 +47,7 @@ impl WinitSettings {
 | |
|      /// [`Reactive`](UpdateMode::Reactive) if windows have focus,
 | |
|      /// [`ReactiveLowPower`](UpdateMode::ReactiveLowPower) otherwise.
 | |
|      pub fn desktop_app() -> Self {
 | |
| -        WinitSettings {
 | |
| -            focused_mode: UpdateMode::Reactive {
 | |
| -                wait: Duration::from_secs(5),
 | |
| -            },
 | |
| -            unfocused_mode: UpdateMode::ReactiveLowPower {
 | |
| -                wait: Duration::from_secs(60),
 | |
| -            },
 | |
| -            ..Default::default()
 | |
| -        }
 | |
| +        Self::game()
 | |
|      }
 | |
|  
 | |
|      /// Returns the current [`UpdateMode`].
 |