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

Refactored the way LightComponent changes notify the LayerComposition #5592

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

mvaligursky
Copy link
Contributor

Before, the light would store a pointer to the scene, to mark lights in its layer composition dirty. This is now replaced by a light storing a Set of layers it is on, allowing it to notify only the affected layers of the change. No large benefit here yet, but there will be follow up PRs, allowing only affected layers to be updated instead of the whole composition.

@mvaligursky mvaligursky self-assigned this Aug 25, 2023
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Aug 25, 2023
@mvaligursky mvaligursky merged commit a28e04b into main Aug 25, 2023
7 checks passed
@mvaligursky mvaligursky deleted the mv-light-layers branch August 25, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants