Vsync is always on.

Hey, here’s the problem:
In my project, for some reason vsync is always enabled.
In editor window and in build vsync is always enabled, I checked with nvidia performance window. CPU and video card load is minimal.

Here’s what I tried to solve it:

  1. In Project Setting in the quality tab, I enabled Vsync count to the “don`t sync” position.
  2. I wrote in the script QualitySettings.vSyncCount = 0;.
  3. Just in case, I also disabled vsync in play mode. Although in my case the problem remains in the build.

By the way, I specifically made an empty scene on which there is only one camera, still fps above the monitor frequency does not rise (in my case 144 and 60). The script from point 2 is not on the scene.

Profiler shows that vsync is obviously present (yellow color).

I tried to move the project to newer version of Unity, it didn’t help.

The most important thing: In other projects there is no such problem, everything is fine with fps, it rises above 500, including their builds.

Unity version: 2020.3.44f1 and 2022.1.23f1. URP.

The problem was in line
Application.targetFrameRate = 144;
I just deleted this line and my project runs fine again.
I will drop important note here: Even if you delete this class you`ll need to restart project to apply changes.