Skip to content

Fix occluder perf - #6940

Open
metalgearsloth wants to merge 2 commits into
space-wizards:masterfrom
metalgearsloth:2026-08-08-occluder-perf
Open

Fix occluder perf#6940
metalgearsloth wants to merge 2 commits into
space-wizards:masterfrom
metalgearsloth:2026-08-08-occluder-perf

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

Caches embedded lights and fixed allocs

Caches embedded lights andd fixeds allocs
{
foreach (var lightUid in _embeddedLightCache)
{
if (!_pointLightQuery.TryGetComponent(lightUid, out var light) ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is already properly getting removed on ComponentRemove would it not be safe to store the component so you don't need to TryGet it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah.

TBH I may revisit this so gonna hold off on merging for now but handling all of the edge cases to drop shared edges is not great on client atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants