Browse Source

Raise the amount of file handles on Windows

Pedro J. Estébanez 11 months ago
parent
commit
a5f86ee07e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/windows/file_access_windows.cpp

+ 3 - 0
drivers/windows/file_access_windows.cpp

@@ -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() {