Closed
Bug 977083
Opened 11 years ago
Closed 11 years ago
7.6% of total frametime spent in js::SecurityWrapper::~SecurityWrapper
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jujjyl, Unassigned)
Details
(Whiteboard: [games] webgl-perf)
Attachments
(1 file)
|
740.44 KB,
image/png
|
Details |
Profiling a game running on an Emscripten-compiled GLES2 renderer, after applying Dan Glastonbury's patch from https://bugzilla.mozilla.org/show_bug.cgi?id=973625 , I am seeing about 7.6% of total frametime being spent in a destructor of js::SecurityWrapper object. This is the single largest time spender in the profile. See the attached profile for an illustration.
It seems that all(?) GL function calls hit this. Is this something that could be optimized out, or something that is fundamentally critical for WebGL safety and unavoidable?
| Reporter | ||
Updated•11 years ago
|
Whiteboard: [games] webgl-perf
Comment 1•11 years ago
|
||
I think this might actually be relatively good news, if this is now our biggest bottleneck.
This isn't WebGL per se, but sounds like the something in the DOM bindings. I'm not familiar with it. bz or efaust would know more. Let's try efaust first.
Flags: needinfo?(efaustbmo)
Comment 2•11 years ago
|
||
This makes no sense to me. I was under the impression that the wrappers should not have relevant destructors.
Bobby, does this make any sense to you?
Flags: needinfo?(efaustbmo) → needinfo?(bobbyholley)
Comment 3•11 years ago
|
||
Yeah, they're all singletons. I think the profile is wrong.
Flags: needinfo?(bobbyholley)
| Reporter | ||
Comment 4•11 years ago
|
||
Thanks, let me close this issue at the moment, since the recent profiles we have been doing have shown different data. I'll reopen the issue if we find this show up again on profiles on the new Flame reference devices.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•