# Performance of updating Dynamic Texture on Firefox

**URL:** <https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624>\
**Category:** Questions\
**Created:** [January 29, 2024, 9:32am UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624 "2024-01-29T09:32:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennemark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dennemark/32/10745_2.png) [@dennemark](https://forum.babylonjs.com/u/dennemark)\
**Post date:** [January 29, 2024, 9:32am UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/1 "2024-01-29T09:32:47Z")

</div>

Hi,  
I just noticed, that updating of a dynamic texture drops the framerate in firefox browser (122) to 20fps on my notebook, while chrome stays at 60fps.  
Here is a simple playground:

> **[Babylon.js Playground](https://playground.babylonjs.com/#5ZCGRM%234896)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

If you do not see any difference, please increase the resolution.

Is there any way babylon could improve the performance on firefox?

Here a screenshot of firefox profiler with preset “Graphics” - unfortunately in german:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/c/0c169718da1608c4a77022434cece0ea29538529.jpeg)

Maybe related? [https://bugzilla.mozilla.org/show\_bug.cgi?id=1246410](https://bugzilla.mozilla.org/show_bug.cgi?id=1246410)  
[1878064 - Low performance on WebGLTexelConversion compared to other browsers.](https://bugzilla.mozilla.org/show_bug.cgi?id=1878064)

And if it is related: [Firefox Nightly: Error: WebGL: texImage2D: Chosen format/type incured an expensive reformat: 0x1908/0x1401 · Issue #9109 · mrdoob/three.js · GitHub](https://github.com/mrdoob/three.js/issues/9109)

If we cannot find a solution through babylonjs, i am going to forward it to mozillas issues.

Kind regards!

---

<div class="post-metadata">

**Author:** ![mise](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mise/32/37506_2.png) [@mise](https://forum.babylonjs.com/u/mise)\
**Post date:** [January 29, 2024, 9:56am UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/2 "2024-01-29T09:56:51Z")

</div>

Yes, I can affirm this is way slower on Firefox, very interesting! I always thought Firefox was just slow, but this might explain why, my game uses a lot of dynamic textures…

Thanks for bringing this up!

(edit: for me this PG is capped on chrome at 144 fps and 25 fps on FF!)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 29, 2024, 11:13am UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/3 "2024-01-29T11:13:36Z")

</div>

I get the same result. I tried a number of things (change the `premultipliedAlpha` value when creating the engine, change the texture format / the invertY value, …), but nothing worked. I don’t get any error/warning messages in the console, so it’s hard to know what the problem is…

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 29, 2024, 9:23pm UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/4 "2024-01-29T21:23:27Z")

</div>

Could you raise the issue with Mozilla, it definitely looks like they broke smthg ?

---

<div class="post-metadata">

**Author:** ![dennemark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dennemark/32/10745_2.png) [@dennemark](https://forum.babylonjs.com/u/dennemark)\
**Post date:** [January 29, 2024, 9:54pm UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/5 "2024-01-29T21:54:36Z")

</div>

Replied in the mentioned issue on bugzilla. Hope it is the right place. 8 year old ticket 😕

---

<div class="post-metadata">

**Author:** ![mise](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mise/32/37506_2.png) [@mise](https://forum.babylonjs.com/u/mise)\
**Post date:** [February 6, 2024, 9:25am UTC](https://forum.babylonjs.com/t/performance-of-updating-dynamic-texture-on-firefox/47624/6 "2024-02-06T09:25:53Z")

</div>

not sure if this is true for Firefox, but for Chrome you can download all old versions so you can check if a version from 1-2 years ago already has this issue. If it’s a newer problem it is much easier to report.

Me, I just recommend all my players to not use Firefox for games 😕 (and on my landing page I recommend Chrome, sad as this is)
