[Linux] Firefox constantly repaints (damages) entire window
Categories
(Core :: Graphics, enhancement)
Tracking
()
People
(Reporter: leewkxvyehhztmjnkl, Unassigned)
Details
Steps to reproduce:
- Use an NVIDIA GPU with the open kernel modules (555.58.02 or 560.31.02 beta) or an AMD iGPU with Mesa 24.1 alike (i.e. it's not NVIDIA-specific).
- On GNOME/mutter 46.4 Wayland, open looking glass (Alt+F2 and type 'lg'), go to 'flags', and enable 'PAINT_DAMAGE_REGION'.
- Open e.g. www.duckduckgo.com.
- Type in the search bar.
Actual results:
The whole window is painted as being 'damaged' every time you type something.
Expected results:
Preferably, only the area of the search bar in the website that is being modified is damaged - or, barring that, the search bar.
Less preferably if this turns out to be difficult, only the part of the Firefox window is damaged that contains the site - not the bookmarks sidebar or the rest of the window 'chrome' such as the tab bar and titlebar, as these are not being changed.
Additional details:
FYI, on AMD, applications such as VSCode or GTK4 applications such as Dino or Nautilus only damage small rectangles of input areas or even just the cursor's area itself. On NVIDIA however I encounter similar issues to Firefox, see also https://gitlab.gnome.org/GNOME/gtk/-/issues/6941.
Comment 1•9 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Just for posteriority: this was tested on Firefox 129 on 130b6. I updated to 130b8 today, and this seems to be at least partially fixed (I can still reproduce on Firefox 129); on DuckDuckGo 'tiles' are being redrawn within the content of the page when typing in the input field at the top.
The tiles seem somewhat arbitrary, as if the web page is divided into a grid and only affected cells are being redrawn, as opposed to just e.g. the input field, but this is already much better than damaging the entire window, nice! Touching things in the sidebar with Sidebery for example also only damages the content of the tabs now.
However, scrolling a page such as DuckDuckGo still damages the entire window instead of just the page itself. Despite fullscreen Firefox windows being common where the page takes up most of the space anyway, since scrolling is such a common task, limiting the damage area might still be beneficial here during long-term use, especially for users that always have the sidebar open.
Description
•