Little test shows instancing performance.

Hi there.

Today I did a simple test, instanced object vs duplicates.

Here are the results.

I was surprised, I really thought that instanced objects would be faster, but they are not.

What do you think?

Attachments



Instances have at least one additional object (the instantiating object) so the number of objects is twice as much (assuming a single object in the group).

are you using group instances or ALT-D clones?
In any case the main benefit is memory since you only need to load the mesh once

Group instances,thats what I used.

Monster,I guess thats the main reason…

My experience has been that there is little performance different between using Shift-D and Alt-D to duplicate objects.

That result has been the same with me as well, though doing it is still recommended because it will both decrease your game’s filesize and also decrease the load time when the engine starts (because it only has to load and store one copy of the mesh in question).

Turning the object into a group instance will add a third benefit, and that is any changes in logic will propagate to every copy of the object in the game.

Yes ACE,you are right. More features than drawbacks.