Optimization Flashcards
Optimizing graphics performance
Good performance is critical to the success of many games.
To improve graphics performance
Locate high graphics impact
The GPU and CPU can be affected by the graphical part of your game.
Optimization for the GPU
GPU is often limited by fillrate or memory bandwidth
Lower the display resolution and run the game. If a lower resolution makes the game run faster, you may be limited by fillrate on the GPU
CPU is often limited by the number of batches that need to be rendered
Check batches in the rendering statistics window. The more batches are being rendered, the higher the cost to the CPU
Npc methods to optimize?
Use simple meshes with low to medium detail. High detail will cause more rendering and be more cost-effective
Limit the vertices and vertex shaders to process to ensure good performance and less strain on the GPU
Skinned meshes, cloth simulation, particles or other game objects and meshes could strain the CPU.
Try to keep this number as low as possible without compromising game quality
Reduce the visible object count, to reduce the amount of work the CPU needs to do.
Combine close objects together, either manually or using Unitys draw call batching.
Use fewer materials in your objects by putting separate textures into a larger texture atlas.
Use fewer things that cause objects to be rendered multiple times, such as reflections, shadows and per pixel lights
GPU optimizing model geometry
Do not use more triangles than necessary
Try to keep the number of UV mapping seams and hard edges, double up vertices, as low as possible.
A vertex must be split if it has multiple normals, uv coordinates or vertex colors. The vertex count in unity is usually higher than the count given by the 3D application