bevy/examples/stress_tests
Chris Russell 571b3ba475
Remove ArchetypeComponentId and archetype_component_access (#19143)
# Objective

Remove `ArchetypeComponentId` and `archetype_component_access`.
Following #16885, they are no longer used by the engine, so we can stop
spending time calculating them or space storing them.

## Solution

Remove `ArchetypeComponentId` and everything that touches it.  

The `System::update_archetype_component_access` method no longer needs
to update `archetype_component_access`. We do still need to update query
caches, but we no longer need to do so *before* running the system. We'd
have to touch every caller anyway if we gave the method a better name,
so just remove `System::update_archetype_component_access` and
`SystemParam::new_archetype` entirely, and update the query cache in
`Query::get_param`.

The `Single` and `Populated` params also need their query caches updated
in `SystemParam::validate_param`, so change `validate_param` to take
`&mut Self::State` instead of `&Self::State`.
2025-05-27 19:04:32 +00:00
..
bevymark.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
many_animated_sprites.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_buttons.rs many-cameras option for many_buttons (#17935) 2025-03-10 21:23:31 +00:00
many_cameras_lights.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
many_components.rs Remove ArchetypeComponentId and archetype_component_access (#19143) 2025-05-27 19:04:32 +00:00
many_cubes.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_foxes.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
many_gizmos.rs
many_glyphs.rs Newtype Anchor (#18439) 2025-03-21 22:27:11 +00:00
many_lights.rs Adopt consistent FooSystems naming convention for system sets (#18900) 2025-05-06 15:18:03 +00:00
many_materials.rs
many_sprites.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_text2d.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
README.md
text_pipeline.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
transform_hierarchy.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
warning_string.txt

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>