Sign in to follow this  
TomaszFurca

Hightlight layer produce a lot of draw calls

Recommended Posts

Pinging @Sebavan 

But I must admit that I see no problem as the highlight layer needs to render all meshes in the scene to make sure we compute the correct occlusion so it needs to render all meshes to get the correct depth.

You can forcefully deactivate some:

https://www.babylonjs-playground.com/#1KUJ0A#146 (see line #39 and 45)

 

Share this post


Link to post
Share on other sites

Looks all normal to me to need to render all the element as occluder or highlighter but the in use shader is pretty sheep and it is to a smaller rtt so is is usually ok on small scenes. On bigger scenes it might be nice to exclude every part which is neither emitter nor occluder to boost perf.

 

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.