Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle Time spike when NavigationAgent is present #60621

Closed
gramozilho opened this issue Apr 29, 2022 · 2 comments
Closed

Idle Time spike when NavigationAgent is present #60621

gramozilho opened this issue Apr 29, 2022 · 2 comments

Comments

@gramozilho
Copy link

Godot version

3.5.beta2 and 3.5.beta4

System information

Windows 10, GLES3, NVIDIA GeForce RTX 2070 Super

Issue description

If a NavigationAgent is a child of NavigationMeshInstance there is noticeable lag even when not in use.
Profiler shows a big spike in Idle Time not coming from any script function. Removing the NavigationAgent and running the scene again removes the spike.
image
Happens with or without baked NavMesh.
Moving the NavigationAgent somewhere else also removes the spike.
Issue spotted when adding a NavigationAgent node to a RigidBody in character mode to move to a destination (3.4.beta2)

Steps to reproduce

Add a Navigation node, a NavigationMeshInstance as child and a NavigationAgent as child of that.
Run with the Profiler on.
Running the same scene without the NavigationAgent

Minimal reproduction project

Both Main (scene with valid NavMesh) and MinimumTest (just the 3 nodes mentioned above).

NavigationIdleTimeExample.zip

@akien-mga
Copy link
Member

This might be a duplicate of #56838 which was fixed recently. The fix will be included in 3.5 beta 5.

Could you test latest CI builds from the 3.x branch to confirm? https://github.com/godotengine/godot/actions/runs/2244474520
Alternatively if you can build 3.x from source, that would work too.

@gramozilho
Copy link
Author

@akien-mga yes, the problem is gone after building from source. Closing the issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants