Heavy Lag Spikes after 2000-3000 frames even in empty project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Katsu

Hello everyone

I am currently working on a 2d platformer and noticed heavy lag spikes after around 2000 to 3000 frames and afterwards they get less extreme but still exist. I know that very few other people have the same problem -
Single frame spikes even in an empty project · Issue #33969 · godotengine/godot · GitHub - but i still want to ask if anyone else has these problems because i cant find a fix for it and it really is a nuisance. So did anyone have the same problem and found a fix for it?

:bust_in_silhouette: Reply From: magicalogic

Make sure you queue_free() any objects out of the screen if not needed.

He said “empty projects” so this might not be the solution.

Bubu | 2021-05-09 14:36

Am sorry but I can’t see where he says that. He says ge is working on a 2d platformer game.

magicalogic | 2021-05-09 14:53

It’s in the title!

Bubu | 2021-05-09 14:57

yeah, it happens even in an empty project so it must be something with the engine itself

Katsu | 2021-05-11 04:46

Sorry, I don’t know how I missed that.

magicalogic | 2021-05-11 05:02