Skip to content

Commit a3f91a2

Browse files
re0312kristoff3r
andauthored
Refactor check_light_mesh_visibility for performance #2 (#13906)
# Objective - Second part of #13900 - based on #13905 ## Solution - check_dir_light_mesh_visibility defers setting the entity's `ViewVisibility `so that Bevy can schedule it to run in parallel with `check_point_light_mesh_visibility`. - Reduce HashMap lookups for directional light checking as much as possible - Use `par_iter `to parallelize the checking process within each system. --------- Co-authored-by: Kristoffer Søholm <[email protected]>
1 parent a4c621a commit a3f91a2

File tree

1 file changed

+184
-140
lines changed
  • crates/bevy_pbr/src/light

1 file changed

+184
-140
lines changed

0 commit comments

Comments
 (0)