{"repo":"saivs/com.saivs.plugin.mdi","free":true,"listed":false,"github":"https://github.com/saivs/com.saivs.plugin.mdi","clone":"git clone https://github.com/saivs/com.saivs.plugin.mdi.git","description":"Unity Multi Draw Indirect Plugin","language":"C++","stars":72,"topics":["d3d11","d3d12","graphics","opengl","opengles","unity","unity3d-plugin","vulkan","multidrawindirect"],"license":"MIT","category":"game-templates","readme_excerpt":"Unity Multi Draw Indirect Plugin A native plugin that brings true Multi-Draw Indirect (MDI) to Unity. What is Multi-Draw Indirect? A draw call is one instruction to the GPU: \"render this object with this material\". Each one has real CPU cost: the engine has to validate state, build a command, and submit it to the graphics driver. A \"small\" scene easily hits 2,000-3,000 draw calls per frame , even with very few objects on screen. Each visible object is drawn several times per frame: once for the main image, once or twice more for shadows, often again for a depth pre-pass, plus extra passes for transparency and post-processing. Add LODs (different mesh detail at different distances) and the count grows fast. Even on a fast desktop CPU with Unity's built-in batching, 1,000 draw calls can cost over 1 ms of CPU time per frame . At 60 fps you have a 16.6 ms budget for everything (physics, AI, scripts, rendering), so 1 ms spent just submitting draws to the GPU is a real problem. Multi-Draw Indirect (MDI) replaces N draw calls with one. You write the parameters for all N draws into a single GPU buffer, then make one call that tells the GPU to run every draw it finds in that buffer. The GPU does the dispatch itself, with no per-draw CPU overhead. This is how engines like Unreal (Nanite) and Frostbite render millions of objects without drowning the CPU in draw-call cost. Why this plugin? Modern GPU-driven rendering pipelines rely on Multi-Draw Indirect to batch thousands of draw calls ","default_branch":null,"files":null,"tree":[],"storefront":"/r/saivs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/saivs/com.saivs.plugin.mdi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}