Closed
Bug 743753
Opened 13 years ago
Closed 13 years ago
Always generate WebGL warnings (remove webgl.verbose pref) and other related improvements
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: bjacob, Assigned: bjacob)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: webgl-next)
Attachments
(4 files)
3.77 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
19.29 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
25.43 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
31.97 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
The reason why WebGL warnings are disabled by default (have to flip webgl.verbose pref) is that the last time I checked (1 year ago), pages generating many WebGL warnings could be considerably slowed down by them. It seemed that the cost of generating a JS warning was very high. Two factors could eventually allow us to reconsider that: - if JS warnings become cheaper to generate (profile it!) - if most WebGL pages no longer generate many warnings (the worst offenders were pages relying on arbitrary attrib locations instead of calling {bind,get}AttribLocation.
Comment 1•13 years ago
|
||
If you use the nsContentUtils warning APIs, combined with the WarnOnce stuff on nsIDocument, assuming that's desirable here, then you could vastly reduce the number of warnings generated....
Assignee | ||
Updated•13 years ago
|
Summary: Always generate WebGL warnings (remove webgl.verbose pref) → Always generate WebGL warnings (remove webgl.verbose pref) and other related improvements
Assignee | ||
Comment 3•13 years ago
|
||
The problem with ReportToConsole is that it wants a localized string. WebGL warnings aren't currently localized and while that might be a good idea, I don't want to block this on that.
Assignee | ||
Comment 4•13 years ago
|
||
Do not generate more than N (where N=32 currently) warnings per WebGL context. + informative extra warning when the Nth warning is generated.
Attachment #626153 -
Flags: review?(vladimir)
Assignee | ||
Updated•13 years ago
|
Attachment #626153 -
Attachment description: limit the number of warnings per WebGL context → 1: limit the number of warnings per WebGL context
Assignee | ||
Comment 5•13 years ago
|
||
With patch 1, this pref isn't useful enough anymore to justify its existence.
Attachment #626157 -
Flags: review?(vladimir)
Assignee | ||
Comment 6•13 years ago
|
||
This name matches more closely what this does and the 'severity' of these messages.
Attachment #626158 -
Flags: review?(vladimir)
Assignee | ||
Comment 7•13 years ago
|
||
Mostly a plain regex change. Some users reported they were puzzled by inconsistent case like TexImage2D vs texImage2D in WebGL warnings.
Attachment #626162 -
Flags: review?(vladimir)
Attachment #626153 -
Flags: review?(vladimir) → review+
Attachment #626157 -
Flags: review?(vladimir) → review+
Attachment #626158 -
Flags: review?(vladimir) → review+
Attachment #626162 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 8•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/69423dd75eb6 http://hg.mozilla.org/integration/mozilla-inbound/rev/6ac4c324163e http://hg.mozilla.org/integration/mozilla-inbound/rev/b0dc5e163739 http://hg.mozilla.org/integration/mozilla-inbound/rev/434efc02a33b
Assignee: nobody → bjacob
Target Milestone: --- → mozilla15
Comment 9•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/69423dd75eb6 https://hg.mozilla.org/mozilla-central/rev/6ac4c324163e https://hg.mozilla.org/mozilla-central/rev/b0dc5e163739 https://hg.mozilla.org/mozilla-central/rev/434efc02a33b
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•