Disable batching tag

Node-based Shader Editor

Disable batching tag

Postby AndrewMyriad » Fri Sep 28, 2018 8:17 am

Hi there,

I'm trying to learn a bit about optimisation and getting to grips with the Unity profiler.

One thing I came across today was a bunch of draw calls to objects in the scene. I noticed a lot of them have a comment in the profiler that says "The shader explicitly disables batching with the 'DisableBatching' tag", but the shader (made in ASE) doesn't have that tag set (see screenshot).

Do certain settings in the shader set this to be true, but... not change the bool or something? I'm not entirely sure how this works!

Any feedback would be great.

Thanks!
Attachments
disabledbatching.JPG
disabledbatching.JPG (46.88 KiB) Viewed 1887 times
AndrewMyriad
 
Posts: 9
Joined: Wed Aug 08, 2018 1:57 am

Re: Disable batching tag

Postby Amplify_Borba » Fri Sep 28, 2018 10:30 am

Hello Andrew, thank you for getting in touch!

In order to use the Shaderlab's SubShader Tags that are not exposed in our editor, you'll need to add them in the Output Node's parameters, more specifically within the 'Custom SubShader Tags' section.

Please refer to the image below:

Image

Please let me know if this helps, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Disable batching tag

Postby AndrewMyriad » Sat Sep 29, 2018 12:34 am

Hi, thanks for the reply!

Wouldn't DisableBatching be set to false by default? The example I posted in the screenshot had Unity profiler telling me that batching was disabled by the shader, but I didn't set any custom tags anywhere.
AndrewMyriad
 
Posts: 9
Joined: Wed Aug 08, 2018 1:57 am

Re: Disable batching tag

Postby Ricardo Teixeira » Mon Oct 01, 2018 10:28 am

AndrewMyriad wrote:Hi, thanks for the reply!
Wouldn't DisableBatching be set to false by default? The example I posted in the screenshot had Unity profiler telling me that batching was disabled by the shader, but I didn't set any custom tags anywhere.


Hey there,

It should be ON by default but certain configurations could break batching, so to speak. Can you share the shader for further examination?

Additional information, here!

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 21 guests

cron