PostLateUpdate.GraphicsWarmupPreloadedShaders
Native Player loop system that warms up preloaded shaders after startup, optionally spread over several frames.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.PlayerLoop
- Assembly: UnityEngine.CoreModule
public struct PostLateUpdate.GraphicsWarmupPreloadedShaders
Remarks
This system is active only in Players, and only when the project's preloaded shaders are set to warm up after startup instead of before the first scene loads. If the project sets a time limit per frame, the system stops warming up shaders each frame when it reaches that limit, and continues in the next frame. When all preloaded shaders are warmed up, the system stops doing any work.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.