Editor World starts ticking in PIE if you press F8
For a while on our project we have had some big slowdowns when going out of the player with F8. The slowdown would get worse and worse until the editor becomes unusable. There would also be some huge memory spikes when stopping play. (up to 10 GB)
We just tracked it down to what seems to be a problem with AActor::ShouldTickIfViewportsOnly() We use this to draw quite a bit of debug graphics in editor mode when the game is not running.
It seems like when you unposses the actor with F8, this function starts getting called again and the Actors in the Editor World (Not the PIE world) start ticking again. (This seems like a bug?) But also all the debug graphics that would be drawn (We cant see it because we are in PIE) appears not to be cleaned up correctly, because the number of batched lines just keeps increasing. (We saw up to tens of millions of lines in the LineBatchComponent.
The workaround for us has been to use this line instead of just returning true:
This prevents ticking when the game is playing.
asked Oct 19 '16 at 07:12 AM in Bug Reports
Follow this question
Once you sign in you will be able to subscribe for any updates here