Hello, everybody!
I have generated chunks and at the moment of adding instances in HISM there is a decrease in fps, would really like to get rid of it. Is it possible to add instances to HISM asynchronously?
Thanks!
TArray<FTransform> transforms;
for (int i = 0; i < 1000; i++)
transforms.Add(FTransform(FVector(0)));
AsyncTask(ENamedThreads::AnyBackgroundThreadNormalTask, [this, transforms]
{
HISM->AddInstances(transforms, false);
});
Normally actors need to be spawned on the game thread otherwise it can crash the engine. I’m guessing static meshes have the same limitations as they need to access the parent actor to update the instance information.