0 votes

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?

in Engine by (12 points)

Could you give us more details about the game? Maybe show us some of the code?

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

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.

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.