Skip to content

Commit eb485b1

Browse files
authored
use AutoNoVsync in stress tests (#9229)
# Objective - Some stress tests use `Immediate` which is not supported everywhere ## Solution - Use `AutoNoVsync` instead
1 parent cd92405 commit eb485b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/stress_tests/many_glyphs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn main() {
1717
app.add_plugins((
1818
DefaultPlugins.set(WindowPlugin {
1919
primary_window: Some(Window {
20-
present_mode: PresentMode::Immediate,
20+
present_mode: PresentMode::AutoNoVsync,
2121
..default()
2222
}),
2323
..default()

examples/stress_tests/text_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
.add_plugins((
1515
DefaultPlugins.set(WindowPlugin {
1616
primary_window: Some(Window {
17-
present_mode: PresentMode::Immediate,
17+
present_mode: PresentMode::AutoNoVsync,
1818
..default()
1919
}),
2020
..default()

0 commit comments

Comments
 (0)