Light Manager implementation and testing #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Test the actual difference in performance to if each light had its own independent script.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.