bevy/crates/bevy_render/src/view
James Liu 342f69e304 Shrink ComputedVisibility (#6305)
# Objective
`ComputedVisibility` could afford to be smaller/faster. Optimizing the size and performance of operations on the component will positively benefit almost all extraction systems.

This was listed as one of the potential pieces of future work for #5310.

## Solution
Merge both internal booleans into a single `u8` bitflag field. Rely on bitmasks to evaluate local, hierarchical, and general visibility.

Pros:

 - `ComputedVisibility::is_visible` should be a single bitmask test instead of two.
 - `ComputedVisibility` is now only 1 byte. Should be able to fit 100% more per cache line when using dense iteration.

Cons:

 - Harder to read.
 - Setting individual values inside `ComputedVisiblity` require bitmask mutations. 

This should be a non-breaking change. No public API was changed. The only publicly visible effect is that `ComputedVisibility` is now 1 byte instead of 2.
2022-11-14 23:34:52 +00:00
..
visibility Shrink ComputedVisibility (#6305) 2022-11-14 23:34:52 +00:00
mod.rs Rework ViewTarget to better support post processing (#6415) 2022-10-31 20:22:18 +00:00
window.rs Ignore Timeout errors on Linux AMD & Intel (#5957) 2022-11-12 08:06:56 +00:00