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
-
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
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
- [Linux] Floating windows do not keep their size after restarting the Editor
- .framework plugin is mistakenly treated as a directory when building for Universal Windows Platform
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"