Open
Bug 994122
Opened 11 years ago
Updated 3 years ago
GPU acceleration makes canvas game perfs worse
Categories
(Core :: Graphics, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: stifu, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Steps to reproduce:
Sorry if this is a duplicate, but I couldn't find a similar bug report.
I'm working on a little JS game (using Cocos 2D HTML5).
URL: http://stifu.fr/cc/Whip-A-Wimp/
(Sources: https://code.google.com/p/whip-a-wimp/)
To reproduce the problem, run the game with Firefox with GPU acceleration enabled.
I could confirm this problem on 2 different computers running on Windows, with different graphics card (one ATI, one Nvidia).
Actual results:
The game is slow. It's much faster without GPU acceleration (I toggled the about:config gfx.direct2d.disabled flag to check that). It's the other way around in Chrome: slow without GPU, fast with it.
Also, there are some visual glitches (interpolation rounding related, due to fullscreen mode). See: http://www.cocos2d-x.org/attachments/3489/cocos_glitch.png, more info: http://www.cocos2d-x.org/forums/19/topics/43863
These visual glitches go away when disabling GPU acceleration. (Not sure if both bugs are related, let me know if you want me to report the second one separarely.)
Expected results:
Better (or at least same) performances than without GPU acceleration. Also no visual glitches or differences, compared to with no GPU acceleration.
![]() |
||
Updated•11 years ago
|
QA Whiteboard: [bugday-20140414]
Component: Untriaged → Graphics
Product: Firefox → Core
Comment 1•11 years ago
|
||
A good way to see what is going on is to collect a profile. With the gecko profiler addon: https://github.com/bgirard/Gecko-Profiler-Addon/blob/master/geckoprofiler.xpi?raw=true
once the addon is installed you can start a profile with ctrl+shift+1 and analyze it with ctrl+shift+2. in the analyse page there is a share button which will let you show us how much time is spent on what parts of the code.
Flags: needinfo?(stifu)
Reporter | ||
Comment 2•11 years ago
|
||
Hi Nicolas,
Thanks for your answer. I don't really know what I'm doing, but I tried: http://people.mozilla.org/~bgirard/cleopatra/#report=74f1ef6b86aa0e01ca2339663b7850f10d2861bd
Only over a few seconds.
By the way, this is with an ATI Radeon HD 3450.
Flags: needinfo?(stifu)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•