Posts

Showing posts with the label GPU

Dynamic Batching/GPU Instancing in Unity

May 7, 2019 Dynamic Batching/GPU Instancing Following Tutorial Youtube - [Unity] GPU Instancing Tutorial By: Blendcraft Creations In Unity, the benefits of GPU instancing may not be imediately noticeable by the FPS alone in the editor. This first tutorial shows that the FPS is more properly represented in an actual build of the project. Even though this is an older Unity version, that is still good to note to test all the way through to see if you are getting the expected results. Following this tutorial appeared to work as intended, but it did have a weird issue where I couldn't create lower numbers of instances of objects. Upon inspecting the script, I determined that any number below 1000 most likely would not be rendered out based on the for loop creating the batches at start. The following code snippet is where the issue was occurring: private void Start() { int batchIndexNum = 0; List currBatch = new List (); for (int i = 0;...

GPU Instancing in Unity

April 25, 2019 GPU Instancing Tutorials for Unity Youtube - GPU Instancing Tutorial (No, Seriously, This Is Easy) By: Craig Perko Youtube - [Unity] GPU Instancing Tutorial By: Blendcraft Creations Youtube - Unity3D - 2 Minute Tips - Use GPU Instancing to reduce drawcalls when batching won't By: Unity3d College Youtube - GPU Instancer - Features Showcase By: GurBu Technologies I am starting a project in class that is potentially looking to instantiate a lot of flower objects in Unity, so I wanted to take a look at GPU instancing and see if this was a practical solution for us if we ended up going down this route. If not, this is still a good opportunity for me to get a taste of working on purposefully passing certain information to the GPU and using it for specific tasks. The first three videos are direct tutorials showing how to set this up or how to use it, while the last one is an already made asset in the Unity Asset Store showcasing a very strong GPU ...