Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Vulkan enabled Editor - fast viewport slow UI

Discussion in 'Linux Editor' 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

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    974
    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-RST

    Luka-RST

    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:
    196
    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:
    4
    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
     
unityunity