Tyrahell Posted July 25, 2014 Author Share Posted July 25, 2014 Well, well, well, after two days of scripting to dump my geometry in the .babylon file format, here is the result : www.strains.fr/import_bridge.html 60FPS ! Now, time to increase complexity Dad72, Gryff and DeltaKosh, thanks a lot for your support ! ++Tyrahell Quote Link to comment Share on other sites More sharing options...
mangualmanuel Posted January 8, 2015 Share Posted January 8, 2015 I know I came in a bit late into this post but I hope I can be read. I have the exact same issue happening to my game right now: it lags horribly! I tried everything you guys posted from octrees, determining the PC hardware and even checking out the latest version of babylon.js but to no avail. Is there something else that I can do where I might fix my performance issue? Many thanks in advance! Quote Link to comment Share on other sites More sharing options...
Temechon Posted January 8, 2015 Share Posted January 8, 2015 I answered to your topic here http://www.html5gamedevs.com/topic/11587-improving-performance-in-my-game/ Quote Link to comment Share on other sites More sharing options...
kevinImperial Posted September 5, 2016 Share Posted September 5, 2016 Hi all, I am relatively new to Babylon.js, and try to display a very large amount of spheres (around 100 000). I already use instances to create each sphere, and while the display actually works, interacting with the scene is close to impossible. For this test the camera is an ArcRotate one, but the actual code will use an UniversalCamera with controls with arrows and the mouse. Currently the engine can handle the mouse wheel input, but no longer the mousedown. "Handling of 'mousewheel' input event was delayed for 455 ms due to main thread beinmethod g busy. Consider marking event handler as 'passive' to make the page more responive." I put simple colored material on meshes to distinguish some features, but except for that, I do nothing special. Are there some solutions to reach this very high number of meshes (maybe switch to sprites facing the camera ?) or am I asking too much of Babylon.js ? My code is fairly dense, but if it helps for understanding, I could produce a simpler version of it in a playground. Any tip or method is most welcome Cheers, Kevin Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 6, 2016 Share Posted September 6, 2016 I really need to learn about octrees does anyone have any good resources on this topic? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 6, 2016 Share Posted September 6, 2016 There is a tutorial on Octree: http://doc.babylonjs.com/tutorials/Optimizing_Your_Scene_with_Octrees and the source code of the demo: http://www.babylonjs.com/Demos/Octree/octree.js You just need this to create an octree on scene. var octree = scene.createOrUpdateSelectionOctree(); If you create of objects on the fly, you must call this line again. If your scene is created in advance, simply call after the scene has been created completely. 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.