11. Unity optimization

Specific steps to optimize memory

1. Determine the performance bottleneck and use Unity's Profiler tool to determine the performance bottleneck of the scene.
2. Reduce the number of triangles in the model.
3. Batch and batch processing.
4. Use LOD for multi-level detail processing
. 5. Reduce the use of textures and materials.
6. Lighting. Optimize, use static light source
7, use occlusion culling (Occlusion Culling) function to reduce the cost of rendering invisible objects.
8. Particle special effects optimization
9. Shader optimization: write funny shader code to avoid excessive texture calculations
10. Packaging and resource optimization
11. Check the pictures in the Resource file, if they can be placed under the StreamingAsset file

Specific steps to optimize performance

1. Determine bottlenecks and use Profiler to analyze GPU, CPU, and memory consumption.
2. Reduce rendering batches.
3. Simplify models and textures.
4. Use LOD to create detailed models.
5. Avoid using too many dynamic light sources
. 6. Use object pools to avoid frequent lighting. Create and destroy objects
7. Optimize code and scripts using asynchronous loading to improve the efficiency of resource loading and avoid blocking on the main thread. Manage resources reasonably and release unused resources in a timely manner to reduce memory usage and loading time.
8. Asynchronous loading and resource management
9. Particle system optimization
10. If the image loads too slowly, check its resolution and pixels. Right-click the file to view its properties. Normally it is within 1024

Specific steps to optimize scene visual effects

1. Use high-quality texture maps
2. Lighting and shadow effects: use dynamic lighting and real-time shadow augmentation, or use baked lighting precalculation
3. Use camera special effects and post-processing
4. Create associated particle special effects
5. I don’t know the reasonable camera 6.
Pay attention to details and artistic style
7. Adjust materials and shaders
8. Add dynamic elements

Guess you like

Origin blog.csdn.net/weixin_44047050/article/details/131329300