Closed Bug 1176046 Opened 9 years ago Closed 5 years ago

Extremely poor canvas performance on Ubuntu 14.04 (maybe other linuxes too)

Categories

(Core :: Graphics: CanvasWebGL, defect)

38 Branch
Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: vectoreight, Unassigned)

Details

(Keywords: perf, Whiteboard: gfx-noted)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150511103818

Steps to reproduce:

Possibly related to this bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=561361

But I have ubuntu 14.04 and am having very poor performance on Canvas. Test case is this demo from Microsoft Edge: http://dev.modern.ie/testdrive/demos/assassins/

Testing this in Google Chrome we see it runs very smoothly. In Firefox though it is very poor.
Here's a related stackoverflow topic: http://stackoverflow.com/questions/14486910/poor-canvas2d-performance-with-firefox-on-linux/16677102#16677102

Canvas used to be smooth back in Firefox 18
Component: Untriaged → Canvas: WebGL
OS: Unspecified → Linux
Product: Firefox → Core
Keywords: perf
Here's a simpler test case: https://installations.tigoenergy.com/base/main/summary?sysid=331

Click on that group of solar panels and move them, you'll see its very bad in Linux, but on Windows its smooth. Here's gif screncast of windows: http://i.imgur.com/FsTYa2O.gif
(In reply to Vick Eit from comment #1)
> Here's a related stackoverflow topic:
> http://stackoverflow.com/questions/14486910/poor-canvas2d-performance-with-
> firefox-on-linux/16677102#16677102

That's response is incorrect. Azure is a replacement for the thebes wrapper, not cairo.

(In reply to noitidart from comment #3)
> Here's a simpler test case

It's better to have only one test case per but because each test case can have a different problem which needs a different bug.

Going forward we should focus on the original test case from the bug reporter.

(In reply to Vick Eit from comment #0)
> 
> But I have ubuntu 14.04 and am having very poor performance on Canvas. Test
> case is this demo from Microsoft Edge:
> http://dev.modern.ie/testdrive/demos/assassins/

This demo is taking over 5 minutes to load on my machine. We're in the process of updating to GTK3 which should help us if this is a WebGL demo.
Whiteboard: gfx-noted
(In reply to Benoit Girard (:BenWa) from comment #4)
> (In reply to Vick Eit from comment #1)
> > Here's a related stackoverflow topic:
> > http://stackoverflow.com/questions/14486910/poor-canvas2d-performance-with-
> > firefox-on-linux/16677102#16677102
> 
> That's response is incorrect. Azure is a replacement for the thebes wrapper,
> not cairo.
> 
> (In reply to noitidart from comment #3)
> > Here's a simpler test case
> 
> It's better to have only one test case per but because each test case can
> have a different problem which needs a different bug.
> 
> Going forward we should focus on the original test case from the bug
> reporter.
> 
> (In reply to Vick Eit from comment #0)
> > 
> > But I have ubuntu 14.04 and am having very poor performance on Canvas. Test
> > case is this demo from Microsoft Edge:
> > http://dev.modern.ie/testdrive/demos/assassins/
> 
> This demo is taking over 5 minutes to load on my machine. We're in the
> process of updating to GTK3 which should help us if this is a WebGL demo.

Thanks Benoit, actually I dont think it is WebGL. Vick Eit is a person at my new job and that link to TigoEnergy is the original place we had canvas issues. We then tested other things and found that demo worked great in all browser on Linux except recent versions of Firefox. My friend booted an old version of Firefox it was 17, and the TigoEnergy canvas issues werent there.
According to the information text below the link to launch the game it does indeed use WebGL.  It loads quickly and performs well here with Firefox 39 on Ubuntu 14.04.2 with a 3.16.7-based kernel.

Can you post the output of glxinfo | grep OpenGL

Here's mine.

$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
My system loads the demo in ~2 minutes and runs smooth.

uname -r: 
4.0.7-300.fc22.x86_64

glxinfo:
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TAHITI
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.6.1 (git-6ff3ae8)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.6.1 (git-6ff3ae8)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.6.1 (git-6ff3ae8)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

It sounds like this ended up working for people.

Let me know if it's still a problem!

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.