Skip to content

Keep room lighting when unlit occupants arrive or leave - #295

Merged
ctoth merged 1 commit into
masterfrom
perf/occupant-lighting
Nov 29, 2026
Merged

ctoth merged 1 commit into
masterfrom
perf/occupant-lighting

Conversation

@ctoth

@ctoth ctoth commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Full room snapshots previously restarted the six-pass lighting bake when an unlit person arrived or departed. The capture already hides those people. The room view now keeps its static scene, lighting and unchanged figures across occupant-only updates. An identical decoded snapshot keeps the existing store value.

Arrivals receive the current reflection texture, including while the probe grid is baking. Changes to the room or its light sources can still invalidate the bake.

In a headless Edge replay, an identical snapshot, a departure and an arrival during baking shared one capture. Another departure and arrival after completion retained its environment. Adding, moving and removing a lamp each started a new capture. Focused tests cover scene and label retention, source invalidation and disposal of shared figure geometry.

@ctoth
ctoth merged commit 42b609c into master Nov 29, 2026
2 checks passed
@ctoth
ctoth deleted the perf/occupant-lighting branch November 29, 2026 07:00
github-actions Bot pushed a commit that referenced this pull request Nov 29, 2026
Keep room lighting when unlit occupants arrive or leave
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.

1 participant