Search Issue Tracker
Duplicate
Votes
4
Found in
5.5.2p2
Issue ID
901330
Regression
No
[iOS] Vertex shaders are recompiled at runtime even when using Preloaded Shaders in Project graphic settings
Reproduction Steps:
1. Open User's project
2. Build to iOS
3. Open Xcode project
4. Run Profiler - "Metal System Trace"
5. Inspect the "Shader Compilation" column
6. Notice that vertex shaders has been recompiled at run time
Expected behaviour: Fragment and vertex shaders to get pre-compiled when being specified in a Shader Variant Collection referenced from the graphic settings.
Actual result: Vertex shaders are recompiled at runtime even when using Preloaded Shaders in Project graphic settings
Reproduced on versions: Unity 5.5.2f1, 5.5.3p1, 5.6.0f3, 5.6.0p2, 2017.1.0b1
Reproduced on devices: iPhone 6 iOS 10.3.1
Reproduced on Xcode 8.3
-
Johannski
Aug 10, 2017 10:55
I did notice the same problem with 5.6.1p4. Is there a workaround yet?
-
acamara
May 09, 2017 21:10
This issue is marked as Severity 3: Workaround is possible. Can somebody point me out what's the workaround? We don't know how to avoid recompiling the vertex shaders.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
This is a duplicate of issue #863868