Skip to content

Commit

Permalink
Refactor check_light_mesh_visibility for performance #2 (bevyengine#1…
Browse files Browse the repository at this point in the history
…3906)

# Objective

- Second part of bevyengine#13900 
- based on bevyengine#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]>
  • Loading branch information
re0312 and kristoff3r authored Jun 26, 2024
1 parent a4c621a commit a3f91a2
Showing 1 changed file with 184 additions and 140 deletions.
Loading

0 comments on commit a3f91a2

Please sign in to comment.