Open Bug 1826291 Opened 2 years ago Updated 1 year ago

[X11] Firefox is not suppressed if main window is not visible

Categories

(Core :: Widget: Gtk, defect, P2)

defect

Tracking

()

People

(Reporter: stransky, Assigned: stransky, NeedInfo)

References

Details

Attachments

(2 files)

Firefox is not suppressed if main window is not visible under X11.

  1. Open a OpenGL testcase (https://webglsamples.org/aquarium/aquarium.html)
  2. maximize it
  3. switch to different window
  4. CPU is still utilized and Firefox eats 150% CPU

It affects only Firefox under X11. Firefox/Wayland works as expected.
Other browsers (Chrome/Chromium under X11) can suppress rendering in that case.

Priority: -- → P2
Flags: needinfo?(stransky)
Attached file wayland-run.txt (deleted) —
Attached file x11-run.txt (deleted) —
Flags: needinfo?(stransky)
Flags: needinfo?(stransky)

Looks like we lost this ability in Bug 1723134 where X11/EGL was switched to swap interval 0 so we don't throttle rendering on X11 when window is hidden.

EGL swap interval has been 0 even before that bug and seems to be required for Xwayland (bug 1635186 comment 49), EGL/Nvidia and GLX/Nvidia (it's still 1 for GLX: wontfix = bug 1716049 = WR/Nvidia has been switched to EGL or SW WR), otherwise one hidden window blocks rendering in all others.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: