Prechádzať zdrojové kódy

Raise the amount of file handles on Windows

Pedro J. Estébanez 11 mesiacov pred
rodič
commit
a5f86ee07e
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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]);
 		reserved_file_index++;
 	}
+
+	_setmaxstdio(8192);
+	print_verbose(vformat("Maximum number of file handles: %d", _getmaxstdio()));
 }
 
 void FileAccessWindows::finalize() {