[SOLVED] Performance issues on Firefox - Low/No GPU utilization

It’s been a couple years since I was last working with PlayCanvas. I was testing out some of the examples and my Firefox is really struggling. It seems like the WebGL code is being run on the CPU.

(That’s from this example: PlayCanvas Web Components Examples)

WebGL 2 is found okay:

Basically no GPU utilization:

THREE.js examples are having similar performance issues. So, this seems like Firefox is not using my GPU. Anyone have this issue before? I’m running Firefox as a Snap on Ubuntu running Wayland.

I realize this issue is not directly related to PlayCanvas, just thought I’d ask since y’all know browser <> GPU behavior pretty well.

Solved it.

This Bugzilla thread explains it - 1928754 - Software renderer used on Ubuntu 24.10 wayland with Nvidia GPU and Firefox snap

Basically—the Firefox Snap is using the older Snap “core 22”. “Core” being the runtime environment that Snaps run inside. In Firefox 137 (currently the Nightly release channel), they update the Snap to use “core 24”. This brings crucial Mesa driver updates which leads to better GPU compatibility.

To fix this—you gotta either switch to Firefox 137 (which means switching to “Nightly”), or you reinstall the Firefox Snap with the /core24 branch added, like so:

Release Channel Snap Refresh Command
Stable (135) sudo snap refresh --channel=latest/stable/core24 firefox
Candidate (135) sudo snap refresh --channel=latest/candidate/core24 firefox
Beta (136) sudo snap refresh --channel=latest/beta/core24 firefox
Edge (137) Not needed. Firefox v137 has the core24 update.

1 Like

I was going to say, the unmasked renderer from the webgl2 report looks suspect

1 Like