Open Bug 1087827 Opened 10 years ago Updated 8 months ago

[Azure] JavaScript canvas performance is very bad with hardware acceleration ON

Categories

(Core :: Graphics, defect)

x86_64
Windows 8
defect

Tracking

()

People

(Reporter: geo.demoulin, Unassigned)

Details

(Keywords: perf)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141011015303

Steps to reproduce:

1. Go to http://soulwire.github.io/sketch.js/examples/particles.html
2. Move your mouse and notice it is running very slow
3. Start Firefox in safe mode and repeat
4. Notice it is now fluid


Actual results:

There is a difference of performance between normal mode and safe mode, which shouldn't happen.

This has also been tested on a new (blank) profile and on a different computer.
Chrome behaves properly.


Expected results:

No difference (or at least a smaller one) between normal mode and safe mode.
Could you paste "Graphic" section of about:support ?
Flags: needinfo?(tyfoxteam)
Hi,

here you go:

Graphics
Adapter Description	NVIDIA GeForce 210
Adapter Drivers	nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Adapter RAM	1024
ClearType Parameters	D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ]
Device ID	0x0a65
Direct2D Enabled	true
DirectWrite Enabled	true (6.2.9200.16581)
Driver Date	7-2-2014
Driver Version	9.18.13.4052
GPU #2 Active	false
GPU Accelerated Windows	1/1 Direct3D 11 (OMTC)
Vendor ID	0x10de
WebGL Renderer	Google Inc. -- ANGLE (NVIDIA GeForce 210 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote	true
AzureCanvasBackend	direct2d
AzureContentBackend	direct2d
AzureFallbackCanvasBackend	cairo
AzureSkiaAccelerated	0
Flags: needinfo?(tyfoxteam)
Status: UNCONFIRMED → NEW
Component: Untriaged → Graphics
Ever confirmed: true
Product: Firefox → Core
Version: 33 Branch → Trunk
Disabling hardware acceleration (setting gfx.direct2d.disabled to true in about:config) seems to "solve" the problem.

Seems that hardware acceleration is plying up here.
Summary: JavaScript canvas performance is very bad when not in safe mode → JavaScript canvas performance is very bad with hardware acceleration ON
Still see this in a current nightly build?
I can still reproduce the slowness with enabled HWA in Nightly41.0a1 non-e10s.
Seems to work for me in 41.0a2 (2015-07-05) e10s and non-e10s.

Might need confirmation on this.
I can still reproduce the super slowness with enabled HWA in Aurora41.0a2 & Nightly42.0a1 non-e10s/e10s.
Issue still exists for me on Aurora 41.0b4 when hardware acceleration is on.
Setting gfx.canvas.azure.backends = skia,cairo fixes the slowness
Summary: JavaScript canvas performance is very bad with hardware acceleration ON → [Azure] JavaScript canvas performance is very bad with hardware acceleration ON
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.