Baker Xiao Posted September 12, 2017 Share Posted September 12, 2017 Hello, We are wondering what's the best way to optimize a scene like this: * We have 10 clones of the same mesh * Each mesh bound to a separate instance of a skeleton so they can be animated separately * They all use the same material Right now we are seeing 10 draw calls from this scene. Can we reduce them to 1? Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 12, 2017 Share Posted September 12, 2017 Howdy, Since they are animated independently (I assume), 10 draw calls seem right. If they all move the same (like in this example - http://www.babylonjs.com/demos/instancedbones/), it can be reduced. Quote Link to comment Share on other sites More sharing options...
Baker Xiao Posted September 12, 2017 Author Share Posted September 12, 2017 6 minutes ago, RaananW said: Howdy, Since they are animated independently (I assume), 10 draw calls seem right. If they all move the same (like in this example - http://www.babylonjs.com/demos/instancedbones/), it can be reduced. Is there no way to take advantage of them all using the same material? Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 12, 2017 Share Posted September 12, 2017 Well, you are using the same memory allocation for the material, which does increase performance, but 10 meshes (clones, not instances, even with the same material) will still generate 10 draw calls. Quote Link to comment Share on other sites More sharing options...
Baker Xiao Posted September 12, 2017 Author Share Posted September 12, 2017 2 hours ago, RaananW said: Well, you are using the same memory allocation for the material, which does increase performance, but 10 meshes (clones, not instances, even with the same material) will still generate 10 draw calls. ah gotcha. thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 12, 2017 Share Posted September 12, 2017 And as they use the same material Babylon.js will cache it for you 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.