1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #98921 from RandomShaper/win_many_files

Raise the number of file handles on Windows
This commit is contained in:
Rémi Verschelde
2024-11-29 22:46:54 +01:00

View File

@@ -525,6 +525,9 @@ void FileAccessWindows::initialize() {
invalid_files.insert(reserved_files[reserved_file_index]); invalid_files.insert(reserved_files[reserved_file_index]);
reserved_file_index++; reserved_file_index++;
} }
_setmaxstdio(8192);
print_verbose(vformat("Maximum number of file handles: %d", _getmaxstdio()));
} }
void FileAccessWindows::finalize() { void FileAccessWindows::finalize() {