Open
Bug 1347005
Opened 8 years ago
Updated 2 years ago
Reuse ANGLE shader compilers
Categories
(Core :: Graphics: CanvasWebGL, enhancement, P3)
Core
Graphics: CanvasWebGL
Tracking
()
NEW
People
(Reporter: jgilbert, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
We're supposed to be reusing them, and doing so should help both memory usage and shader compilation performance.
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
This patch looks good to me overall.
However, the shader building time is slower by about 0.1sec slower on EpicZenGarden demo after this patch applied, is that normal?
Here is the shader build time I ran on Firefox Nightly, 3 times for each.
w/o patch:
8.03sec
8.02sec
8.03sec
w/ patch
8.15sec
8.18sec
8.18sec
Flags: needinfo?(jgilbert)
Updated•8 years ago
|
Blocks: webgl-perf-parity
Reporter | ||
Comment 3•8 years ago
|
||
(In reply to Michael Leu[:Lenzak](UTC+8) from comment #2)
> This patch looks good to me overall.
>
> However, the shader building time is slower by about 0.1sec slower on
> EpicZenGarden demo after this patch applied, is that normal?
>
> Here is the shader build time I ran on Firefox Nightly, 3 times for each.
>
> w/o patch:
> 8.03sec
> 8.02sec
> 8.03sec
>
> w/ patch
> 8.15sec
> 8.18sec
> 8.18sec
Hmm, ~2% regression based on these numbers. Still, let's take this for simplification, at least.
Flags: needinfo?(jgilbert) → needinfo?(cleu)
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8848122 [details]
Bug 1347005 - Reuse ANGLE compilers and simplify shader validation -
https://reviewboard.mozilla.org/r/121096/#review123798
::: dom/canvas/WebGLProgram.h:160
(Diff revision 1)
> bool UseProgram() const;
> void ValidateProgram() const;
>
> ////////////////
>
> - bool FindAttribUserNameByMappedName(const nsACString& mappedName,
> + RefPtr<const webgl::LinkedProgramInfo> GatherLinkInfo() const;
Maybe using already_AddRefed<> as return type is better?
Attachment #8848122 -
Flags: review?(cleu) → review+
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8848122 [details]
Bug 1347005 - Reuse ANGLE compilers and simplify shader validation -
https://reviewboard.mozilla.org/r/121096/#review124264
I think it is slightly slower because of the intensive string compare jobs, but the code does look simpler.
Updated•8 years ago
|
Flags: needinfo?(cleu)
Reporter | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8848122 [details]
Bug 1347005 - Reuse ANGLE compilers and simplify shader validation -
https://reviewboard.mozilla.org/r/121096/#review123798
> Maybe using already_AddRefed<> as return type is better?
already_AddRefed is deprecated now that RefPtr has a move constructor. I'll file a bug to make this more clear.
Comment 7•7 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Reporter | ||
Updated•7 years ago
|
Assignee: jgilbert → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•