Closed Bug 751082 Opened 13 years ago Closed 12 years ago

WebGL performance on Linux is very bad compared to ff on windows or chrome on linux/windows

Categories

(Core :: Graphics: CanvasWebGL, defect)

12 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 942302

People

(Reporter: waterstorm, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120430162106 Steps to reproduce: I just opened some WebGL Page on my Linux machine. Any bigger WebGL page shows the same result. For example the fish tank: http://ie.microsoft.com/testdrive/Performance/FishIETank/ or some three.js stuff like this: http://mrdoob.github.com/three.js/examples/canvas_geometry_terrain.html (I have installed Gentoo x86_64, nvidia 294 drivers and gnome, for windows comparison I used Windows 7 and amd 12.3 drivers) Actual results: If I open it under Linux I have a very bad performance with Firefox (I tried 10 and 12). Linux FF: 20 Fish, 1080p, ~12 FPS Linux Chrome: 500 Fish, 1080p, ~40 FPS But FF under Windows shows pretty good performance. So I'm not really sure what the problem could be. Expected results: The performance should be the same in all browsers in both OS.
Summary: WebGL performance in Linux is very bad compared to ff in windows or chrome in linux/windows → WebGL performance on Linux is very bad compared to ff on windows or chrome on linux/windows
I'm not having this problem (Linux), however this is mainly issues relating to graphics cards and Linux compatibility. But I also have my modified version of a ATI running :p Conclusion: I don't believe this is a fix that can be done on firefox end. However, that doesn't mean we couldn't try to optimize WebGL to spit out the best possible performance.
Thanks for looking into this. I really don't know how you do this :P I was trying this out on several Linux computers and can confirm it on any single one :( (Laptop with ATI 6550, Desktop with Nvidia Quadro 295, Desktop with ATI 5870) There's only one thing I did not change: the Linux Distribution, I was always using Gentoo or Sabayon (Gentoo based). Setup right now: Sabayon Linux X ATI 5870 Catalyst 12.10 Firefox 10 & 16: 1080p ~12 FPS Chromium: 1080p ~40 FPS Opera (experimental WebGL support): ~30 FPS Maybe it is related to the graphics card driver, but then why does it work in the other browsers? What makes me wonder is if I type in about:support it says: GPU Accelerated Windows 0/1
Component: Untriaged → Canvas: WebGL
Product: Firefox → Core
This is because we're doing software compositing on Linux. This is bug 594876. You can experiment with accelerated layers on Linux by flipping the 'layers.acceleration.force-enabled', but it may cause non-trivial rendering artifacts.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
We are not doing software compositing on Linux/X11, but WebGL layers are read back into CPU memory before being uploaded again to the graphics system. Bug 594876 is the sensible solution. The only other solution I know would be to render WebGL into the drawable provided when making the context current.
Here is a WebGL app that locks up Firefox Nightly: http://sketchfab.com/n4ji3g10ba
OTOH i am able to play Team Fortress with decent performance on the same setup-
(In reply to Markus Unterwaditzer from comment #5) > Here is a WebGL app that locks up Firefox Nightly: > http://sketchfab.com/n4ji3g10ba Can you file a separate bug on this?
Flags: needinfo?(markus)
I found a bug specific to sketchfab at #916523.
Flags: needinfo?(markus)
You need to log in before you can comment on or make changes to this bug.