My first game 😁 with optimize problem. Can you help to solve?

Well i created a testing game name waking tank. It has all the logic from gears . Ration movement.. it’s a top view game with infinite map to Walk :sweat_smile::sweat_smile::sweat_smile:..

The main problem is too much laggy for mobile it’s goes smoothly on my laptop but on mobile it’s litrelly makes it crash.. :sweat_smile::sweat_smile:

At first on beginning it didn’t work at all bit after setting resolution and chuk size it’s be some smooth. But still too much lag ..

How can I make buttery smoothie :cup_with_straw:.

Basically i use chunk based system to generate ground ( background). And also some coins, fule , enemies and ammos spawn randomly near by player….

Please :pleading_face: help of you know how to fix :smiling_face:

1 Like

Keep reducing chunk size, and make sure that once the player leaves an area, you delete that chunk.

1 Like

I read that completely wrong.

2 Likes

I tried this but by deleting chunks also increase pressure. It’s increase lag . And reducing chunk size it didn’t cover the screen and looks so poor.. …

Any other way?? :face_with_raised_eyebrow:?? Btw thanks :folded_hands: :+1: :smiling_face::smiling_face:

Like ?? How ?:face_with_raised_eyebrow: ??

It’s a lot funnier if I don’t explain it to you.

2 Likes

Hmm ok… i will not mind.. you can tell..i do like to learn from mistakes :grinning_face:..

You should check out this,

https://docs.godotengine.org/en/stable/tutorials/scripting/debug/debugger_panel.html#profiler

This will help you see which scripts are taking the longest to load.

2 Likes

Well bro my scripts are preloading. And these are not too much who took long time to load . Because on laptop these are smoothly working. :grinning_face_with_smiling_eyes:

The main problem according to me is CPU cost.. on mobile. Because genration background and spawning enemies, fule, cousins might be expensive. .:sweat_smile::sweat_smile:..

Btw thanks I will check this too. ( Well i am new to learning and not good at documentation reading. But still i will try :grinning_face_with_smiling_eyes::grinning_face_with_smiling_eyes:)..

Thanks :+1: :+1:

5 Likes

Umm ok. I don’t understand that fully.. mening of this image :sweat_smile::sweat_smile:..

It’s a cool meme about developers. They make something, and when they publish it, most of the time other people can’t run it because it needs .dlls, a special dev environment, or the developer just has a beefy computer (your case :eyes:).

5 Likes

Ohhhh :hushed_face: :astonished_face: so you try to say alot in a single image :thinking::thinking: hmmm

1 Like

Well if loading assets is the biggest problem, then try only load assets which are viewable in the current frame.

1 Like

Is it 3D or 2D

1 Like

You mens like loading and unloading chunks??? :face_with_raised_eyebrow::face_with_raised_eyebrow:

2d bro. It’s 2d top view game :video_game: :bullseye:

what? it clearly means your 2D game is very unoptimized lol

2 Likes

Yes, I see you say it didn’t work before. I’m currently rewriting half my game to improve speed, if you have the time maybe this would work too? Because now you know how to code games, you’ll look back on your work with more experience.

1 Like

Umm … yeaaa :downcast_face_with_sweat::downcast_face_with_sweat::downcast_face_with_sweat:.. wel i just started gme Dev and learning coding something 4 months ago.. you can understand my level is in negative :downcast_face_with_sweat::downcast_face_with_sweat:

1 Like