Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
PuReInSaNe's avatar
PuReInSaNe
Explorer
5 years ago

GPU ms increases during Actor Activation

Hey,

I already implemented an objectpool to avoid spawning a lot (well .. 20) actors in one frame during gameplay.

So what I do is when I need actors, I move them and activate them (setActorHidden to false) and activate their components.

This somehow causes the GPU to increase in ms for some seconds, until it will go down.

Sadly it increases even more depending on how many actors are changed to visible. So it could go high as 40ms, which laggs a lot.

Did anyone experience this before?

1 Reply

Replies have been turned off for this discussion
  • Also it is not the draw calls which are to much, they stay at a consistent 3ms, but just the GPU! Sadly I wasn't able to debug this further. Any adivce on this?