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

NEW
Unassigned

Status

()

Core
Graphics
4 years ago
3 years ago

People

(Reporter: Geoffrey D., Unassigned)

Tracking

({perf})

Trunk
x86_64
Windows 8
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
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.

Comment 1

4 years ago
Could you paste "Graphic" section of about:support ?
Flags: needinfo?(tyfoxteam)
(Reporter)

Comment 2

4 years ago
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)

Updated

4 years ago
Status: UNCONFIRMED → NEW
Component: Untriaged → Graphics
Ever confirmed: true
Product: Firefox → Core
Version: 33 Branch → Trunk
(Reporter)

Comment 3

4 years ago
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.
(Reporter)

Updated

4 years ago
Summary: JavaScript canvas performance is very bad when not in safe mode → JavaScript canvas performance is very bad with hardware acceleration ON

Comment 5

3 years ago
Still see this in a current nightly build?

Comment 6

3 years ago
I can still reproduce the slowness with enabled HWA in Nightly41.0a1 non-e10s.
(Reporter)

Comment 7

3 years ago
Seems to work for me in 41.0a2 (2015-07-05) e10s and non-e10s.

Might need confirmation on this.

Comment 8

3 years ago
I can still reproduce the super slowness with enabled HWA in Aurora41.0a2 & Nightly42.0a1 non-e10s/e10s.

Comment 9

3 years ago
Issue still exists for me on Aurora 41.0b4 when hardware acceleration is on.

Comment 10

3 years ago
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
You need to log in before you can comment on or make changes to this bug.