Closed Bug 1577024 Opened 5 years ago Closed 5 years ago

[Wayland] Enable experimental wayland backend modes by widget.wayland_cache_mode pref

Categories

(Core :: Widget: Gtk, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Enable partial and non-cached Wayand backend rendering. May be suitable for fullscreen video playback and/or battery saving and so on. It's controled by widget.wayland_cache_mode.

Summary: [Wayland] Enable experimental wayland backend modes → [Wayland] Enable experimental wayland backend modes by widget.wayland_cache_mode pref

btw. the non-cached mode may be set automatically when Firefox comes to fullscreen and/or whole content window update is detected (like during scrolling). While fullscreen transition may be easy to detect I wonder how I can detect the scrolling.

Image cache mode can be set by widget.wayland_cache_mode.

  • widget.wayland_cache_mode = 0 (or missing):
    Cache and clip all drawings, default. It's slowest
    but also without any rendered artifacts.

  • widget.wayland_cache_mode = 1:
    Cache drawing only when back buffer is missing. May produce
    some rendering artifacts and flickering when partial screen update
    is rendered.

  • widget.wayland_cache_mode = 2:
    Don't cache anything, draw only when back buffer is available.
    Suitable for fullscreen content only like fullscreen video playback and
    may work well with dmabuf backend.

(In reply to Martin Stránský [:stransky] from comment #1)

btw. the non-cached mode may be set automatically when Firefox comes to fullscreen and/or whole content window update is detected (like during scrolling). While fullscreen transition may be easy to detect I wonder how I can detect the scrolling.

that sounds interesting, in case you want to test some patch on intel (regular or gallium iris driver)+ HD / 4K, feel free to send it and I'll do testing :) (best if I'll be able change behaviour with something like widget.wayland_cache_mode ).

Pushed by malexandru@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/893a4487b586
[Wayland] Enable experimental wayland backend modes by widget.wayland_cache_mode pref, r=jhorak

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: