Why does the same mesh use more than 1 draw call when duped a lot?

I have a rock model and logically it has a 1 draw call

but when i dupe it enough, it get more draw calls even though its still the same mesh??


I think it has something to do with LOD but im not sure so im writing this. Can anyone explain.

4 Likes

In Roblox studio, one mesh is equal to roughly one draw call. Adding another or duplicating the mesh usually adds another draw call, but not linearly because of batching.

According to the announcement Part Instancing, it says if you have 100 of the same mesh then they would be rendered in one draw call. I’m not 100 percent sure but I think that’s more of a best-case scenario and real performance can vary depending on other factors in the scene.

Are you sure there are no settings changed from rock to rock? Even small changes such as different materials can add draw calls.

1 Like

The only thing different is the position of rocks, everything else is exactly the same


but when testing deeper, i found out it added another draw call when there were 74 rocks and it added another one when there were 147 rocks



I will read that post that youve send and try to understand it more, i thought each different mesh would be a different draw call but its not the case

Rocks are from a obj file and they have SurfaceAppearance instance in them, but when i deleted them nothing changed

Identical meshes should be batched to reduce draw calls.

But I think there’s a limit to how many static meshes can be in a single batch so if you go past that limit then it might take 2 draw calls.

Not a huge deal though, computers and consoles can handle A LOT of draw calls.
Unless you’re optimizing a game for mobile phones (which I doubt judging by the style of the mesh), you don’t need to worry about draw calls that much.

(Just.. don’t have like 100,000 draw calls obviously, that’d be rather excessive even for more powerful computers.)

Try seeing what happens if you duplicate them all in place. I’m pretty sure instancing also depends on an invisible world cluster system, which means meshes in separate clusters aren’t batched together.

I digged deeper and it has something to do with the graphic mode. When set to Vulkan, on the 74 instances i had 2 draw calls, on 147 i had 3, on 220 4, thats new draw call each 73 instances. When Graphic mode was changed to Direct3D11, even at 2200 instances i had 1 draw call.

Maybe youre right thats this is a limit, but why does that limit exists?

1 Like

If I recall from what I know about graphics, the act of batching and collecting meshes together also comes with a slight processing cost, usually not that significant.

If you batch meshes together then it means ALL OF THEM need to be rendered, including all of the invisible and hidden meshes.
So to prevent the invisible and hidden meshes from rendering, I think the batches need to be constantly adjusted and updated based on what’s currently in view.

My guess is that different graphics APIs come with different trade-offs and different methods for batching and optimizing draw calls.

I’ve messed around in game engines like Unreal Engine before, which on average has a lot more draw calls than most other game engines.

But the draw calls are also not equal (some heavier than others), draw calls aren’t just for drawing geometry but also for updating properties and things like colors and shader settings or parameters.

Changing a part’s color theoretically should add 1 extra draw call or makes a draw call slightly heavier but just for a single frame where the object color changes, this I think is also why rapidly changing colors of many objects can lag because the CPU needs to update all of that information and send the new data to the GPU.

A lot of this is just my theories and a bit of guess work though based on memory so I encourage looking into it further and verifying it.

When a mesh is duplicated multiple times (at least I assume that is what OP infers…soo…) there is a expected behavior for Roblox to render these meshes as separate entities, which would result in multiple draw calls. Nonetheless, this leads to increased rendering overhead and potentially decrease performance.


What I feel can be a takeaway is how instancing may and can reduce the number of draw calls by reusing mesh data, it may not work always as expected, but instancing would rely on meshparts having the meshid and surface appearance. When you duplicate a mesh, and there are small differences in the properties(e.g: variations in texture coordinates/material properties) causes the engine to treat them as separate instances.


If you have multiple duplicated meshes which have distinctive material/texture properties, even if they’re identical, there will be more extra draw calls


Personal advice:

I advise the following

  • Combine Mesh Reuse: Where feasible, combine mesh parts that will be duplicated into a single shared part. This can improve instancing efficiency.

See here too:


Reference docs (if they may help);

I don’t know if it’s entirely true, but apparently the Roblox Engine has divided it’s entire map into invisible “Grids”.

So for example; if you have multiple identical meshes stored into the same Grid, the draw call will always stay at 1 only.

If you have these identical meshes stored in multiple Grids however (let’s say you duplicated them in 9 different Grids), the draw calls will be extended to +9…

Correct me if i’m wrong, i don’t really believe it either.