#When to use gpu instancing?

17 messages · Page 1 of 1 (latest)

quasi dragon
#

in what case would you enable gpu instancing for certain objects, please try to be specific

  • how does unturned what objects to static batch
sand bloom
#

nerd

quasi dragon
kind quail
# quasi dragon in what case would you enable gpu instancing for certain objects, please try to ...

Not sure, if it applies to Unturned, but talking Unity in general;

Quick sum up on GPU Instancing is that its a technique used to render multiple instances of the same GameObject using a single draw call instead of multiple which can improve performance and allow efficient gpu rendering

When to use it?

  • GPU Instancing is pretty much used when you've got large number of identical objects that share the same mesh and materials properties, like trees, rocks or buildings, structures;
  • You can also use it when it comes to particles/particle or UI systems, especially when it comes to effects like sparks, smoke, fire, debris etc

A con that you gotta be aware of is the memory consideration that it uses on the GPU rather than the CPU to load the objects due to the storing per instance data, like matrices or with highly dynamic objects which move or require constant updates to their transform/position

griefer

quasi dragon
kind quail
#

About static batching in Unturned, I've got no idea griefer

#

In general it's pretty much a built-in Unity optimization method which combines multiple gameobjects with same mesh into a single draw call at runtime

#

but that requires the object to have static mesh, same material (shader & texture included) and same lightmap UVs

quasi dragon
kind quail
quasi dragon
kind quail
#

Can't really say much when it comes to Unturned

#

That's the method in general, but 0 idea if nelson has changed/disabled or done anything to it

#

I just used to work on development of games with Unity so, i just know allat 😭

quasi dragon
#

unturned just be unpredictable

kind quail
#

It could be completely different when it comes to Unturned, so take what i said with a grain of salt