Bug 473583 - [Wayland] Chromium's page scrolling is laggy
Summary: [Wayland] Chromium's page scrolling is laggy
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 5.27.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-20 22:32 UTC by zvova7890
Modified: 2023-11-19 21:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zvova7890 2023-08-20 22:32:51 UTC
SUMMARY
While scrolling pages in Chromium, there is occasional lag. However, when the Plasma FPS widget is enabled, scrolling becomes smoother. I suspect this might be related to GPU frequency. I've seen a similar bug report where this behavior was observed, but it affected the smoothness of the entire Plasma environment.

STEPS TO REPRODUCE
1. Start plasma wayland session
2. Open chromium
3. Scroll pages

OBSERVED RESULT
Smooth scrolling 

EXPECTED RESULT
A little lagging occurs 

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11700 @ 2.50GHz
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: ASUS
Comment 2 Zamundaaa 2023-08-21 11:24:12 UTC
I can assure you that your GPU can handle a scrolling website just fine, no matter the frequency it's running on. Please report this to Chromium developers
Comment 3 zvova7890 2023-08-21 13:04:07 UTC
I know that my GPU is pretty enough to scroll web pages. However, when deciding where to report this issue, I have two reasons to choose reporting it here:
1. FPS plasma widget is fixes situation
2. Other wayland compositor isn't affected(I have tested only on weston yet, will test mutter soon)

So I decided that it's can be somehow related to the specific compositor. 
Also I should note that it works much better under xwayland and ideal smooth on X11(with KDE)
Comment 4 Zamundaaa 2023-08-21 13:12:02 UTC
Your reasoning is sound, but a bug being specific to Chromium running on KWin doesn't mean that it's caused by KWin. This is most likely caused by the same problem as https://bugs.chromium.org/p/chromium/issues/detail?id=1310539, which is that Chromium doesn't properly work with frame callbacks
Comment 5 zvova7890 2023-08-24 01:43:48 UTC
I've reported it to the chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1475505
Comment 6 zvova7890 2023-11-19 21:54:28 UTC
The Presentation Time Protocol has fixed this issue