Open
Bug 1224902
Opened 9 years ago
Updated 2 years ago
2D canvas API in open() window is excruciatingly slow (1fps vs 60fps normally)
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
NEW
People
(Reporter: evanw, Unassigned)
References
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
(deleted),
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.35 Safari/537.36
Steps to reproduce:
Open attached file in Firefox 42.0 on OS X 10.10.5. Move mouse around, observe nice 60fps framerate. Click the "Open in a new window button" to open the same code in a popup window. Move mouse around, observe excruciating 1fps framerate.
I discovered this when trying to make a playground for a programming language I've been developing: http://skew-lang.org/. This scenario works fine in Chrome but terribly in Firefox.
Comment 1•9 years ago
|
||
Wow.
Seth, are we erroneously throttling the refresh driver in the popup window?
Flags: needinfo?(seth)
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•9 years ago
|
||
Debugged this. This actually has the same cause as bug 1190093. The document appears to still be loading, we just can't see this in the ui because it is in a new window with no tabs and there is no ui to show loading then (seems like we should fix that). If you press escape when the new window document is focused you will stop the loading and the page will update at a reasonable fps.
But I observed a weird effect when doing this: the fps will be capped at 30 in the new window. If I go back to the original window it can do 60 fps. The new window still does 30 when I switch back to it again though.
Evan, I think you should be able to work around this issue temporarily by surrounding your document.write with document.open and document.close.
Flags: needinfo?(seth)
Reporter | ||
Comment 3•9 years ago
|
||
Yay, thanks for the workaround! Never would have figured that out myself. 1000x better.
Updated•9 years ago
|
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Comment 4•9 years ago
|
||
(In reply to Timothy Nikkel (:tn) from comment #2)
> Debugged this. This actually has the same cause as bug 1190093. The document
> appears to still be loading, we just can't see this in the ui because it is
> in a new window with no tabs and there is no ui to show loading then (seems
> like we should fix that). If you press escape when the new window document
> is focused you will stop the loading and the page will update at a
> reasonable fps.
>
> But I observed a weird effect when doing this: the fps will be capped at 30
> in the new window. If I go back to the original window it can do 60 fps. The
> new window still does 30 when I switch back to it again though.
>
> Evan, I think you should be able to work around this issue temporarily by
> surrounding your document.write with document.open and document.close.
JFYI, I don't have that 30fps problem after pressed "Esc".
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•