Hi, my 3D game is lagging slightly, it has about 6 deer with pathfinding behaviours, wolves that also use pathfinding and all have different animations, and a whole lot of 3D trees. What can I do to optimise it to prevent it from lagging?
Thanks a lot!
https://gd.games/crowbar_coder/wilderness-warrior
The GDevelop Discord has some users that talk about how they’ve optimized their 3D games by loading in chunks, etc so you might get some tips there. The pathfinding is probably the biggest impact on performance.
hi - when i played it - it was when the wolves appeared - i became unplayable so possibly the pathfinding. I think maybe use a different system to find player or only occasionally update the path. Maybe even base it on xy or angle between until quite close. maybe use a force at wolf angle and rotate towards angle between but occasionally raycast to check for obstacle. Have a look in the profiler to check what’s eating up the processing. You can try object culling in chunks - theres been a few threads on here about various ways of doing it.