bevy/crates/bevy_scene/src
Eagster 8ad7118443
Only get valid component ids (#19510)
# Objective

- #19504 showed a 11x regression in getting component values for
unregistered components. This pr should fix that and improve others a
little too.
- This is some cleanup work from #18173 .

## Solution

- Whenever we expect a component value to exist, we only care about
fully registered components, not queued to be registered components
since, for the value to exist, it must be registered.
- So we can use the faster `get_valid_*` instead of `get_*` in a lot of
places.
- Also found a bug where `valid_*` did not forward to `get_valid_*`
properly. That's fixed.

## Testing

CI
2025-06-06 20:59:57 +00:00
..
components.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
dynamic_scene_builder.rs Only get valid component ids (#19510) 2025-06-06 20:59:57 +00:00
dynamic_scene.rs Switch ChildOf back to tuple struct (#18672) 2025-04-02 00:10:10 +00:00
lib.rs bevyengine.org -> bevy.org (#19503) 2025-06-05 23:09:28 +00:00
reflect_utils.rs bevy_reflect: Deprecate PartialReflect::clone_value (#18284) 2025-03-14 19:33:57 +00:00
scene_filter.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
scene_loader.rs Properly gate imports in bevy_scene (#18482) 2025-03-22 12:22:20 +00:00
scene_spawner.rs Fix #19219 by moving observer triggers out of resource_scope (#19221) 2025-05-30 19:33:47 +00:00
scene.rs reexport entity set collections in entity module (#18413) 2025-03-30 03:51:14 +00:00
serde.rs Make entity generation a new type and remove identifier (#19121) 2025-05-08 04:03:05 +00:00