I need help with optimization

Its my first time working in 3d and the game tends to lagg during tests. What can be done for optimization?

That’s a really open-ended question. Lots of things! It depends entirely on the structure and needs of your game.

More information would help a lot here.

Here’s some good starting points for figuring what you need to optimize and potentially how

Use the profiler to find out what needs optimizing before you try to start.

Then there are various techniques for 3D games to help speed things up. I’d bet you are only facing one of these issues or a scripting slow down, depends on if it’s slow on the CPU (scripts, draw calls, physics) or on the GPU (graphical settings, texture size, lights).

There’s not really much, its just 5 trees, a base to walk on and player movement, player is literally a capsule.

I think its the script that makes it slow, i have runned games with 30 times more assets in a different engine. It worked smoothly but here its so slow

Can you show us the script?

Then the Profiler is well suited to finding your trouble maker. If you find the point in code you’d like to address, feel free to post it here and everybody can take a look to help more.

Remember that Godot is not for realistic graphics like Unreal, its more for low poly, stylized games, if you want more photorealism you need to use baked lights also try mobile renderer or compatibility they are much faster for low end machines.

Alright

Nah man i have runned games with way more assets, Godot 3d is just new to me. My laptop is fine

I am moving from gdscript to c# for mobile games because Godot 4.5 will support nativeAOT compiler and that eliminate the need for dotnet runtime and is much faster than gdscript, another thing to try is using the Mobile / Compatibility rendering they are much faster than Forward+ on low end and looks good enough for non photorealistic games.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.