0 votes

Hi,
Im currently working on a small little project to improve my programming skills. It's something like a 2D top-down Zelda like game. The Code works fine and everything was good until i noticed the game itself wasn't running that good on 'normal' computers (btw. I have a pretty good pc I guess). I think I already know why this is the case. i have got a lot of random generated instances of my tree node (exact amount: 100) in my world. Do you know how to get more performance but having still the same amount of instances?

Thanks!

Godot version 3.3.3 stable
in Engine by (20 points)

1 Answer

+1 vote
Best answer

100 instances is not many at all, I doubt that that is what is causing the issue.

Have you tried using the profiler in the debug panel at the bottom of the editor? It can tell you what's happening frame by frame and what's using up the resources.

by (1,260 points)
selected by

Thank you very much!

I saw, that the most of the performance was taken by the tree instances, but this made me overlook my code and I saw that I had used for the max value from the random generated trees not 100 but 1000 and that makes a huge difference now. Thanks!

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.