Jump to content

Initialize multiple engine on Firefox (50% performance loss)


Dad72
 Share

Recommended Posts

Hello,

I just saw a 50% drop on firefox when we create multiple Babylon engine. On Chrome and Opera, I'm 60 FPS on my scene, but when I use Firefox I'm 30 FPS.

I use several engine because I have several tab for my editor (one for actors, one for animation, one for particles, one for the terrains ...) I have 8 engines to initialize. If I try to create only one engine for the terrain (I comment on the others) I go back to 60 FPS on Firefox.

In console Firefox I have :  

Quote

Error: WebGL warning: <SetDimensions>: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one.

I do not create 16 engines, but 8. I do not have this problem on Chrome and Opera. On Edge, I'm 2 FPS, (It's catastrophic)

My question is, what can I do? you will tell me to create a single engine for each canvas, but I understood that I had to create only 1 engine per canvas (that's what I do, but firefox handles it very badly )

Solutions ?

Link to comment
Share on other sites

This error is reported by Babylon for Firefox, but not in other browsers.

Error: WebGL warning: <SetDimensions>: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one.

Line :

this._gl = (canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
// GL
                if (!options.disableWebGL2Support) {
                    try {
                        this._gl = (canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
                        if (this._gl) {
                            this._webGLVersion = 2.0;
                            // Prevent weird browsers to lie :-)
                            if (!this._gl.deleteQuery) {
                                this._webGLVersion = 1.0;
                            }
                        }
                    }
                    catch (e) {
                        // Do nothing
                    }
                }

Console :

1201996324_2018-10-2619_04_25-Greenshot.thumb.jpg.f44e6272b017798a224f569e2d15f3bd.jpg

 

Link to comment
Share on other sites

In fact, this also happens when I create a single engine, but my FPS goes back to 60.

I'm not registered to open tickets and I do not know where it is and what to say and what should I provide?

Or does it find it? any ideas of how I report this bug? Thank you DK

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...