Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome 46/Wayland + Firefox + YouTube stutterng
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2525

PostPosted: Mon Dec 23, 2024 4:22 pm    Post subject: Gnome 46/Wayland + Firefox + YouTube stutterng Reply with quote

Today I updated and noticed the update included Gnome 46. However now I observe stuttering in video playback in YouTube.

By chance in my YouTube feed there was a video about this Gnome feature that has been requested for so long and it turned out to be variable refresh rate, coming in exactly v46. By playing with the refresh I found out the stuttering was worse at the highest rate. I didn't try anything else other than the highest and the lowest, but what made me curious is why I have two 60.01Hz entries for my internal display. The external one has only one entry for 60.02Hz which is expected as it is 17 years old Eizo.

I also tested it with Xorg and on the dGPU which is Nvidia and it looked like on the dGPU the stuttering was significantly decreased but still noticeable, both under Wayland and Xorg and there were only two entries for my internal display - 60.01 and 165 Hz.

However I know my iGPU which is AMD Vega 10 or something (Ryzen 7 5800H) is perfectly capable of playing 1440p and the stuttering is noticeable on 1080p as well. I also don't want to use the dGPU as the stupid binary driver dims the display due to inactivity too soon, the GPU consumes power and spins fans harder and more often due to the higher thermal output.

Does anyone else experience this?

Best Regards,
Georgi
Back to top
View user's profile Send private message
gorg86
Guru
Guru


Joined: 20 May 2011
Posts: 320

PostPosted: Tue Dec 24, 2024 12:50 am    Post subject: Reply with quote

I'm not using Gnome but I noticed since I switched to Wayland the power saving function of AMDGPU was bugged. My whole desktop and especially browsers were stuttery all the time because the GPU runs at super low frequencies all the time. Same thing happens on an Intel machine with integrated graphics.
On my AMD machine I have to set this on every start:
Code:
echo performance > /sys/class/drm/card0/device/power_dpm_state
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
echo 1 > /sys/class/drm/card0/device/pp_power_profile_mode
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2525

PostPosted: Tue Dec 24, 2024 5:41 am    Post subject: Reply with quote

gorg86 wrote:
I'm not using Gnome but I noticed since I switched to Wayland the power saving function of AMDGPU was bugged.


Wayland has nothing to do with the power saving of the AMDGPU. That's a kernel thing. Also DPM stands for display power management, which shouldn't affect the performance of your graphics card.

However I gave it the benefit of the doubt and... nothing changed. If it works for you, it must be some kind of placebo effect.

Maybe only the last line may have some effect, but I doubt it.

Best Regards,
Georgi

p.s. did you upgrade/change your kernel?


Last edited by logrusx on Tue Dec 24, 2024 7:10 am; edited 1 time in total
Back to top
View user's profile Send private message
djselbeck
n00b
n00b


Joined: 10 Oct 2005
Posts: 33
Location: Germany

PostPosted: Tue Dec 24, 2024 5:55 am    Post subject: Reply with quote

Quote:

Also DPM stands for display power management, which shouldn't affect the performance of your graphics card.


Not in this case, it is documented here https://docs.kernel.org/gpu/amdgpu/thermal.html#gpu-sysfs-power-state-interfaces

FWIW I can also observe some lost frames on a 780m (7840u processor) for 1080p@60Hz video in firefox. I think it might be related to slowness in Firefox's compositing or so (downloaded in Kodi the video plays smooth). Also happened on Gnome 45 and now on 46.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2525

PostPosted: Tue Dec 24, 2024 6:12 am    Post subject: Reply with quote

It started happening on 46 for me, that's what brought my attention to Gnome.

And i don't think the above-mentioned interfaces have anything to do with Wayland. As I already said, they are a kernel thing and I haven't changed the kernel a bit.

Unfortunately I can't test it on Chromium, unless I want to spend 2-3 hours compiling. Maybe I need to recompile Firefox. I'll try.

Best Regards,

Georgi
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6177
Location: Dallas area

PostPosted: Tue Dec 24, 2024 11:56 am    Post subject: Reply with quote

Yes setting the different parameters can affect the speed at which the gpu is allowed to do things.
Locked at low performance settings the gpu will only run to the limit of what you are allowing.

These are facts, like it or not.

They may not be your issue, but if you are going to pretend to be a know-it-all (ie. you already know all the answers) then why even ask questions?

You might just run "about:support" in firefox, scroll down to the gpu stuff and look at the various settings.

I doubt wayland or the kernel is at fault though, maybe gnome is setting the gpu to some weird specs. Again up to you to look.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2525

PostPosted: Tue Dec 24, 2024 12:07 pm    Post subject: Reply with quote

Anon-E-moose wrote:


I appreciate you taking the time to post, but your post is completely useless. Could you please refrain from doing it further?

Best Regards,
Georgi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5241
Location: Bavaria

PostPosted: Tue Dec 24, 2024 1:02 pm    Post subject: Reply with quote

logrusx wrote:
I appreciate you taking the time to post, but your post is completely useless. Could you please refrain from doing it further?

Giving someone support can sometimes be unsuccessful. You can react to this in different ways. One option is to simply ignore a post. However, your reply will be read by many other users. When I read something like that, I think to myself that I will be very careful in future to try to help you, because a reply like that would hurt me. Maybe other users feel the same way ...

@Anon-E-moose has successfully helped many users - including me. You also often try to help others. Have you always been right? Support is sometimes trial and error ... and sometimes you need a few mistakes before you are successful. Quitting after the first mistake will certainly never lead to success. I try to help with problems with the kernel configuration and yes, there are also very long threads ... because we didn't find the right option right away. But I was also never told to stop helping ... so that in the end the result was successful ... or we have found out that it is simply a bug in the kernel ... this sometimes takes a few iterations ... and the exclusion of an incorrect configuration.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum