-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Construct and deconstruct entities to improve entity allocation #19451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ElliottjPierce
wants to merge
88
commits into
bevyengine:main
Choose a base branch
from
ElliottjPierce:Remove-entity-reserving/pending/flushing-system
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,449
−1,131
Open
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
6a7c2e9
built the new alllocator
ElliottjPierce 65a7ea9
completely redid entities
ElliottjPierce 4c6f613
construct and destruct
ElliottjPierce 4eab25c
finished most easy fixes
ElliottjPierce 8556b19
fixed commands
ElliottjPierce f4e06ad
entity cloning and mapping
ElliottjPierce 3df6ab0
fix final few errors
ElliottjPierce 7b044c0
docs
ElliottjPierce 5c58266
added back get_entity
ElliottjPierce 01d6785
use bulk allocator
ElliottjPierce c100f9e
improve perf
ElliottjPierce ea9a3be
fixed tests
ElliottjPierce 0c1c9c3
docs
ElliottjPierce 5a69ebf
guard against arbitrary constructions
ElliottjPierce 019c154
add world-level destruction
ElliottjPierce 58ee663
remove no longer needed flush
ElliottjPierce 85b0d03
entity refs can have no location
ElliottjPierce 4844dda
fix error
ElliottjPierce 7e39f9d
much, much better error handling
ElliottjPierce 9cce28f
fix docs
ElliottjPierce b415dc8
small perf improvement
ElliottjPierce 38a9710
fix scenes test
ElliottjPierce 8956adc
fix doc tests for errors
ElliottjPierce 0c194b7
doc improvements
ElliottjPierce 180b349
all destructs increment the generation
ElliottjPierce 20a6ee3
fix warning
ElliottjPierce 068a2a9
fix doc
ElliottjPierce 763877f
fix test
ElliottjPierce 9baf15a
fixed potential bug
ElliottjPierce 63effde
add migration guide
ElliottjPierce 7967807
fix command doc
ElliottjPierce 866476e
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 531658c
handle despawn better
ElliottjPierce d899b38
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce eabc340
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 9df7a76
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 6a596cb
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 5ca8e38
fix new system param
ElliottjPierce 91f439c
small clarity updates to migration guide
ElliottjPierce 9d86e69
Full module docs
ElliottjPierce d86d241
More improved entity comments
ElliottjPierce d0ed587
Better command docs phrasing
ElliottjPierce 80479d0
better command docs
ElliottjPierce 185a6de
better construct/destruct vs spawn/despawn docs
ElliottjPierce 4f956bd
fix ci
ElliottjPierce 6bbfee8
Apply suggestions from code review
ElliottjPierce b543a4a
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 10f11ba
make the new `entity_count` more precise
ElliottjPierce e78deec
better docs
ElliottjPierce 5422813
improved docs per discord discussion
ElliottjPierce e1b5386
remove all uses of "conceptual entity"
ElliottjPierce 271c189
Apply suggestions from code review
ElliottjPierce 9de86df
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 0b3da34
fixed merge conflicts hopefully
ElliottjPierce fb897d2
hopefully fix CI
ElliottjPierce 1b6f327
Tried to clarify doc comment some more
ElliottjPierce 5085d4f
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 20386ff
Apply suggestions from code review
ElliottjPierce 4c0d752
More suggestions from review
ElliottjPierce ab0856b
Update crates/bevy_ecs/src/entity/mod.rs
ElliottjPierce 71675a3
fix rename
ElliottjPierce fdf1b55
various improvements per review
ElliottjPierce f9b26d6
use usize for new allocator cursor
ElliottjPierce e129d77
Apply suggestions from code review
ElliottjPierce d42d9ea
tighten up expects to save binary size.
ElliottjPierce bac7bd2
rename update and declare
ElliottjPierce e9df300
more allocator doc comments
ElliottjPierce 3fcbb24
Include more lifecycle info in storage docs
ElliottjPierce d0ca8b1
Merge branch 'Remove-entity-reserving/pending/flushing-system' of htt…
ElliottjPierce 4bb74b2
fix doc
ElliottjPierce deb6b4d
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 5a058c0
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce e73f7bf
hopefully finished merge
ElliottjPierce 3062966
Update release-content/migration-guides/entities_apis.md
ElliottjPierce 01aa792
Merge branch 'Remove-entity-reserving/pending/flushing-system' of htt…
ElliottjPierce caf0581
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 9c56341
fixed merge conflicts
ElliottjPierce 9981716
fixed bugs from merge
ElliottjPierce 762c65b
fixed ci
ElliottjPierce b743a44
Doc improvements
ElliottjPierce 2add4ca
all entity pointers assume they are constructed.
ElliottjPierce 97047a9
simplified the despawn error
ElliottjPierce fedc90a
fix ci
ElliottjPierce ecf617f
Merge branch 'main' into Remove-entity-reserving/pending/flushing-system
ElliottjPierce 6d12925
The grand renaming
ElliottjPierce 45780c2
fix ci please
ElliottjPierce 57816f7
fix ci pretty please
ElliottjPierce 5c69793
hopefully fixed ci
ElliottjPierce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the "(caught better later)" mentioned in a comment further up? Is this considered to be better because the alternative would be panicking above and unsafely unwrap here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the two expects are. Before, this didn't worry about the unconstructed/null case. So the additional construct and expect lines just let us continue in that assumption for the rest of this.