Why my game fps drop to 6fps

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

My current version is godot 3.1
At first my game is running well, but 3 min later it’s fps drop to 6.

I found my script function take only 57.2%, but frame time take 894.5%. how to find where my game consume resource, why fps dropped.

please give us some hints or suggestion , thanks.

(my screenshot seem not showed? here is profiler screenshot click here)

enter image description here

A good guess would be that you have entities disappearing off screen that you do not delete. ( bullets, enemies, etc )

guppy42 | 2018-11-22 07:20

@guppy42 thanks for your reply.

In my game we drawing line2d constantly and update some ploygon2d frequently.
may be you are right, there are something leaks, but why profiler can’t track them? I can’t found them.

zhengying | 2018-11-22 07:52