Dad72 Posted October 26, 2018 Share Posted October 26, 2018 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 ? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2018 Share Posted October 26, 2018 We are creating additional engines when you call Engine.IsSupported so perhaps you could remove this call? For performance, I highly suggest creating a ticket on Bugzilla for Firefox Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 26, 2018 Author Share Posted October 26, 2018 No, I do not use Engine.IsSupported, should I use this? I do not know how it goes the creation of ticket on bugzillla, I've never done, I'm not registered and I do not know what to explain in English correct Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 26, 2018 Author Share Posted October 26, 2018 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 : Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2018 Share Posted October 26, 2018 This is weird, if you create only 8 engines that you have 16 webgl contexts then... Can you open a ticket at Mozilla? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 26, 2018 Author Share Posted October 26, 2018 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 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 26, 2018 Author Share Posted October 26, 2018 Report here : https://bugzilla.mozilla.org/show_bug.cgi?id=1502463 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2018 Share Posted October 26, 2018 perfect! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.