Re: FreeBSD Port: firefox-109.0.1,2 (WebGL)

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 12:02:39 UTC
"Alex V. Petrov" <alexvpetrov@gmail.com> writes:

> Last versions FF have very low perfomance of WebGL.
>
> Compare with Chromium (https://webglsamples.org/aquarium/aquarium.html):
> 10000 fish
> Chromium - 60 Fps
> FF - 6 Fps
> (I have GF 1070)
>
> Some time ago these values were about the same.

On Intel HD 530 (8086:1912) for 10000 fish I get

chromium-109.0.5414.119:
- 41 FPS under Sway
- 60 FPS under Xwayland
- 60 FPS under Xorg (modesetting, without compositor)

firefox-109.0.1,2:
- 30 FPS under Sway
- 31 FPS under Xwayland
- 29 FPS under Xorg (modesetting, without compositor)

Maybe Firefox uses DMABUF[1] outside of Wayland and VA-API nowadays.
If so for DMABUF to work on NVIDIA GPUs you need DRM[2].

[1] https://searchfox.org/mozilla-release/search?q=DMABufWebGL
    and widget.dmabuf-webgl.enabled in about:config
[2] https://forums.freebsd.org/threads/call-for-testing-nvidia-drm-kernel-module.87161/