AndyFenwick / FenceLayout

Fence Layout tool for Unity
http://www.polygonpi.com
MIT License
23 stars 3 forks source link

High draw calls #3

Open JackkFi5h opened 3 years ago

JackkFi5h commented 3 years ago

Firstly want to say I love this tool, it makes altering changes in design very easy. However, I'm running into a problem. I am using about 5 difference fence objects, totaling about 500 individual fence assets (each with 1 material marked as GPU instanced in their settings) as well as all objects being static (for static batching) yet the draw calls are around 500 for these fences despite all using the same prefab. They have low poly count and are using the shear modifier so I am wondering if this is a limitation or if I'm missing something obvious, any help would be greatly appreciated!

AndyFenwick commented 3 years ago

Hi, glad you find it useful! I don't know why it wouldn't be batching - all the tool does is place prefabs, it doesn't modify them in any way. Maybe Unity doesn't like something about the transform stack to achieve the shear, although I wouldn't have thought it would be a problem as it all boils down to a single transform in the end. I'm afraid I don't really have any time to look into it at the moment either, sorry! But I'll try to have a play at some point when time allows.