Does cloning duplicate meshes?

When I call clone() on a ModelEntity, is all the mesh data duplicated or just referenced?

Answered by DTS Engineer in 423872022

As mentioned in this WWDC video "It references all the same assets used by the original".


Also, if you are ever curious about the memory impact of a particular method, you can create a focused project where you call the method many times, and then run Allocations on the project in Instruments to see what the impact is.

Accepted Answer

As mentioned in this WWDC video "It references all the same assets used by the original".


Also, if you are ever curious about the memory impact of a particular method, you can create a focused project where you call the method many times, and then run Allocations on the project in Instruments to see what the impact is.

Thanks.


Also, I did not know about the &time=<seconds> argument for a WWDC video URL. I will have to take advantage of that in my notes. Double win!

Does cloning duplicate meshes?
 
 
Q