1. Lighting range optimization
When a certain pixel of the screen is affected by multiple lights, the frame rate will also be slowed down. You can open the light complexity view to view it. The redder the screen, the higher the light complexity. Try reducing the light radius to solve the problem:
2. Material texture optimization
Sometimes we don't know what size texture should be used for the material of the target model, and assigning an oversized texture to distant objects will cause a waste of bandwidth. This is to open the material resolution viewing view. Green indicates that the resolution is too large:
after opening this debugging mode, pay attention to select an object and select a texture in the upper left corner.
3. GPU Visualizer panel
Use the shortcut key Ctrl+Shift+ to open the GPU visualization panel, and you can see the cost of each step of graphics card drawing:
4. Using Unreal Insights
This tool needs to go to the external directory to open in UE4:
Engine\Binaries\Win64\UnrealInsights.exe
is directly built into the panel menu in UE5.
If it is UE5, you don't need to read the tutorial, it is very easy to use.
The steps of UE4 need to look at the official tutorial: https://docs.unrealengine.com/4.27/zh-CN/TestingAndOptimization/PerformanceAndProfiling/UnrealInsights/Overview/
5. Turn on LOD
For static models, you can use external LOD or LOD automatically generated by UE. If UE needs to generate automatically, check these options:
Then close the model preview panel, and a pop-up window will appear in UE, just generate it. Open the model preview panel again, zoom in and out, and observe the parameters in the upper left corner. You can find that the number of vertices is changing, and the LOD modification is successful: we can also
enable HLOD, and you can read my other article:
https://blog.csdn. net/grayrail/article/details/130044965