Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
67092dd
make RequiredComponentConstructor Send and Sync
Trashtalk217 Apr 20, 2026
361525e
made RelationshipAccessorInitializer Sync and Send
Trashtalk217 Apr 21, 2026
ba5d095
derive Component for ComponentInfo
Trashtalk217 Apr 21, 2026
382d79d
made ComponentId(usize) into ComponentId(Entity)
Trashtalk217 Apr 21, 2026
064e481
Revert "derive Component for ComponentInfo"
Trashtalk217 Apr 24, 2026
b246b70
removed ResourceEntities
Trashtalk217 Apr 24, 2026
505dec4
fixed some tests
Trashtalk217 Apr 25, 2026
ddcf786
Merge branch 'main' of https://github.com/bevyengine/bevy into compon…
Trashtalk217 Apr 25, 2026
1a33441
fix more tests and other crates
Trashtalk217 Apr 25, 2026
e85625a
fix review comments
Trashtalk217 Apr 26, 2026
9238025
fixed clippy mistakes
Trashtalk217 Apr 26, 2026
d686995
fix other crates
Trashtalk217 Apr 26, 2026
46cd5bd
renamed .entity() to .id() for ComponentId
Trashtalk217 Apr 27, 2026
f93a9b8
changed access to use HashSets
Trashtalk217 Apr 27, 2026
8694591
made ComponentId::from_u32 public
Trashtalk217 Apr 27, 2026
6448e4d
fix doc tests and benches
Trashtalk217 Apr 28, 2026
6fcb4d8
fix doc comment
Trashtalk217 Apr 28, 2026
d072251
add ComponentIdMap as a hybrid map
Trashtalk217 May 1, 2026
023893f
changed ComponentIdSet
Trashtalk217 May 2, 2026
e4c9182
cargo clippy
Trashtalk217 May 2, 2026
baec7eb
fix doc test
Trashtalk217 May 2, 2026
155b998
add benchmark
Trashtalk217 May 2, 2026
569112d
changed over to SparseSet
Trashtalk217 May 2, 2026
f2b82f9
Merge branch 'main' of https://github.com/bevyengine/bevy into compon…
Trashtalk217 May 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions benches/benches/bevy_ecs/empty_archetypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ fn empty_archetypes(criterion: &mut Criterion) {
schedule.add_systems(iter);
});
add_archetypes(&mut world, archetype_count);
world.clear_entities();
let mut e = world.spawn_empty();
e.insert(A::<0>(1.0));
e.insert(A::<1>(1.0));
Expand Down Expand Up @@ -197,7 +196,6 @@ fn empty_archetypes(criterion: &mut Criterion) {
schedule.add_systems(for_each);
});
add_archetypes(&mut world, archetype_count);
world.clear_entities();
let mut e = world.spawn_empty();
e.insert(A::<0>(1.0));
e.insert(A::<1>(1.0));
Expand Down Expand Up @@ -228,7 +226,6 @@ fn empty_archetypes(criterion: &mut Criterion) {
schedule.add_systems(par_for_each);
});
add_archetypes(&mut world, archetype_count);
world.clear_entities();
let mut e = world.spawn_empty();
e.insert(A::<0>(1.0));
e.insert(A::<1>(1.0));
Expand Down
1 change: 1 addition & 0 deletions benches/benches/bevy_ecs/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ criterion_main!(
bundles::benches,
change_detection::benches,
components::benches,
resources::benches,
empty_archetypes::benches,
entity_cloning::benches,
events::benches,
Expand Down
24 changes: 12 additions & 12 deletions crates/bevy_ecs/src/component/constants.rs
Comment thread
Trashtalk217 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//! Constant components included in every world.

/// `usize` for the [`Add`](crate::lifecycle::Add) component used in lifecycle observers.
pub const ADD: usize = 0;
/// `usize` for the [`Insert`](crate::lifecycle::Insert) component used in lifecycle observers.
pub const INSERT: usize = 1;
/// `usize` for the [`Discard`](crate::lifecycle::Discard) component used in lifecycle observers.
pub const DISCARD: usize = 2;
/// `usize` for the [`Remove`](crate::lifecycle::Remove) component used in lifecycle observers.
pub const REMOVE: usize = 3;
/// `usize` for [`Despawn`](crate::lifecycle::Despawn) component used in lifecycle observers.
pub const DESPAWN: usize = 4;
/// `usize` of the [`IsResource`](crate::resource::IsResource) component used to mark entities with resources.
pub const IS_RESOURCE: usize = 5;
/// `u32` for the [`Add`](crate::lifecycle::Add) component used in lifecycle observers.
pub const ADD: u32 = 0;
/// `u32` for the [`Insert`](crate::lifecycle::Insert) component used in lifecycle observers.
pub const INSERT: u32 = 1;
/// `u32` for the [`Discard`](crate::lifecycle::Discard) component used in lifecycle observers.
pub const DISCARD: u32 = 2;
/// `u32` for the [`Remove`](crate::lifecycle::Remove) component used in lifecycle observers.
pub const REMOVE: u32 = 3;
/// `u32` for [`Despawn`](crate::lifecycle::Despawn) component used in lifecycle observers.
pub const DESPAWN: u32 = 4;
/// `u32` of the [`IsResource`](crate::resource::IsResource) component used to mark entities with resources.
pub const IS_RESOURCE: u32 = 5;
Loading
Loading