Search Issue Tracker
By Design
Votes
5
Found in
2018.3.0f1
2019.1.0a13
2019.4
2020.1
2020.2
Issue ID
1108469
Regression
Yes
Gfx.WaitForPresent / Gfx.WaitForPresentOnGfxThread huge spikes in Profiler when in Play Mode with vSync set to "Don't Sync"
Steps to reproduce:
1. Open a new project
2. Turn off vSync (Project Settings > Quality > Other > VSync Count > Don't Sync)
3. Open the Profiler (makes it easier if only Rendering activity is showing in CPU Usage, located in Window > Analysis > Profiler)
4. Enter the Play Mode
5. Observe the Profiler Window
Expected results: no Gfx.WaitForPresent spikes are visible
Actual result: constant Rendering spikes for Gfx.WaitForPresent
Reproduced with: 2019.1.0a13, 2018.4.26f1, 2019.4.7f1, 2020.1.1f1, 2020.2.0a20
Not reproducible: 2019.1.0a12 Mac (but still somewhat reproducible on Windows)
Reproduced on:
MacBook Pro 10.13.6 with Metal API
iMac 2017 10.15.6 with Metal API
Windows 10 with DX11, DX12, Vulkan, OpenGLCore
Not reproducible:
MacBook Pro 10.13.6 with OpenGLCore
iMac 2017 10.15.6 with OpenGLCore
Notes:
1. Happens very rarely when vSync is on. Happens way more frequently on Mac compared to Windows.
2. Performance deteriorates when moving the mouse in Play Mode
Comments (7)
-
kevinh3682
Aug 03, 2024 15:20
I'm having this problem on 2022.3.6.f1
-
imrankhanswati
Jan 23, 2019 05:52
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
-
imrankhanswati
Jan 23, 2019 05:51
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
-
imrankhanswati
Jan 23, 2019 05:50
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
-
imrankhanswati
Jan 23, 2019 05:50
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
-
imrankhanswati
Jan 23, 2019 05:50
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
-
imrankhanswati
Jan 23, 2019 05:50
I am also experiencing same issue with 2018.2. GFX spike is shown after constant specific time. it usually takes like 60%+.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note:
try to use Time.smoothDeltaTime instead of Time.deltaTime in user's script, also in quality settings, change Vsync to "Every V Bank"