Opticos / GWSL-Source

The actual code for GWSL. And some prebuilt releases.
https://opticos.github.io/gwsl/
Other
1.15k stars 79 forks source link

Frighteningly slow GUI after WSL kernel update #164

Open f-liva opened 1 year ago

f-liva commented 1 year ago

As per the subject, after launching wsl --update and upgrading the kernel from version 5.10.102.1 to version 5.15.57.1 following the upgrade to Windows 11 22H2, applications launched with GWSL, but as well as with native WSLg, render graphics tremendously slow so much in the scale of minutes, not seconds.

(click to see the video on YouTube) IMAGE ALT TEXT HERE

This the otput of my wsl --version.

Versione WSL: 0.66.2.0
Versione kernel: 5.15.57.1
Versione WSLg: 1.0.42
Versione MSRDC: 1.2.3401
Versione Direct3D: 1.606.4
Versione DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
versione Windows: 10.0.22621.521

I have already tried uninstalling GWSL, uninstalling and reinstalling my WSL distro Ubuntu 20.04, changing WSL distro, but nothing changes.

Who can help me? 🙏

Pololot64 commented 1 year ago

I wonder if this has to do with the new systemd support. I don't have the update yet. Is the update you have the one with systemd?

f-liva commented 1 year ago

How can I help you check if that is the cause?

Pololot64 commented 1 year ago

I am not sure yet. I looked into my kernel version. I did find that you can wsl --update --rollback to go back to the previous kernel version apparently

Pololot64 commented 1 year ago

My kernel version is newer but not as high as yours... I am unable to get the update to your version. Oh I see you have an insider version of wsl

f-liva commented 1 year ago

What could this problem be due to then?

Pololot64 commented 1 year ago

I wonder if it could be related to a GPU driver or something. If you launch an app from bash, does it show any message while loading?

f-liva commented 1 year ago

I found how to unlock the problem.

When I start my WSL distro, I am notified that the value of DISPLAY is :0.

GWSL, on the other hand, tells me that he works on 0.0

image

At that point my suspicion that the problem is caused by GWSL increases, so I go to GWSL Distro Tools > More Shells and Options > Clean GWSL additions.

Now, launching GitKraken from WSL (not GWSL!) the GUI loads fast and everything works correctly.

So... GWSL causes the problem, after Windows 22H2 update. Nothing to see with my NVIDIA driver. But now... how to fix GWSL?

Pololot64 commented 1 year ago

I am not sure... Wait. I think I know the original issue. It is possible that wslg enabled itself. Do you know what this (wslg) is?