May 28th, 2021
Q&A: Could you quickly describe what instancing means?
https://www.youtube.com/watch?v=dyqOMITwLsY&t=1065
Suggested Wiki Refrence Code
Topics
Transcription
Ben
We
Snutt
will
Ben
see.
Snutt
Could you just like quickly describe like what instancing means and like when we talk about that so that people are aware of what the implication of an instance in a game is when you're rendering stuff.
Ben
So an instance is you have several ways of rendering items.
So you can just say like, okay, this is a rock.
Just render this one single rock here, which is fine.
You render the rock.
With instancing, basically you tell like, okay, there are 20 rocks here and it can do the task 20 times in a sequence, which is really fast because it doesn't need to read the data again.
GPUs are really fast.
They're really bad at switching tasks.
So it's really fast to render 20 times the same object in a sequence, knowing it's the same thing, than to render 20 times the same object without knowing it's the same thing in the sequence.
Snutt
Right, so it essentially batches up the things you want to render when you're telling the GPU to render them, essentially.
Ben
Yeah, and then Unreal has their own implementation on top of that, which is a Hierarchy-based rendering, which does the best of both worlds.
So it has all the instances and it prepares clusters for themselves.
uh which also allow loading and culling and all the optimizations normal instances cannot do so that's like the best ideal case for instancing we use it on absolutely everything yeah all the walls are done that way everything except for this little bastard so yes cool so the holograms now use stencils instead of the mesh itself