Game starts to lag badly after a few level restarts

Hey people,

I’ve made a game for ludum dare jam and the problem is, after around 2-3 restarts -after player deaths- the game starts to lag very badly.
And also my HUD starts to get bolder and bolder with a little bit of distortion.

These indicators made me think that the game builds the restarted level on top of the “old” level. And the game starts to get heavier and heavier.

I’ve tried both restart commands (open level → level name and console command->RestartLevel) but the horrible lag is still there after around 2-3 restarts.

So my question is, is there a way to make a full “clean” restart, if my prediction is right that is; or is there any better way?

If you’d like to see for yourself, here is a link:
http://ludumdare.com/compo/ludum-dare-32/?action=preview&uid=51083

My system is pretty decent (i7 5820k 16gb ddr4, gtx970,…) , and other people from the jam also reported the lag. So I’m pretty sure it’s not the system.

UE4 Version is 4.7.6

Thanks in advance.

1 Like

I have solved it, apparently HUD was causing the lag. By adding “remove from parent” I was able to get rid of the lag.