Light Manager implementation and testing #2

Closed
opened 2026-08-09 21:46:26 +02:00 by akkiirah · 1 comment
Owner

Description

Develop a Light Manager that references all lights in the scene and updates their brightness only based on the player's position.
This is intended to prevent each light from receiving its own process call every frame, thereby ensuring good CPU scalability.

Acceptance Criteria

  • The Light Manager manages references to all lights in the scene and should refresh its list after a reset.
  • The update logic checks the player’s vicinity to light sources and adjusts only relevant lights
  • Test the actual difference in performance to if each light had its own independent script.
### Description Develop a Light Manager that references all lights in the scene and updates their brightness only based on the player's position. This is intended to prevent each light from receiving its own process call every frame, thereby ensuring good CPU scalability. ### Acceptance Criteria - [x] The Light Manager manages references to all lights in the scene and should refresh its list after a reset. - [x] The update logic checks the player’s vicinity to light sources and adjusts only relevant lights - [ ] ~~Test the actual difference in performance to if each light had its own independent script.~~
akkiirah added this to the v0.2.0 milestone 2026-08-09 21:46:41 +02:00
Author
Owner

Tbh, I do not see a point in checking.
I mean it would be certainly interesting, but I would need to implement the full thing just the other way around. At least that's how I see it as of now.

I suspect that, in my case, the performance improvement (or let's call it difference as I can't know if it is even better) is negligible.
However, the manager is important just to coordinate the lights that are around the player which was an issue I was encountering.

Tbh, I do not see a point in checking. I mean it would be certainly interesting, but I would need to implement the full thing just the other way around. At least that's how I see it as of now. I suspect that, in my case, the performance improvement (or let's call it difference as I can't know if it is even better) is negligible. However, the manager is important just to coordinate the lights that are around the player which was an issue I was encountering.
Sign in to join this conversation.
No labels
bug
feature
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
akkiirah/node.you#2
No description provided.