bevy/crates/bevy_core_pipeline/src
Robert Swain 5cb6f7ffd2 Do not create nor execute render passes which have no phase items to draw (#4643)
# Objective

- Creating and executing render passes has GPU overhead. If there are no phase items in the render phase to draw, then this overhead should not be incurred as it has no benefit.

## Solution

- Check if there are no phase items to draw, and if not, do not construct not execute the render pass

---

## Changelog

- Changed: Do not create nor execute empty render passes
2022-05-02 20:22:30 +00:00
..
clear_pass_driver.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
clear_pass.rs Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
lib.rs Move float_ord from bevy_core to bevy_utils (#4189) 2022-04-27 18:02:05 +00:00
main_pass_2d.rs Do not create nor execute render passes which have no phase items to draw (#4643) 2022-05-02 20:22:30 +00:00
main_pass_3d.rs Do not create nor execute render passes which have no phase items to draw (#4643) 2022-05-02 20:22:30 +00:00
main_pass_driver.rs Switch render order to 2d-on-top-of-3d (#4467) 2022-04-13 20:05:34 +00:00