2.9 C
New York
Sunday, December 14, 2025

Draw calls inside SRP Batch


I observed after I made a minimap for my second technique recreation that there was vital lag – solely to comprehend that each single hex is getting its personal draw name/batch. I have been messing round for a few day making an attempt to determine this out; making an attempt completely different batching sorts, gpu instancing, and many others

Successfully it appears that evidently my second objects meet the SRP batch requirement to fall into the identical batch, nonetheless are requiring completely different draw calls (that means I am not likely getting the profit.) Studying one other submit on right here possibly which means that I haven’t got something to do with reference to batching, and my lag is a results of needing to (as an alternative) optimize the minimap scenario. That stated, as a result of I can get them to a single draw name with Sprites-Default I assume that I can ultimately determine how to try this with extra attention-grabbing shaders.

As a take a look at I’ve a quite simple setup: a bunch of hexes with a easy (shadergraph) shader. I can get them to batch with Sprites-Default and have a single draw name, however for the lifetime of me cannot get them to for any materials. The hexes don’t have any scripts hooked up to them nor are they touched programmatically, nor are they utilizing (occasion) vs simply .

Observe: I am utilizing Sprites/Sprite Renderers. I did see the associated 3D query from a couple of years in the past however that resolution regards merging meshes I imagine, and I am hoping to not generate or merge meshes right here. The linked submit additionally appears to be speaking of meshes relatively than Sprites.

Any help can be drastically appreciated, thanks[

EDIT: I have noticed that if I use Sprite-Lit-Default that I get the same issue. I suspect it has to do with sprites that have normals and/or interact with lighting data.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles