Fix: Light and shadow optimizations #742
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: iOS
Platform: Linux
Platform: macOS
Platform: Web
Platform: Windows
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!742
Loading…
Reference in a new issue
No description provided.
Delete branch "fix_light_optimization"
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?
This introduces staggered light and shadow updates.
Instead of recalculating everything every frame, we keep a list of "dirty" items and update one per frame. Say we render at 60 FPS, that would be 60x lighting updates per second. It is near real-time while having an enormous performance save: From ~3500 commands before we are down to ~500 now!