mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 14:40:19 +00:00
8b9aa2cceb
- Freeing unused memory held by visible entities - Fixed comment style # Objective With Rust 1.56 it's possible to shrink vectors to a specified capacity. Visibility system had a comment before asking for that feature to free unused memory by a vector if its capacity is two times larger than the length. ## Solution Shrinking the vector of visible entities to the nearest power of 2 elements next to `len()`, if capacity exceeds it more than two times. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |