Hello everybody.

I ran into a problem when using Godot Engine 4. I noticed that the launch of the project (RUN F5) causes a very long load (17.8 seconds).

Empirically, I noticed that such a long download occurs when USB devices are connected (Headphones and speakers).

This problem occurs in absolutely any project, and brings great inconvenience. Because it makes you wait 18-20 seconds to debug the project after any minimal change.

If they are disabled, the project launch takes 7 seconds.

Do you have any idea what might be causing this and how to solve it?

I seem to recall a very similar issue back in the day with godot 2 or 3 too. It's because it's scanning for input HW like controllers and such. But certain USB devices from some manufacturers, whether Corsair RGB controller or some headsets with USB soundcards or amps integrated in them can cause issues. IIRC it's because those devices themselves do something non standard tho.

Not strictly a godot fault, but non the less an issue that godot devs might want to maybe implement a workaround for or at least be informed off cause in some instances it can theoretically even cause crashes, or at least what a player/end user might deem a freeze. So if you manage to nail down which USB HW is causing it, maybe consider opening an issue or better, search the tracker as there might already be a related issue open.

    Megalomaniak It is really strange that such a mistake suddenly manifested itself in Godot 4. Six months ago I worked in Godot 3.5, and everything was fine

      GodotBeginnerRich but SECONDS is miniscule.

      It's still an anomaly, and potentially worth following up on. Might be just seconds in this instance, but someone else might experience similar but for longer.

      Masta_dung It is really strange that such a mistake suddenly manifested itself in Godot 4.

      While it's possible that there might have been some oversight perhaps since the core developers are human too, as I did mention it's not necessarily entirely up to a fault on godot side. Your best course of action is likely to open a new issue and report to tracker if not already reported(do try and search first).

      GodotBeginnerRich This is just very critical. Because even an empty project takes 18 seconds to load, and this makes it very difficult to debug larger projects.

      This becomes especially noticeable when the USB headphones are disconnected, after which the download takes 4-5 seconds. That is a 4 times difference.