文档

Unity Engine

Download Unity

Unity Engine

Reducing the size or number of shaders

Approaches for optimizing build times or the performance of your application, by reducing the number of compiled shaders or controlling how much memory shaders use.
阅读时间1 分钟最后更新于 2 个月前

Approaches for optimizing build times or the performance of your application, by reducing the number of compiled shaders or controlling how much memory shaders use.

Page

Description

Shader compilationUnderstand how and when Unity compiles and loads shaders.
Compile shaders with the DirectX 12 compilerTo speed up compilation and use the latest shader features on some platforms, use the DXC compiler instead of the FXC compiler.
Reducing shader variantsReduce the number of compiled shaders in your project.
Troubleshooting shader duplication from AssetBundlesReduce the amount of memory and storage space shaders use.
Control how much memory shaders useLimit the size of chunks of shader data, and how many decompressed chunks Unity keeps in memory.