Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | LeCactusTP |
So I’m new to godot engine and already learned some basics. I just made a quick top down shooter. When I run debug it’s normally about 120 fps, but after 5 seconds it goes to 2 fps. Does someone know hot to fix this?
Could you give us more details about the game? Maybe show us some of the code?
Ertain | 2021-03-08 06:02
Maybe somewhere in your code you have an array that kept on expanding without stopping, if it was something like a while loop with no break statement im sure the program would just crash
Ir maybe you have too many nodes in the scene which really affects performance
Kurotsuki | 2021-03-09 12:03
It is not actually the problem in the code. Even when I run a template it starts lagging. It shows green numbers in the top left corner.
LeCactusTP | 2021-03-10 10:04
seems like its most likely a problem with your computer, try to free up some space and check anywhere if there’s a corrupted file
Kurotsuki | 2021-03-10 14:29