EnableMipPreloading(int, int)
Enables mipmap level preloading used by Streaming Virtual Texturing.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering.VirtualTexturing
- Assembly: UnityEngine.VirtualTexturingModule
public static void EnableMipPreloading(int texturesPerFrame, int mipCount)
Parameters
Number of textures per frame to process. The range is through . The default is . A number of disables preloading. The higher this number, the more CPU resource will be used on the render thread.
0102400The number of mipmap levels to preload. The range is through . The default is , which preloads only the highest mipmap level with the smallest size of 128 by 128 pixels. This is the size of the Streaming Virtual Texturing tile.
191Remarks
Use this method to avoid texture pop-in by preloading the smallest-sized mipmap levels into GPU memory. If there are many more virtual textures in materials and is too low, you might still see black textures pop in. For more targeted texture preload requests, refer to html.
texturesPerFrame