Hi!
What is fastest to create many of, AActors, UObjects, or UStructs? Is the difference appreciable?
I am spawning in new actors at the rate of, say, 5 per second, and each actor upon upon spawning also needs to create a data system that has an array of 50+ data structures that has an array of 100+ data structures. I am concerned that this might get to be a lot, so before I finish developing, I’m curious if anyone has any input as to the computationally fastest way to do it. I’m assuming that spawning an AActor takes far more processing time than spawning a UObject? I could make each data structure into a struct defined within the top-level actor’s class, or I could break each data structure into its own object with an array of subobjects.
to facilitate understanding:
GameActor contains ArrayOfLayers[Layer * 50]. Layer contains ArrayOfDoodles[Doodles * 50]
If I should be doing something else entirely, I’m open to that too
Thanks!
Zach