excelsior Posted May 13, 2016 Share Posted May 13, 2016 Hi, so first thing i'm new to this, 3d modelisation and babylon.js so i'm kinda of a huge noob, but anyway. I started to work on this demo http://www.babylonjs-playground.com/#8EUPP#1. It seems like i get very bad performance from firefox compared to chrome. Do you have an idea why ? you can try the demo on the playground or i hosted the demo on my website : www.fleurantmaxime.com Thx ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 13, 2016 Share Posted May 13, 2016 Hello I fixed your PG because there is no need to create an engine or a renderloop: http://www.babylonjs-playground.com/#8EUPP#2 Is it still bad in firefox? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted May 13, 2016 Share Posted May 13, 2016 Generally, firefox is quite slower than chrome, but it also depends on your pc setup and internet connection ofc. Benchmark tests, 2016. JetStream 1.1 Kraken JavaScript 1.1 Octane 2.0 HTML5 Compliance Higher is better Faster is better Higher is better “555” is perfect Chrome 50 134.31 1350.0ms 23812 521 Internet Explorer 11 91.035 2776.7ms 12300 343 Mozilla Firefox 46 118.13 1651.2ms 20913 478 Safari 9.1 145.61 1441.8ms 12514 410 Opera 31 126.83 1498.6ms 22568 520 Edge 162.34 1496.7ms 24096 453 Vivaldi 129.78 1495.0ms 22840 521 Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 14, 2016 Author Share Posted May 14, 2016 Thx deltakosh for fixing my PG, i think i understand what was wrong: It seems that when my canvas is set to width 100% in firefox when the page width is large and i use a 1440p screen it's slower, so if i fix the width of my canvas to something like 1000 i don't get performance issue. So my question now is is there a way to fix the resulution of the scene ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 15, 2016 Share Posted May 15, 2016 Resolution == canvas size. So set the size of your canvas to what you need. Quote Link to comment Share on other sites More sharing options...
eboo Posted May 19, 2016 Share Posted May 19, 2016 firefox is (in my case) realy slower than chrome i use a simple script to test my meshes (i add one if fps is bigger >59) chrome is able to load 170 meshes, firefox load about 60 and edge 140) here is the sample : https://www.jouer.org/adept/adept-pa-art1.html Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 19, 2016 Share Posted May 19, 2016 Can you double check that hardware acceleration is on? Quote Link to comment Share on other sites More sharing options...
eboo Posted May 19, 2016 Share Posted May 19, 2016 yes about:support give me "Rendu WebGL Google Inc. -- ANGLE (NVIDIA GeForce GTX 560 Ti Direct3D11 vs_5_0 ps_5_0)" Quote Link to comment Share on other sites More sharing options...
eboo Posted May 19, 2016 Share Posted May 19, 2016 here is my stupid stress test in a playground http://www.babylonjs-playground.com/#1GGSUU#0 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 19, 2016 Share Posted May 19, 2016 It runs pretty well on my Edge/Chrome Quote Link to comment Share on other sites More sharing options...
adam Posted May 19, 2016 Share Posted May 19, 2016 That's not a bad test. I moved the camera for a better view. http://www.babylonjs-playground.com/#1GGSUU#1 Quote Link to comment Share on other sites More sharing options...
adam Posted May 19, 2016 Share Posted May 19, 2016 Here is another version. http://www.babylonjs-playground.com/#1GGSUU#2 The added spheres are supposed to form a square, but instead are forming a circle. How can I display the spheres that are not visible? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 19, 2016 Share Posted May 19, 2016 In Ubuntu, FireFox comes standard. Performance suck (being kind), and I have a gtx 960. Chrome is much faster. For development though, you do not need to bother with a web server. Saves a lot of time sometimes. I very much prefer Firefox, because it sucks! You can easily simulate users with wimpy hardware. Chrome does not seem to let you sample the microphone, as well. At least, I only need the microphone on a voice sync development page. Does Edge allow microphone sampling? Quote Link to comment Share on other sites More sharing options...
adam Posted May 19, 2016 Share Posted May 19, 2016 I just found the LOD line. http://www.babylonjs-playground.com/#1GGSUU#4 Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 19, 2016 Author Share Posted May 19, 2016 i think that i get better performance with ie 11 than with firefox... anyway yes it's actualy a good idea to develop on firefox to emulate bad hardware. I just sold my gtx970 because of the new nvidia card coming out so i'm actualy developing on the intel hd graphic, but when i will get my new card how can i continu rendering using the hd graphic and not my discret gpu ? Quote Link to comment Share on other sites More sharing options...
adam Posted May 19, 2016 Share Posted May 19, 2016 2 hours ago, excelsior said: but when i will get my new card how can i continu rendering using the hd graphic and not my discret gpu ? This should work even though it is for Lenovo laptops: https://support.lenovo.com/us/en/documents/ht078706 Quote Link to comment Share on other sites More sharing options...
eboo Posted May 20, 2016 Share Posted May 20, 2016 BUG ! or look like http://www.babylonjs-playground.com/#1GGSUU#8 wait a cycle (after 300 balls... ) i was playing with dispose and... if you dispose a "LODed mesh"... mesh isn't disposed LOD is "inverted" and mesh is visible when camera is far. if you dispose a shadowed mesh... mesh is not realy disposed Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted May 20, 2016 Share Posted May 20, 2016 @eboo Something in your code must be bugging it http://www.babylonjs-playground.com/#1GGSUU#9 wait 5 sec^ Or it could have something to do with instancing^^ Quote Link to comment Share on other sites More sharing options...
adam Posted May 20, 2016 Share Posted May 20, 2016 @aWeirdo That is not an InstanceMesh though. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted May 20, 2016 Share Posted May 20, 2016 yeah, literally just thought about it being instanced and corrected my response Quote Link to comment Share on other sites More sharing options...
adam Posted May 20, 2016 Share Posted May 20, 2016 http://www.babylonjs-playground.com/#1GGSUU#11 Quote Link to comment Share on other sites More sharing options...
eboo Posted May 20, 2016 Share Posted May 20, 2016 and : http://www.babylonjs-playground.com/#1GGSUU#13 Quote Link to comment Share on other sites More sharing options...
adam Posted May 20, 2016 Share Posted May 20, 2016 You need to remove the instance from the shadowmap renderlist. http://www.babylonjs-playground.com/#1GGSUU#14 Quote Link to comment Share on other sites More sharing options...
eboo Posted May 20, 2016 Share Posted May 20, 2016 shadowGenerator.getShadowMap().renderList.pop(); ok thanks http://www.babylonjs-playground.com/#1GGSUU#15 but... it will be difficult is this is not the last one 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.