pp3345 / gnome-with-patches

Fedora Copr repository with patched gnome-shell and mutter builds
https://copr.fedorainfracloud.org/coprs/pp3345/gnome-with-patches
25 stars 2 forks source link

Consider mutter!1441 #29

Open validatedev opened 3 years ago

validatedev commented 3 years ago

MR is here: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441 That patch should improve the performance drastically with HiDPI screens with lower-powered Intel GPU's. Right now, the session is pretty laggy (20-30 fps if 3-4 window is opened maybe?).

pp3345 commented 3 years ago

I am watching that MR, however, it still lacks Wayland support. AFAIU, the Wayland session even hangs when applying !1441, so that's definitely a blocker. I will add it as soon as Wayland is properly supported.

validatedev commented 3 years ago

Maybe this will be a silly question, but I wanna really try that patch, as I use X11. I cannot really found a tutorial or doc how can I compile and package as rpm. Could you show the way, or some tricks please? Thanks in advance.

pp3345 commented 3 years ago

Sure. git clone either this repo or Fedora's original sources, then download the PR as a diff and add a PatchXXX: line to the .spec file. Then use rpkg to build the rpm and install using dnf. I haven't tested whether there are any conflicts when applying !1441 though.

Basically, these steps:

git clone https://github.com/pp3345/gnome-with-patches
cd gnome-with-patches
git checkout f33-mutter
wget https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441.diff
# Use your favorite text editor to add a line with Patch1000: 1441.diff near the last PatchXXX line
rpkg local

You can then find the rpms in /tmp/rpkg/mutter-XXX/x86_64/.

validatedev commented 3 years ago

I built the packages, just include the rt one of yours because it conflicts. Well, I can say that the patch increases fps dramatically, shell not stutters anymore. This is an absolute real speed improvement I've ever seen in mutter. It is pretty amazing! And thanks for the instructions. Without you, I couldn't do this <3

validatedev commented 3 years ago

Found that just !1309 conflicts !1441, made the developer notice this.

pp3345 commented 3 years ago

Yes, that's quite normal. That's actually the major part of the work I do in gnome-with-patches: fixing conflicts. :-)