Jump to content

Draw calls of submeshes


Recommended Posts

Hi, three days ago imported scene from bledner from my designer. It is new map - town. In PG i put only some meshes for show my problem. 


Let's check for draw calls, you can see 9 draw calls for mesh Ivy.002 - I think this is related to submeshes. is it any way to optimize that to reduce draw calls? Actually we have 200-250 draw calls on 120 meshes (without instances). I think this number is to big.




Link to comment
Share on other sites

Baking in Blender of all of the materials of a mesh into a single set textures, then assigning those as the only material is probably the only way.  The reason for sub-meshes is to handle multiple materials on a single mesh.  A material is essentially a shader pair.  While a Fragment shader can handle more than one texture at a time, this is used in BJS for the different types of textures, eg. diffuse & bump.

This kind of means you need to have 2 .blends & and is a pain if you want to make changes.  You have one option for sure.  That is wait till you are ready to deploy before baking.  More draw calls during dev is probably acceptable.

An unsupported option is turn on the UI to allow the forcing baking during export by un-commenting this line.  I experimented with this, but never turned it on for the general public.  This has known issues with materials using alpha.  You are on your own if you try this.  Good luck.

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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...