Low performance of texImage2D with canvas2d and WebGL
Categories
(Core :: Graphics: CanvasWebGL, defect, P3)
Tracking
()
People
(Reporter: ivan.kuckir, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Keywords: perf, regression, testcase, Whiteboard: gfx-noted, [ft:conndevices], [webvr],)
Attachments
(2 files)
|
4.23 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.73 KB,
text/html
|
Details |
Comment 2•9 years ago
|
||
Updated•9 years ago
|
Comment 3•9 years ago
|
||
Updated•9 years ago
|
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Updated•9 years ago
|
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
| Reporter | ||
Comment 15•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
Updated•9 years ago
|
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
Comment 29•9 years ago
|
||
Comment 30•8 years ago
|
||
Updated•8 years ago
|
Comment 31•8 years ago
|
||
Comment 32•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 33•8 years ago
|
||
Updated•8 years ago
|
Comment 34•8 years ago
|
||
Updated•8 years ago
|
Comment 36•8 years ago
|
||
Comment 37•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 38•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 39•6 years ago
|
||
I am observing heavy lag with Firefox for webgl and webgl2 canvas in Linux, when the same demo has smooth performance on Chrome.
This affects pretty much all PixiJS webgl2 applications as well as manual webgl demos. I came across this bug when I wanted to report a new one. Can anyone with a better understanding of the related internals confirm whether or not this is the same issue?
Examples:
- https://webglsamples.org/aquarium/aquarium.html (
webgl)- Open the demo in Firefox, and increase the number of fish until performance is bad. Close the demo.
- Open the demo in Chrome with the same number of fish. Observe performant animation.
- https://pixijs.io/pixi-filters/tools/demo/ (
webgl2)- Firefox ~15 FPS, Chrome ~60 FPS
- http://tympanus.net/Development/RainEffect/ (
webgl)- Firefox ~5 FPS, Chrome ~25 FPS
Please note that everything goes smooth in a small window. The demos quickly become laggy in a maximalized/fullscreen window on a high resolution (retina) display.
Observed with system specs:
- OS: Linux Mint 19.1 Cinnamon (AKA Ubuntu 18.04.1 LTS) 4.15.0-50-generic x64
- Video: NVIDIA GK104 [GeForce GTX 660 Ti] Driver: Proprietary 396.54 from Driver Manager
- Monitor: DELL P2415Q 3840x2160
- Firefox: Firefox Quantum 67 x64
- Chrome: Chrome 76.0.3806.1 64-bit
Originally reported at https://github.com/pixijs/pixi.js/issues/5751
Comment 40•6 years ago
|
||
(In reply to Redsandro from comment #39)
I am observing heavy lag with Firefox for
webglandwebgl2canvas in Linux, when the same demo has smooth performance on Chrome.This affects pretty much all PixiJS
webgl2applications as well as manualwebgldemos. I came across this bug when I wanted to report a new one. Can anyone with a better understanding of the related internals confirm whether or not this is the same issue?Examples:
- https://webglsamples.org/aquarium/aquarium.html (
webgl)
- Open the demo in Firefox, and increase the number of fish until performance is bad. Close the demo.
- Open the demo in Chrome with the same number of fish. Observe performant animation.
- https://pixijs.io/pixi-filters/tools/demo/ (
webgl2)
- Firefox ~15 FPS, Chrome ~60 FPS
- http://tympanus.net/Development/RainEffect/ (
webgl)
- Firefox ~5 FPS, Chrome ~25 FPS
Please note that everything goes smooth in a small window. The demos quickly become laggy in a maximalized/fullscreen window on a high resolution (retina) display.
Observed with system specs:
- OS: Linux Mint 19.1 Cinnamon (AKA Ubuntu 18.04.1 LTS) 4.15.0-50-generic x64
- Video: NVIDIA GK104 [GeForce GTX 660 Ti] Driver: Proprietary 396.54 from Driver Manager
- Monitor: DELL P2415Q 3840x2160
- Firefox: Firefox Quantum 67 x64
- Chrome: Chrome 76.0.3806.1 64-bit
Originally reported at https://github.com/pixijs/pixi.js/issues/5751
This is bug 1010527.
Comment 41•6 years ago
|
||
This is bug 1010527.
Thank you. My search skills are existent yet unhoned. I will amend there.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 42•1 year ago
|
||
Hi,
first post here.
I do think this issue is still happening. You can very easily reproduce it via babylonjs https://playground.babylonjs.com/#5ZCGRM%234896
The firefox profiler points me to WebGLTexelConversion leading me to this issue.
There is already a forum post on babylonjs here: https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624
But it seems like they cannot do much from their end.
Test it out on chrome and firefox and you will see a great difference in fps. Especially increasing the resolution factor does not influence chrome as much as it does on firefox.
My use case is moving a canvas of a mapping library into babylonjs context. Another person mentioned the use of custom canvas element in a game. And I have also seen use cases on threejs.
Let me know if I should open a separate issue for this.
Best!
Comment 43•1 year ago
|
||
I believe it is still relevant. I can't dynamically upload large textures in WebGL without a lag. Runs smoothly in Chrome and Safari.
Comment 44•7 months ago
|
||
(In reply to martin from comment #42)
Hi,
first post here.
I do think this issue is still happening. You can very easily reproduce it via babylonjs https://playground.babylonjs.com/#5ZCGRM%234896
Latest profile
Nightly: https://share.firefox.dev/3R4a379
Description
•