Closed Bug 1677351 Opened 5 years ago Closed 5 years ago

Poor WebRender graphics performance in Nightly 84 on GNOME w/ Wayland

Categories

(Core :: Graphics: WebRender, defect)

Firefox 84
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID
Performance Impact high

People

(Reporter: lolrepeatlol, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: perf:responsiveness)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Steps to reproduce:

I went to https://fishgl.com/ and tested performance with WebRender enabled.

Actual results:

I noticed that in Firefox 82.0.3, I had a buttery 60 fps. When I opened the same profile in Nightly, I noticed that the fps had dropped by more than half to about 20.

Note: when I had WebRender disabled, performance was also poor on Stable 82.0.3, so this seems to be a WebRender issue in newer versions.

Expected results:

I should have had the same performance on both browsers.

System information:

  • Ryzen 7 1700
  • MSI B350 PC Mate
  • 16GB RAM
  • Gigabyte RX 5700 XT

Video demonstration: https://streamable.com/udpeqd

Component: Untriaged → Performance
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

Profiler of Stable 82 while messing around in https://fishgl.com/: https://share.firefox.dev/3eYPeWZ

Profiler of Nightly 84 while messing around in https://fishgl.com/: https://share.firefox.dev/3f2HjYs

Moving to graphics for a closer look.

Component: Performance → Graphics: WebRender
Whiteboard: [qf:p1:responsiveness]

Please open about:support in Nightly, click on "Copy text to clipboard" and paste it here. Thanks!

Severity: -- → S3

Do you by any chance use Fedora? :)

Good WebGL performance only comes in combination with EGL + DMAbuf. Thus you need to:

  • have either MOZ_X11_EGL=1 or MOZ_ENABLE_WAYLAND=1 set (the later obviously only working in a wayland session - note that Fedora does this by default)
  • check that widget.dmabuf-webgl.enabled is enabled in about:config (should be by default these days

Does that work for you?

Flags: needinfo?(alexei.solonari)

(In reply to Robert Mader [:rmader] from comment #4)

Do you by any chance use Fedora? :)

Good WebGL performance only comes in combination with EGL + DMAbuf. Thus you need to:

  • have either MOZ_X11_EGL=1 or MOZ_ENABLE_WAYLAND=1 set (the later obviously only working in a wayland session - note that Fedora does this by default)
  • check that widget.dmabuf-webgl.enabled is enabled in about:config (should be by default these days

Does that work for you?

I used Fedora in the test, but now am on Arch and unfortunately have the same issue in Firefox 83, w/ about 30fps on FishGL. MOZ_ENABLE_WAYLAND=1 is on, and so is widget.dmabuf-webgl.enabled.

Flags: needinfo?(alexei.solonari)

I switched to Arch but have the same issue there. I hope this helps.

And yes, if it wasn't clear, I have this issue on Stable 83 now, albeit in Arch (on GNOME Wayland). I therefore assume this issue started in 83.

Ugh, I'm a little stupid. Indeed, starting Firefox with MOZ_ENABLE_WAYLAND=1 does indeed fix the issue on Wayland, and starting Firefox with MOZ_X11_EGL=1 fixes the issue in Xorg. I'm sorry for multiple incorrect comments. :(

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Performance Impact: --- → P1
Whiteboard: [qf:p1:responsiveness]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: