Search Unity

Vulkan enabled Editor - fast viewport slow UI

Discussion in 'Linux' started by miniduck, Sep 12, 2018.

  1. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Hello

    Enabling vulkan gives us fast 3d viewport but the general Unity UI becomes very sluggish.
    For example when resizing the UI inspector/hierarchy/project tabs takes a while to update to the main window.
    Navigating the 3d view is however more responsive with vulkan enabled.

    Only notable difference when stracing with/without vulkan is when it's enabled, there is a huge amount of this repeated when resizing the UI:
    Code (CSharp):
    1. read(100, "Mobile: 4294967295\nResmanDebugLe"..., 1024) = 599
    2. open("/dev/nvidia0", O_RDWR)            = 100
    3. open("/proc/driver/nvidia/params", O_RDONLY) = 100
    4. read(100, "Mobile: 4294967295\nResmanDebugLe"..., 1024) = 599
    5. open("/dev/nvidiactl", O_RDWR)          = 100
    6. open("/proc/driver/nvidia/params", O_RDONLY) = 100
    7. read(100, "Mobile: 4294967295\nResmanDebugLe"..., 1024) = 599
    8. open("/dev/nvidia0", O_RDWR)            = 100
    9. open("/proc/driver/nvidia/params", O_RDONLY) = 100
    We are using 1.1.77.0 of the vulkan libs. nvidia driver 390.48, gtx 1080 card
    Centos 7.5, 2018.2.7f1, empty Unity project under default 3D template.

    Any ideas what we can try?

    Thanks
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    This is a known issue.
    Currently, each gui view in Unity is its own OS window with its own GL context / Vulkan swapchain. It's apparently much slower to resize one of these in Vulkan (at least what we're doing today) than it is in OpenGL.
    We're investigating our options.
     
  3. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Good to hear it's on your radar already

    Thank you
     
    FROS7 likes this.
  4. Luka-NiTL

    Luka-NiTL

    Joined:
    Nov 7, 2013
    Posts:
    7
    Still no fix, the Unity editor in Vulkan is beyond slow when resizing windows.
     
  5. PixelJ

    PixelJ

    Unity Technologies

    Joined:
    Nov 1, 2018
    Posts:
    216
    OpenGL has been sped up significantly, but yes there is still work to be done on Vulkan.
     
    FROS7 likes this.
  6. veritas1

    veritas1

    Joined:
    Jun 20, 2020
    Posts:
    2
    Just for record, this is still an issue. Running PopOS 20.04, vulkan 1.2.131, nvidia GTX 1050Ti driver v440.100
     
  7. JohanAR

    JohanAR

    Joined:
    Dec 26, 2016
    Posts:
    6
    Are there any plans to change this? Opening a new window for each tooltip is quite slow and glitchy with OpenGL too. For example if you hover something in the ProBuilder window it flashes black when opening a tooltip. In addition each tooltip creates a new entry on the task bar for its duration, which looks a bit sloppy