Bug 480436 - Chromium is limited to 60 fps
Summary: Chromium is limited to 60 fps
Status: RESOLVED DUPLICATE of bug 478938
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: git master
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-28 14:48 UTC by Willian
Modified: 2024-01-29 01:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Willian 2024-01-28 14:48:02 UTC
SUMMARY
Can't make chromium and electron applications to run with more than 60 fps in a 165hz display


STEPS TO REPRODUCE
1. Build plasma 6 with `kdesrc-build workspace`
2. Chose plasma 6 with wayland on sddm

OBSERVED RESULT
- Running `chromium` with XWayland will give 120fps at https://www.vsynctester.com/ 
- Running `chromium --enable-features=UseOzonePlatform --ozone-platform=wayland` will give 65-70fps (it was limited to ~60fps on plasma 5) 
- Running `chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=egl` will give 65-70fps 

EXPECTED RESULT
To have it running with 165fps.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Willian 2024-01-28 14:49:57 UTC
Correction: chromium runs with 165 fps using XWayland, not 120 fps
Comment 2 Zamundaaa 2024-01-28 15:49:36 UTC
Can't reproduce with the flatpak (flatpak run org.chromium.Chromium --ozone-platform-hint=auto)
Comment 3 Willian 2024-01-28 17:36:45 UTC
Just tried it with flatpak and I'm getting the same behavior. Some additional info:

KWin version: 6.0.80
Qt Version: 6.6.1
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Linux 6.7.0

It's a laptop with Nvidia gpu and I'm not using additional displays
Comment 4 Willian 2024-01-28 17:52:32 UTC
Just tried with a live usb of manjaro-gnome and it worked fine. If there is a better way to use plasma 6 I can try it and see if the problem persists.
Comment 5 Willian 2024-01-28 19:56:07 UTC
Found the issue: the fps is only limited if I set adaptive sync to "Always". Is this expected?

I'm using this option because "Automatic" and "Never" at 165hz causes flickering in my display (not sure if this is supposed to be another issue itself)
Comment 6 Zamundaaa 2024-01-28 20:22:35 UTC
The display flickering sounds like https://gitlab.freedesktop.org/drm/amd/-/issues/2966

*** This bug has been marked as a duplicate of bug 451639 ***
Comment 7 Zamundaaa 2024-01-28 20:30:53 UTC
Meh, bug 478938 is probably more relevant here

*** This bug has been marked as a duplicate of bug 478938 ***
Comment 8 Willian 2024-01-29 01:02:06 UTC
(In reply to Zamundaaa from comment #6)
> The display flickering sounds like
> https://gitlab.freedesktop.org/drm/amd/-/issues/2966
> 
> *** This bug has been marked as a duplicate of bug 451639 ***

Thank you. I have Intel here, do you know if there is a known issue about it?
Comment 9 Zamundaaa 2024-01-29 01:13:36 UTC
Not that I know of. For Intel you can create an issue at https://gitlab.freedesktop.org/drm/intel/-/issues