Skip to content

avoid running 'GetVolumeInformationW' on network drives#120666

Open
dukeman74 wants to merge 1 commit into
godotengine:masterfrom
dukeman74:drive-hang-avoidance
Open

avoid running 'GetVolumeInformationW' on network drives#120666
dukeman74 wants to merge 1 commit into
godotengine:masterfrom
dukeman74:drive-hang-avoidance

Conversation

@dukeman74

Copy link
Copy Markdown

What problem(s) does this PR solve?

Additional information

checks whether a drive is a network drive before querying it with GetVolumeInformationW, which I have noticed hangs for about 8 seconds on disconnected network drives.

I don't know that this is the best way to resolve this, but it is a way.

I tested by launching godot editor with and without this change and without it it hangs for ~30 seconds and with it it opens right away

@dukeman74 dukeman74 requested a review from a team as a code owner June 26, 2026 17:12
@Calinou Calinou added this to the 4.8 milestone Jun 26, 2026
@Calinou Calinou added the cherrypick:4.7 Considered for cherry-picking into a future 4.7.x release label Jun 26, 2026

@bruvzg bruvzg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems fine. Have not tested it. It would make sense to process labels asynchronously, bu this will require more changes to file dialogs, so it should be ok to skip network drives.

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

Labels

bug cherrypick:4.7 Considered for cherry-picking into a future 4.7.x release platform:windows topic:platforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.7 takes several minutes to launch on windows unless run as admin

3 participants