Search Unity

Direct3D9, multiple monitors, disable vSync

Discussion in 'Windows' started by ujr, Jan 22, 2019.

  1. ujr

    ujr

    Joined:
    Jul 29, 2016
    Posts:
    42
    Hi,

    is it possible (if so, how) to disable vsync in an Unity3D application that runs on multiple monitors via Direct3D9?

    For me, as soon as I set
    QualitySettings.vSyncCount = 0
    , the game crashes ("D3D reset failed").
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Which Unity version are you on? Is there a reason you are still using d3d9? Did you try setting it in player settings before building your application?
     
  3. ujr

    ujr

    Joined:
    Jul 29, 2016
    Posts:
    42
    I'm sorry - I totally forgot to mention the version number. It's 5.6.6.

    I'm still using Direct3D9 because of a custom presenter of enhanced video renderer (EVR).

    Yes, I tried setting vSyncCount in player settings. But I believe it didn't work because the fps I've been displaying in standalone app showed monitor refresh rate.

    When I tried a minimal application which activates the second display it works with D3D11, but not D3D9. So I'm afraid there might be a general problem with vsync, multiple monitors and D3D9. But of course I'm not sure. There may be a bug in 5.6.6.