Skip to content

[Merged by Bors] - Docs for Bundle showing how to nest bundles - #1570

Closed
alice-i-cecile wants to merge 17 commits into
bevyengine:mainfrom
alice-i-cecile:bundle-docs
Closed

alice-i-cecile wants to merge 17 commits into
bevyengine:mainfrom
alice-i-cecile:bundle-docs

Conversation

@alice-i-cecile

Copy link
Copy Markdown
Member

I've also added a clearer description of what bundles are used for, and explained that you can't query for bundles (a very common beginner confusion).

@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Mar 6, 2021
alice-i-cecile and others added 2 commits March 5, 2021 19:46
Comment thread crates/bevy_ecs/src/bundle.rs Resolved
Comment thread crates/bevy_ecs/src/bundle.rs Resolved
Comment thread crates/bevy_ecs/src/bundle.rs Resolved
Comment thread crates/bevy_ecs/src/bundle.rs Resolved
rmsc and others added 10 commits March 6, 2021 01:42
Fix staging buffer required size calculation (fixes #1056)

The `required_staging_buffer_size` is currently calculated differently in two places, each will be correct in different situations:

* `prepare_staging_buffers()` based on actual `buffer_byte_len()`
* `set_required_staging_buffer_size_to_max()` based on item_size

In the case of render assets, `prepare_staging_buffers()` would only operate over changed assets. If some of the assets didn't change, their size wouldn't be taken into account for the `required_staging_buffer_size`. In some cases, this meant the buffers wouldn't be resized when they should. Now `prepare_staging_buffers()` is called over all assets, which may hit performance but at least gets the size right.

Shortly after `prepare_staging_buffers()`,  `set_required_staging_buffer_size_to_max()` would unconditionally overwrite the previously computed value, even if using `item_size` made no sense. Now it only overwrites the value if bigger.

This can be considered a short term hack, but should prevent a few hard to debug panics.
Added extra space, and hid user-inappropriate import.
Added extra space, and hid user-inappropriate import.
@cart

cart commented Mar 6, 2021

Copy link
Copy Markdown
Member

for future reference: rebasing instead of merging helps avoid pulling changes from main into the pr

@cart

cart commented Mar 6, 2021

Copy link
Copy Markdown
Member

bors r+

bors Bot pushed a commit that referenced this pull request Mar 6, 2021
I've also added a clearer description of what bundles are used for, and explained that you can't query for bundles (a very common beginner confusion).

Co-authored-by: MinerSebas <scherthan_sebastian@web.de>
Co-authored-by: Renato Caldas <renato@calgera.com>
@bors

bors Bot commented Mar 6, 2021

Copy link
Copy Markdown

@bors bors Bot changed the title Docs for Bundle showing how to nest bundles [Merged by Bors] - Docs for Bundle showing how to nest bundles Mar 6, 2021
@bors bors Bot closed this Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Docs An addition or correction to our documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants