Unity's LOD optimization technology

1. Introduction to LOD

  • Concept: According to the distance between the camera and the model, which model to display is determined. Generally, when the distance is short, a high-precision multi-detail model is displayed, and when the distance is long, a low-precision low-detail model is displayed to speed up the rendering speed of the overall scene.
  • Role: optimize GPU
  • Disadvantages: Multiple models need to be prepared for the same model, which consumes memory
  • Features: Optimize GPU with memory consumption

Two, use

  • Prepare three models of different precision for a certain game object in the scene
  • Create an empty object, and use the 3-precision model as a sub-object, and add LOD components to the empty object
  • Then click on each precision of the LOD component to add models with different precisionsinsert image description here
  • Then move the scene camera or the camera of the component to verify the effect, as shown in the figure belowinsert image description here

Similar to the chicken eating game, objects on the map are gradually displayed during the skydiving process

Guess you like

Origin blog.csdn.net/Xz616/article/details/130635207