Skip to content

Commit c549b9e

Browse files
Copy stress test settings for many_camera_lights (#19512)
# Objective - Fixes #17183 ## Solution - Copied the stress settings from the `many_animated_sprite` example that were mentioned in the ticket ## Testing - Run the example Co-authored-by: Alice Cecile <[email protected]>
1 parent 030edbf commit c549b9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

examples/stress_tests/many_cameras_lights.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ use bevy::{
66
math::ops::{cos, sin},
77
prelude::*,
88
render::camera::Viewport,
9+
window::{PresentMode, WindowResolution},
910
};
1011

1112
fn main() {
1213
App::new()
13-
.add_plugins(DefaultPlugins)
14+
.add_plugins(DefaultPlugins.set(WindowPlugin {
15+
primary_window: Some(Window {
16+
present_mode: PresentMode::AutoNoVsync,
17+
resolution: WindowResolution::new(1920.0, 1080.0).with_scale_factor_override(1.0),
18+
..default()
19+
}),
20+
..default()
21+
}))
1422
.add_systems(Startup, setup)
1523
.add_systems(Update, rotate_cameras)
1624
.run();

0 commit comments

Comments
 (0)