How to reduce my draw calls greatly?
I'm currently building up a large construction project inside the engine, and I'm coming across issues with my draw calls. The models themselves come from Autodesk Inventor as individual pieces, I then created my game models bake etc. and into engine just fine, with all my LODs working fine the total rendering tris is always sub 100k, but as this is a huuuuge structure , there's over 16000 meshs!
I've broken down the structure into modular chunks, compiling section inside blueprints, then placing those around, but it still seems that even those models inside are still counting as 1 drawcalls? is there a method to combine all those meshes maybe to drastically reduce my calls!?
Any help would be greatly appreciated! I'll add some pics shortly too!
Hey Bailey -
So I finally have been able to create a significant draw call difference for you to try, It is using instancing, but you will not have to code anything in blueprint just work in the component section. Create a new blueprint actor-based as you have been doing. Instead of adding your static meshes directly into the blueprint, go to the Components Window pull down and add Instanced Static Mesh. In the content browser, select the mesh you want to instance then place it in the Static Mesh area of the details panel for the newly created instanced static mesh. You can now from the Instances area of the details panel add as many of that particular type and it will be treated as one draw call. Important note here, all instances of that mesh will have to have the same material, but it looks like you have that anyway. Each Instance can be located unique anywhere through the Instances area of the details panel Location, Rotation, Scale sections. So for the image you originally shared with me, the draw call would go from many down to just 5.
Here are some images to demonstrate what I am talking about:
Let me know how this turns out I would love to see the new draw call information when you get it all put together.
answered May 27 '14 at 01:34 PM
Lovecraft_K ♦♦ STAFF
Yeah they are set inside the static mesh editor, all seems to be working fine, just the initial build inside the blueprint is taking longer to compile, as its harder to clone pieces to move around, nor does it show you what element to duplicate i the list when you click it! When i finish building the section (Currently gotta finish up another project real quick) I'll post some more scene rendering screenshots to analyze the impact your method has made for all to see.
answered May 28 '14 at 03:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here