Editor hangs for 30 seconds when I play or undo

Hello,
I have done some reading on this.

  • try freeing space on your hard drive if you’re running a bit low
  • if you use cast to on event tick, try unplugging it see if that helps
  • think back to what have you been doing when this first started, maybe go over some code in search of a infinite loop, but I think the engine would pop out a warning about this → Quote from another post: “I had a component which, when it was created, spawned in an actor with the component that spawned it. It caused an infinite loop. If I started it in a different map the problem carried over because the default Game Mode I had also, eventually, ended up calling that component through the player character I had set up. Thanks for your help.
  • might be a good idea to look inside your logs (x:\Users\User\Documents\Unreal Projects\ProjectName\Saved\Logs)
  • you could try setting the quality to low, but I bet you have already tried that
  • if you use Behavior Tree have a look in there too, maybe something is being spammed
  • does this happen with every project or just this one?

If I can come up with anything else I will comment again.