I’m having issues with performance after building a game. In play mode everything seems normal but after build the vsync starts spiking up. Fyi vsync is disabled both for bu
ild and editorHey. Could you check that you aren’t setting Application.targetFrameRate
? “WaitForTargetFPS” is visible on one of screenshots and appears when targetFrameRate
is set. It falls into the same category as v-sync, so if you have it set, it’ll show up in v-sync category.
Unity - Scripting API: Application.targetFrameRate (unity3d.com)
I get this too on mac builds.
v-sync is disabled after building using 2020 LTS and 2021 LTS
Graphics card will spin up to max power.
Hi, sorry for the late reply but I thought I was going to get a notification if someone replied. And no, I did not set Application.TartgetFrameRate. Although, I tried using it as fix for this issue, but it didn’t work so I removed it.
But what if that’s what I want. I’m shipping to mobile and i’m suffering from low FPS.
You can’t disable vsync on mobile devices. It’s forced on by the operating system.
It’s happening on both mobile and PC build. The screenshots are from the PC
In the PC screenshot it’s just being miscategorized. DXGI.WaitOnSwapChain means it means it’s waiting for the GPU to finish drawing. Check your GPU usage in the task manager :).
I just finished trying to replicate the problem on my end with the what I was able to see in your screenshots and my performance is about what I would expect. What’s your hardware configuration? Are you on recent drivers?
We’ve also seen VSync being forced by the drivers even when disabled in Unity, and it would result in the same thing. A previous thread on that: Unity framerate still synced to vsync instead of target framerate