Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
9
Found in
5.5.0f3
Issue ID
897482
Regression
No
Performance spikes when using Realtime GI and animating directional light + Skybox
Steps to reproduce:
1. Open attached project
2. Build scene in developer mode and attach Profiler
3. Launch build and observe profiler spikes
4. If you run same scene in editor, there are no spikes
Expected result: The spikes should show up in both the editor and the build
Actual result: The lag spikes are visible only in the build
Reproduced on 5.4.0p4, 5.5.0f3, 5.6.0f3, 2017.1.0b1
The stall is caused by a blocking readback from GPU of the generated skybox texture when generating input lighting for the dynamic GI system.
The workaround in 5.6 and older is using an animated color value for the GI that is an average value of the skybox, this was done by hand for the courtyard project https://blogs.unity3d.com/2015/11/05/awesome-realtime-gi-on-desktops-and-consoles/
https://www.assetstore.unity3d.com/en/#!/content/49377
In 2017.1 there is an API for setting the full environment data yourself: https://docs.unity3d.com/2017.1/Documentation/ScriptReference/DynamicGI.SetEnvironmentData.html
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Add comment