Difficulty slowing down and lagging the game

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

Hello, how can the game be optimized and streamlined?
I have a problem with slowing down where there are many objects, please help
I read Godot’s document but my problem was not solved

How do you load the objects?
Are they sharing textures/other assets?
How many objects are we talking about?
What device is it slowing down on?

larrxi | 2020-10-18 01:13

Hello
i it download and import to godot
If you mean downloading a scene, I will save and run it in tscn format
Yes, they have colors like trees or boxwoods or fences
Nearly a hundred objects
do not know graphics or CPU

abbas zangaraky | 2020-10-18 04:47

If you download the game then it is probably on the internet and you can link it here.
How is loading assets happening?

You can know your computer from the Speccy program.

Try both GLES3 and GLES2 renderers.

larrxi | 2020-10-18 06:47

:bust_in_silhouette: Reply From: Surtarso

use visibility enabler node to disable anything that is not currently on screen

:bust_in_silhouette: Reply From: CharlesMerriam

First issue, run the profiler (a tab on the debug window). Post the output in your question.

Second, look to see you have a zillion nodes for individual sprites when you meant to have a tilemap or using animation frames for movement.

Otherwise, we are guessing in the dark.