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

Selecting objects in 3D editor viewport by clicking on them has a noticeable delay #72621

Open
viksl opened this issue Feb 2, 2023 · 3 comments

Comments

@viksl
Copy link
Contributor

viksl commented Feb 2, 2023

Godot version

4.0 Beta 17 mono

System information

Windows 10, Nvidia GTX 1660Ti, Vulkan

Issue description

Check the video here: https://youtu.be/6xk_54SK0PU I tried to add mouse sounds too but my mic didn't pick them up for some reason.

You can see that picking objects has quite a delay in 3D, this is particularly highlighted when you pick objects in the node tree which is instantaneous (I udnerstand picking in 3D takes a bit more than processing the node tree, I'm just trying it to show somethign to contrast the delay with).

Steps to reproduce

Open a 3d scene add some a MeshInstance (assign it a shape, for example sphere or a box), click on it, observe a delay before the gizmo appears after you click.

Minimal reproduction project

@Calinou
Copy link
Member

Calinou commented Feb 2, 2023

It's not an artificial delay (the editor is blocking during object picking). The object picking algorithm needs to be rewritten to be faster (possibly using the depth buffer and hardware readbacks).

@Calinou Calinou changed the title Picking objects in 3D has a delay. Selecting objects in 3D editor viewport by clicking on them has a noticeable delay Feb 2, 2023
@fkeyzuwu
Copy link
Contributor

just chiming in to say this happens to me too, with AMD on 4.1 stable.

@GustJc
Copy link
Contributor

GustJc commented Oct 24, 2023

Just a 'quick-fix' for anyone who might be having this.
I started noticing a horrible delay when selecting objects after updating to 4.1.2
Then I realized I downloaded the non-C# version of it when I updated.
I was previously using the .NET version, even though I'm only using gdscript.

After downloading the .NET version now, the select delay is more manageable.
I was getting always 2s+ delays when trying to select objects on Godot normal version.
On the c# version of Godot, it still have some minor delay, but it is not very noticeable. Probably less than 0.5s.

tl;dr:

  • The delay is worst in the normal version of Godot (for me).
  • Using the .NET Godot version improves the selection speed by a lot.

On windows 10. (before 1903)
With a nvidea 1070, but last updated drivers from 1 year ago.

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

4 participants