Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#14034 improvements #2

Merged
merged 7 commits into from
Jul 27, 2024
Merged

#14034 improvements #2

merged 7 commits into from
Jul 27, 2024

Conversation

BD103
Copy link

@BD103 BD103 commented Jul 27, 2024

Hi! These changes should help bevyengine#14034 get approved and merged :)

  • Imports Location instead of typing core::panic::Location each time.
  • Stores Location as a static reference, which decreases the size from 128 to 64 bits.
    • Since it's likely only going to be read once, the performance from dereferencing this pointer is negligible.
  • Puts all tracking behind the feature flag change_detection_source, which definitely needs a better name.

Copy link

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@BD103 BD103 marked this pull request as draft July 27, 2024 02:32
@BD103 BD103 marked this pull request as ready for review July 27, 2024 04:41
@aevyrie
Copy link
Owner

aevyrie commented Jul 27, 2024

Thank you!

Copy link

You added a new feature but didn't update the readme. Please run cargo run -p build-templated-pages -- update features to update it, and commit the file change.

@aevyrie aevyrie merged commit 3965c7c into aevyrie:changed-by Jul 27, 2024
24 of 31 checks passed
@BD103 BD103 deleted the changed-by branch July 27, 2024 12:16
aevyrie pushed a commit that referenced this pull request Jul 28, 2024
…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 <k.soeholm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants