浏览代码

Raise the amount of file handles on Windows

Pedro J. Estébanez 11 月之前
父节点
当前提交
a5f86ee07e
共有 1 个文件被更改,包括 3 次插入0 次删除
  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() {