Disable batching tag

Node-based Shader Editor
Post Reply
AndrewMyriad
Posts: 9
Joined: Wed Aug 08, 2018 1:57 am

Disable batching tag

Post by AndrewMyriad »

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.77 KiB) Viewed 2859 times
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Disable batching tag

Post by Amplify_Borba »

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!
AndrewMyriad
Posts: 9
Joined: Wed Aug 08, 2018 1:57 am

Re: Disable batching tag

Post by AndrewMyriad »

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.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Disable batching tag

Post by Ricardo Teixeira »

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!
Post Reply