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
-
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
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
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"