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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.