From c549b9e9a4489007dd25044ef0f574799773119d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tero=20Laxstr=C3=B6m?= Date: Tue, 10 Jun 2025 01:12:55 +0000 Subject: [PATCH] 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 --- examples/stress_tests/many_cameras_lights.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/stress_tests/many_cameras_lights.rs b/examples/stress_tests/many_cameras_lights.rs index 6d3f5f24d0..3f9c4878e0 100644 --- a/examples/stress_tests/many_cameras_lights.rs +++ b/examples/stress_tests/many_cameras_lights.rs @@ -6,11 +6,19 @@ use bevy::{ math::ops::{cos, sin}, prelude::*, render::camera::Viewport, + window::{PresentMode, WindowResolution}, }; fn main() { App::new() - .add_plugins(DefaultPlugins) + .add_plugins(DefaultPlugins.set(WindowPlugin { + primary_window: Some(Window { + present_mode: PresentMode::AutoNoVsync, + resolution: WindowResolution::new(1920.0, 1080.0).with_scale_factor_override(1.0), + ..default() + }), + ..default() + })) .add_systems(Startup, setup) .add_systems(Update, rotate_cameras) .run();