Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug very bad UI drawing with Vulkan

Discussion in 'Linux' started by xAdamQ, Oct 4, 2022.

  1. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    I am using HDRP, so I need Vulkan, but when I switch to it, the UI becomes too laggy, and with issues when it redraw.
    Is there any solution to that?

    Fedora 36, Unity 2021.3.8f1
    Vulkan details:

    upload_2022-10-4_16-45-58.png
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,223
    Define laggy. We can't help if you aren't specific. Maybe a video will help.
    Is it bad performance? Then check profiler
    Does it work well on another OS/Graphics API? (Maybe it's your device or drivers)
    Did you already update Unity and drivers to the latest?
     
  3. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    - moving from one item to the other from the hierarchy, project, etc.. is pain, very laggy, moving with keyboard takes about 1 second delay
    - editor windows has some issues like in the video, and this is a small project, in a huge project unity&vulkan&linux is totally unusable

    is there something I can do here?

    (the video is .zip because I can't upload webm here)
     

    Attached Files:

  4. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    613
    It's working more or less fine (play mode ignores vsync but that's a completely different problem) on my Linux system with Vulkan (Unity 2021.3.10, Arch Linux, AMD GPU, open source drivers, Gnome, wayland). So I guess this is specific to certain combinations of factors not Unity Vulkan on Linux in general. Would be nice to see input for more people using Unity on Linux to narrow down which parts are the main contributors for this problem.

    To me the video you showed looked less like lagging and more like parts UI not getting properly refreshing until the mouse interactions trigger a new redraw. Hard to evaluate other aspects of interaction from video.

    If I remember correctly I used to see alot more of somewhat similar redrawing issues in 2020.3.x series, but things have been much better with 2021.x. Resizing panels is still slightly glithcy as if there some intermediate redraws using wrong dimensions resulting in right side of panels to wiggle while you resize them, but it automatically does proper redraw fast enough so it's not a usability problem. Funnily the open gl mode behaves slightly worse, resulting in a bit of solitaire effect as you resize panels, but again it does a proper redraw soon enough to prevent being unusable.
     
    DevDunk likes this.
  5. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    for me, It behaves exactly the same on Manjaro(KDE) and Fedora(Gnome), and they are totally different distributions, that's why I think it maybe an issue from Unity's side, or maybe the driver? idk.... but my GPU is pretty standard and common(RTX 3060).