bevy/examples/stress_tests
Doonv dc9b486650
Change light defaults & fix light examples (#11581)
# Objective

Fix https://github.com/bevyengine/bevy/issues/11577.

## Solution

Fix the examples, add a few constants to make setting light values
easier, and change the default lighting settings to be more realistic.
(Now designed for an overcast day instead of an indoor environment)

---

I did not include any example-related changes in here.

## Changelogs (not including breaking changes)

### bevy_pbr

- Added `light_consts` module (included in prelude), which contains
common lux and lumen values for lights.
- Added `AmbientLight::NONE` constant, which is an ambient light with a
brightness of 0.
- Added non-EV100 variants for `ExposureSettings`'s EV100 constants,
which allow easier construction of an `ExposureSettings` from a EV100
constant.

## Breaking changes

### bevy_pbr

The several default lighting values were changed:

- `PointLight`'s default `intensity` is now `2000.0`
- `SpotLight`'s default `intensity` is now `2000.0`
- `DirectionalLight`'s default `illuminance` is now
`light_consts::lux::OVERCAST_DAY` (`1000.`)
- `AmbientLight`'s default `brightness` is now `20.0`
2024-02-14 20:43:10 +00:00
..
bevymark.rs Deprecate shapes in bevy_render::mesh::shape (#11773) 2024-02-08 18:01:34 +00:00
many_animated_sprites.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_buttons.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
many_cubes.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
many_foxes.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
many_gizmos.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
many_glyphs.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_lights.rs Change light defaults & fix light examples (#11581) 2024-02-14 20:43:10 +00:00
many_sprites.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
text_pipeline.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
transform_hierarchy.rs Remove some old references to CoreSet (#9833) 2023-09-18 01:07:11 +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>