bevy/examples/stress_tests
Martin Lysell 48b3118fdd
Change present mode on many_buttons and many_glyphs from Immediate to AutoNoVsync (#8681)
# Objective

Fix the examples many_buttons and many_glyphs not working on the WebGPU
examples page. Currently they both fail with the follow error:

```
panicked at 'Only FIFO/Auto* is supported on web', ..../wgpu-0.16.0/src/backend/web.rs:1162:13
```

## Solution

Change `present_mode` from `PresentMode::Immediate` to
`PresentMode::AutoNoVsync`. AutoNoVsync seems to be common mode used by
other examples of this kind.
2023-05-25 22:45:57 +00:00
..
bevymark.rs add a default font (#8445) 2023-04-21 22:30:18 +00:00
many_animated_sprites.rs Re-introduce comments about frustum culling (#8579) 2023-05-09 16:19:42 +00:00
many_buttons.rs Change present mode on many_buttons and many_glyphs from Immediate to AutoNoVsync (#8681) 2023-05-25 22:45:57 +00:00
many_cubes.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
many_foxes.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
many_gizmos.rs add a default font (#8445) 2023-04-21 22:30:18 +00:00
many_glyphs.rs Change present mode on many_buttons and many_glyphs from Immediate to AutoNoVsync (#8681) 2023-05-25 22:45:57 +00:00
many_lights.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
many_sprites.rs Re-introduce comments about frustum culling (#8579) 2023-05-09 16:19:42 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
text_pipeline.rs stress test examples: add missing warns (#8475) 2023-04-24 14:35:03 +00:00
transform_hierarchy.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
warning_string.txt Added performance warning when running stress test examples in debug mode (#5029) 2022-07-13 19:13:46 +00:00

Stress tests

These examples are used to stress test Bevy's performance in various ways. These should be run with the "stress-test" profile to accurately represent performance in production, otherwise they will run in cargo's default "dev" profile which is very slow.

Example Command

cargo run --profile stress-test --example <EXAMPLE>