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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment