Jump to content

Multiple Vertices and great perf ?


Nastro
 Share

Recommended Posts

Hi Everyone !

I have a new question for you :)

Actually i need to create a lot of vertices like this : http://www.babylonjs-playground.com/#1NYPJD

And i need to have the most fps is possible :D

I check a little "Solid Particle System" but i don't know if it's for me.

The most important is i need to select all object. All object are unique. So the merge is not a possibility :/

Any ideas ?

Thanks a lot

Link to comment
Share on other sites

ok, I guess I understand what happen in your PG http://www.babylonjs-playground.com/#1NYPJD#1

Have a look at the line 117 : you call mergeMeshes in a loop, so it creates many many meshes... so your FPS drop

You might construct all your 164 meshes, populate an array with them, and finally only call once mergeMeshes() to get a single mesh.

 

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