Tangram icon indicating copy to clipboard operation
Tangram copied to clipboard

Window resize slow and choppy

Open MartinX3 opened this issue 3 years ago • 12 comments

Tangram version 1.4.2

Linux distribution Arch Linux

Flatpak version N/A

Desktop environment XFCE 4.16 with X-ORG

The maximazing, normalizing and resizing of the window is slow and choppy. I see one of the WebKitWebProcess's eating my CPU while doing that.

Sadly I don't know how to get logs about this behavior.

I don't have this in Gnome Web. Or maybe it's there too, but Tangram requests more CPU calculations in this process?

MartinX3 avatar May 19 '22 21:05 MartinX3

Could you try with Tangram 2.0 beta?

Instructions here here https://thisweek.gnome.org/posts/2023/01/twig-77/#tangram

sonnyp avatar Jan 07 '23 12:01 sonnyp

Thank you for your hard work. I just need to wait for https://aur.archlinux.org/packages/tangram to upgrade it to 1.5.0 I hope I'm not affected by the nvidia issue.

MartinX3 avatar Jan 07 '23 13:01 MartinX3

I doubt 1.5.0 will fix this window resize performance issue, but you can try. The nvidia issue is on 2.0 beta only.

sonnyp avatar Jan 07 '23 13:01 sonnyp

Yeah, 1.5.0 is still choppy and the youtube video is accelerated on the CPU. Compared to chromium it is visible slower.

Now I need to wait for this package to get updated to 2.0 :)

MartinX3 avatar Jan 07 '23 16:01 MartinX3

Tangram 2.0 beta is available to test from flathub https://thisweek.gnome.org/posts/2023/01/twig-77/#tangram

It you want to improve chances that it's solved for the stable release – please give it a try.

sonnyp avatar Jan 07 '23 16:01 sonnyp

Sadly I can't install it because of Fehler: The application re.sonny.Tangram/x86_64/beta requires the runtime org.gnome.Platform/x86_64/43 which was not found (I personally prefer AUR builds and dislike flatpak and similliar stuff, I only container on my servers)

Edit: I'll try flatpak install flathub org.gnome.Platform/x86_64/43

MartinX3 avatar Jan 07 '23 16:01 MartinX3

flatpak install org.gnome.Platform//43

sonnyp avatar Jan 07 '23 16:01 sonnyp

Thank you No nvidia issue, so it uses my iGPU instead. Also it looks prettier now.

But compared to chromium the resize and maximize minimize of the window is still slower. Also the CPU and GPU usage is higher compared to chromium. I test it while watching a 1080p youtube video.

It's weird, that tangram uses much more Render/3D on my intel iGPU and uses much more of my cpu threads while watching the 1080p youtube video in fullscreen compared to chromium.

MartinX3 avatar Jan 07 '23 16:01 MartinX3

You originally ticket said

I don't have this in Gnome Web.

Which is why I considered it valid.

I can't do anything about performance delta with chromium.

Is Tangram resize experience now comparable with GNOME Web ?

sonnyp avatar Jan 07 '23 16:01 sonnyp

Ah, sorry, I forgot to compare it with epiphany. I tested it with v43 now. Sadly the gnome browser (apple safari engine) is worse compared to firefox and chromium. It's choppy and blinking on resizing and uses more gpu and cpu.

MartinX3 avatar Jan 07 '23 17:01 MartinX3

Apologies – I thought this was rendering related, but actually this is causing the window resize choppiness:

  settings.bind(
    "window-width",
    window,
    "default-width",
    Gio.SettingsBindFlags.DEFAULT,
  );
  settings.bind(
    "window-height",
    window,
    "default-height",
    Gio.SettingsBindFlags.DEFAULT,
  );

Resize is butter smooth without it. I will fix it for 2.0

sonnyp avatar Jan 14 '23 11:01 sonnyp

Some thoughts/findings here https://gitlab.gnome.org/Teams/documentation/developer-www/-/issues/49

sonnyp avatar Jan 14 '23 12:01 sonnyp