Closed Bug 1749972 Opened 3 years ago Closed 3 years ago

Slow loading of wasm webgl app in ubuntu (Xfce X11, Nvidia Quadro M1200, driver 460)

Categories

(Core :: Graphics: WebRender, defect)

Firefox 95
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1735929

People

(Reporter: jean-sylvestre.zirani, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

I load this page:

https://dev.luciad.com/portal/packed-samples/ria/bim/index.html?webgl&reference=epsg:4978

in Firefox 95.0.1 (64 bit)
Mozilla Firefox for Ubuntu canonical - 1.0
user agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Actual results:

It loads slowly and the cpu load stays at 100%.

It loads relatively fast on Firefox/Windows or on MacOS and also relatively fast with other browsers on ubuntu.

If I look at the debugger/performance time, 98% of the time is spent in DOM without much information. On windows, that DOM part is almost nothing.

Expected results:

Similar loading time across platforms.

We are trying to understand what is happening but so far we have no clue.

It appears that same page is fine with Firefox 82.0.3

The Bugbug bot thinks this bug should belong to the 'Core::Canvas: WebGL' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Canvas: WebGL
Product: Firefox → Core
Component: Canvas: WebGL → Javascript: WebAssembly

This does not appear to be a wasm issue, but a webrender / webgl issue. I can confirm that this is sluggish on fedora and pins one of my cores, while it is smooth and not performance-intensive on a mac w/ same architecture.

Component: Javascript: WebAssembly → Graphics: WebRender

When DMABuf fast path is not enabled, readback makes WebGL very slow.
Profiler shows https://share.firefox.dev/3fEHbQ6

See Also: → slow-linux-webgl

jean-sylvestre.zirani , can you upload about:support to this bug?

Flags: needinfo?(jean-sylvestre.zirani)
Attached file about-support.json

As requested, I attached the raw data of about:support

Sotaro ikdea(In reply to Sotaro Ikeda [:sotaro] from comment #4)

When DMABuf fast path is not enabled, readback makes WebGL very slow.
Profiler shows https://share.firefox.dev/3fEHbQ6

Hi Sotaro ikdea

Is there a way to detect from the application if the the DMABuf fast path has been disabled ?

Flags: needinfo?(jean-sylvestre.zirani)
Blocks: wr-linux

DMABUF in Decision Log in Graphics section in about:support says if DMABUF is available. WebRender with EGL is needed for DMABUF.

(In reply to jean-sylvestre.zirani from comment #7)

Is there a way to detect from the application if the the DMABuf fast path has been disabled ?

Yes, in about:support look for DMABUF. It's generally not available yet on the proprietary nvidia driver, especially not in old versions. If your card is supported by the 495 driver series, it should theoretically work but there's bug 1735929 which also prevents it to work there.

This is Xfce X11 on Nvidia Quadro M1200.
Quadro M1200 is supported by Nvidia driver 495 and later.
510 beta: https://www.nvidia.com/Download/driverResults.aspx/184911/en-us

  • Wayland: WebGL should be fast when starting Firefox with MOZ_ENABLE_WAYLAND=1 environment variable on Gnome Wayland on Ubuntu 22.04.
  • X11: bug 1735929
No longer blocks: wr-linux
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Resolution: --- → DUPLICATE
See Also: slow-linux-webgl
Summary: Slow loading of wasm webgl app in ubuntu → Slow loading of wasm webgl app in ubuntu (Xfce X11, Nvidia Quadro M1200, driver 460)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: