Rasimus Posted August 25, 2015 Share Posted August 25, 2015 I have exported scene from clara.io to babylon.jsand give me a 22353 code lines scene.it works, but its too slow.This is my code: BABYLON.SceneLoader.Load("mypath", "myscene", engine, function (newScene) { newScene.executeWhenReady(function () { newScene.activeCamera.attachControl(canvas); engine.runRenderLoop(function() { newScene.render(); }); }); }, function (progress) { });Do you know some method or something to make it faster ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 26, 2015 Share Posted August 26, 2015 Hello, without info about your scene, we cannot help you can you share the statistics produced by debug layer? Quote Link to comment Share on other sites More sharing options...
Rasimus Posted August 26, 2015 Author Share Posted August 26, 2015 Run my scene on Babylon sandbox because i canot run my code on playgroundi dont know if its because i export my scene from clara this are the stats: Babylon.js v2.2.0-alpha - 2 fps CountTotal meshes: 3201Total vertices: 71342Total materials: 2403Total textures: 0Active meshes: 2631Active indices: 192786Active bones: 0Active particles: 0Draw calls: 2631DurationMeshes selection: 156.49 msRender Targets: 0.01 msParticles: 0.01 msSprites: 0.00 msRender: 342.46 msFrame: 500.08 msPotential FPS: 2 ExtensionsStd derivatives: YesCompressed textures: YesHardware instances: YesTexture float: Yes32bits indices: YesCaps.Max textures units: 16Max textures size: 16384Max anisotropy: 16 InfoWebGL 1.0Unknown renderer Quote Link to comment Share on other sites More sharing options...
Rasimus Posted August 26, 2015 Author Share Posted August 26, 2015 Look: http://i.imgur.com/tZRwAHb.png http://i.imgur.com/r9yd5o9.png Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 27, 2015 Share Posted August 27, 2015 You have wayyyyy too much materials in your scene. As far that I can see, your scene looks like 7 set of similar meshes. Try to use the same materials for all similar meshes.Another way to improve your performance would be to merge several meshes.Good luck! gryff 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 27, 2015 Share Posted August 27, 2015 other option could be to use the sceneOptimizer: http://doc.babylonjs.com/tutorials/How_to_use_SceneOptimizer Quote Link to comment Share on other sites More sharing options...
Rasimus Posted August 27, 2015 Author Share Posted August 27, 2015 I will try that, thanks a lot. Quote Link to comment Share on other sites More sharing options...
davrous Posted August 28, 2015 Share Posted August 28, 2015 Yes, the scene optimizer should help you. You have far too much draw calls. You need to merge the objects. David gryff 1 Quote Link to comment Share on other sites More sharing options...
Rasimus Posted August 31, 2015 Author Share Posted August 31, 2015 Do you know how to merge the objects, on clara ?it suposed that all the objects are grouped, its the same that merge ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 31, 2015 Share Posted August 31, 2015 No, group and merger are not the same. You have to weld objects to a single object. I do not know clara, I therefore can not help you more.and you need to reduce the number of polygons of your objects to optimize your sene too.also use textures 512*512 instead of 1024*1024 Quote Link to comment Share on other sites More sharing options...
Rasimus Posted August 31, 2015 Author Share Posted August 31, 2015 Oooook ! ill try thatThanks 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.