[wayland] Wayland events don't stop even when the window is in the background
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: emilio, Unassigned)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: power, regression)
[Tracking Requested - why for this release]: This affects power usage negatively.
STR (I tested on KDE plasma):
- Run Firefox with
WAYLAND_DEBUG=1
, navigate toabout:blank
. Make sure urlbar doesn't have focus so nothing moves.
ER:
- Log spew stops after a while.
AR:
- Wayland events keep happening at full speed, even when the window is in the background.
Mozregression points to bug 1934497. Martin, can you take a look?
Comment 1•13 days ago
|
||
Set release status flags based on info from the regressing bug 1934497
Could it be the same as #1879271? See https://bugzilla.mozilla.org/show_bug.cgi?id=1879271#c15
Reporter | ||
Comment 3•12 days ago
|
||
This seems to be because WaylandVSyncSource::Init
always adds a persistent frame callback so we just request frame callbacks over and over ad infinitum. Which is expected, I think, but we seem to still be doing more work than we used to.
It doesn't look like it should be happening though in general? I.e. GPU shouldn't be constantly loaded if the window is not actually visible.
But even if visible, it doesn't sound right to have an increased GPU usage for basically no gain?
Reporter | ||
Comment 6•12 days ago
|
||
(In reply to Shmerl from comment #2)
Could it be the same as #1879271? See https://bugzilla.mozilla.org/show_bug.cgi?id=1879271#c15
It seems maybe related but at least not quite the same. You're seeing something in 134, while the regressor here landed in 135. Still, linking the bugs for convenience.
(In reply to Shmerl from comment #5)
But even if visible, it doesn't sound right to have an increased GPU usage for basically no gain?
Requesting the frame callback shouldn't increase GPU usage per se, it's just a signal from the compositor. Ideally we do very little or no work off it if nothing is changing on the screen tho, and that seems to have regressed.
Reporter | ||
Comment 7•12 days ago
|
||
It seems WaylandVSyncSource::DisableVSync
should actually remove the persistent callback, or something.
Sure, it's dupe of Bug 1940924. Will look at it ASAP.
Updated•12 days ago
|
Description
•