文档

Unity Engine


User Manual

Script Reference

Unity Engine


Prevent shader stutters

Learn how you can prevent shader stutters in your project.
阅读时间1 分钟最后更新于 1 个月前

Learn how you can prevent shader stutters in your project.
A stutter refers to a noticeable pause in rendering, which causes motion to stop or become uneven. Stutters can occur when Unity uses a shader variant for the first time in your build application. Stutters cause a negative impact on users of your application. For example, stutters reduce the responsiveness on your game, and cam lead to severe motion sickness on XR platforms.
Refer to the following topics to understand the approaches you can use to prevent shaders stutters in your project:

Topic

Description

Tracing and warming up PSOsTrace and warm up graphics states with the experimental
GraphicsStateCollection
API to reduce shader compilation stutters.
Other methods to warm up shadersWarm up shaders if your build targets the DirectX 11, OpenGL, OpenGLES, or WebGL graphics APIs.