Bug observed on Xbox series S.
Customer (Harebrained Schemes in this case) built their project for PC and Xbox, and the shader size in memory on Xbox is significantly that it is on PC.
Some shaders are almost twice the size, some are just slightly bigger.
Examples here in MB (see screenshot for more):
- HDRP/Lit - 84.1 to 178.4
- HDRP/LayerLit - 18 to 28
- Hidden/HDRP/FinalPass - 11 to 18
- HDRP/ Decal - 1.2 to 2.3
- some other Shader Graph shaders at least 10 of them are almost twice bigger according to screenshot
Other than that the render texture is also a lot larger on Xbox than on PC.
They opened this ticket
And we tried to reproduce it in an almost empty HDRP project(only with some game objects so the shaders are in use), and also observed the shader size difference.
The engineer (Roberto Ardia) working on this seems to more concern about render texture size difference – 196 MB on PC, 2.02 GB on XBox. (Side A is on PC, Side B is on XBOX)
Also the profiling is done on both Unity Profiler and PIX, results are similar.