Unity operation optimization [3]

When running Unity, the fan is loud.

Select: Edit→Project Settings→Quality:

By default, my computer ticked the highest quality, but I removed the two ticks below and chose High. 

Then pull down to turn off vertical sync.

In the code, find your game script and add the following method to reduce the frame rate. This method is a method in the life cycle and will be called automatically, so don't name it casually.

void Awake()
{
    Application.targetFrameRate = 30;
}

Guess you like

Origin blog.csdn.net/kaiyuantao/article/details/129079424