bevy/crates/bevy_pbr/src
Yoh Deadfall 8b9aa2cceb Freeing memory held by visible entities vector (#3009)
- 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.
2022-10-31 15:36:08 +00:00
..
render Remove outdated uses of single-tuple bundles (#6406) 2022-10-29 18:15:28 +00:00
alpha.rs add ReflectAsset and ReflectHandle (#5923) 2022-10-28 20:42:33 +00:00
bundle.rs Visibilty Inheritance, universal ComputedVisibility and RenderLayers support (#5310) 2022-07-15 23:24:42 +00:00
lib.rs add ReflectAsset and ReflectHandle (#5923) 2022-10-28 20:42:33 +00:00
light.rs Freeing memory held by visible entities vector (#3009) 2022-10-31 15:36:08 +00:00
material.rs separate tonemapping and upscaling passes (#3425) 2022-10-26 20:13:59 +00:00
pbr_material.rs add ReflectAsset and ReflectHandle (#5923) 2022-10-28 20:42:33 +00:00
wireframe.rs separate tonemapping and upscaling passes (#3425) 2022-10-26 20:13:59 +00:00