From eb485b1acc619baaae88d5daca0a311b95886281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 21 Jul 2023 22:15:13 +0200 Subject: [PATCH] use AutoNoVsync in stress tests (#9229) # Objective - Some stress tests use `Immediate` which is not supported everywhere ## Solution - Use `AutoNoVsync` instead --- examples/stress_tests/many_glyphs.rs | 2 +- examples/stress_tests/text_pipeline.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stress_tests/many_glyphs.rs b/examples/stress_tests/many_glyphs.rs index 7e5899a7c26ef..0b095c170bee7 100644 --- a/examples/stress_tests/many_glyphs.rs +++ b/examples/stress_tests/many_glyphs.rs @@ -17,7 +17,7 @@ fn main() { app.add_plugins(( DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { - present_mode: PresentMode::Immediate, + present_mode: PresentMode::AutoNoVsync, ..default() }), ..default() diff --git a/examples/stress_tests/text_pipeline.rs b/examples/stress_tests/text_pipeline.rs index cd0e77a9b15e9..da31326005486 100644 --- a/examples/stress_tests/text_pipeline.rs +++ b/examples/stress_tests/text_pipeline.rs @@ -14,7 +14,7 @@ fn main() { .add_plugins(( DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { - present_mode: PresentMode::Immediate, + present_mode: PresentMode::AutoNoVsync, ..default() }), ..default()