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"

Graphics - LowLevel

-

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

  1. Response avatar

    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"

Comments (6)

  1. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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%+.

  2. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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%+.

  3. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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%+.

  4. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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%+.

  5. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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%+.

  6. 2d32c494e3c750e8566de343b805aa8b?d=mm

    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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.