Jump to content

Help! Babylon scene too slow


Rasimus
 Share

Recommended Posts

I have exported scene from clara.io to babylon.js

and 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 ?

Link to comment
Share on other sites

Run my scene on Babylon sandbox because i canot run my code on playground

i dont know if its because i export my scene from clara

 

this are the stats:

 

Babylon.js v2.2.0-alpha - 2 fps
 

Count
Total meshes: 3201
Total vertices: 71342
Total materials: 2403
Total textures: 0
Active meshes: 2631
Active indices: 192786
Active bones: 0
Active particles: 0
Draw calls: 2631

Duration
Meshes selection: 156.49 ms
Render Targets: 0.01 ms
Particles: 0.01 ms
Sprites: 0.00 ms

Render: 342.46 ms
Frame: 500.08 ms
Potential FPS: 2
 
Extensions
Std derivatives: Yes
Compressed textures: Yes
Hardware instances: Yes
Texture float: Yes
32bits indices: Yes
Caps.
Max textures units: 16
Max textures size: 16384
Max anisotropy: 16

 

Info
WebGL 1.0
Unknown renderer

Link to comment
Share on other sites

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
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...