Browse Source

Merge pull request #82376 from MewPurPur/add-missing-docs

Document worker thread pool project settings and `TreeItem.uncollapse_tree()`
Rémi Verschelde 1 year ago
parent
commit
fd6f6a05bf
2 changed files with 3 additions and 1 deletions
  1. 2 1
      doc/classes/ProjectSettings.xml
  2. 1 0
      doc/classes/TreeItem.xml

+ 2 - 1
doc/classes/ProjectSettings.xml

@@ -2792,6 +2792,7 @@
 			[/codeblock]
 			[/codeblock]
 		</member>
 		</member>
 		<member name="threading/worker_pool/low_priority_thread_ratio" type="float" setter="" getter="" default="0.3">
 		<member name="threading/worker_pool/low_priority_thread_ratio" type="float" setter="" getter="" default="0.3">
+			The ratio of [WorkerThreadPool]'s threads that will be reserved for low-priority tasks. For example, if 10 threads are available and this value is set to [code]0.3[/code], 3 of the worker threads will be reserved for low-priority tasks. The actual value won't exceed the number of CPU cores minus one, and if possible, at least one worker thread will be dedicated to low-priority tasks.
 		</member>
 		</member>
 		<member name="threading/worker_pool/max_threads" type="int" setter="" getter="" default="-1">
 		<member name="threading/worker_pool/max_threads" type="int" setter="" getter="" default="-1">
 			Maximum number of threads to be used by [WorkerThreadPool]. Value of [code]-1[/code] means no limit.
 			Maximum number of threads to be used by [WorkerThreadPool]. Value of [code]-1[/code] means no limit.
@@ -2800,7 +2801,7 @@
 			Action map configuration to load by default.
 			Action map configuration to load by default.
 		</member>
 		</member>
 		<member name="xr/openxr/enabled" type="bool" setter="" getter="" default="false">
 		<member name="xr/openxr/enabled" type="bool" setter="" getter="" default="false">
-			If [code]true[/code] Godot will setup and initialize OpenXR on startup.
+			If [code]true[/code], Godot will setup and initialize OpenXR on startup.
 		</member>
 		</member>
 		<member name="xr/openxr/environment_blend_mode" type="int" setter="" getter="" default="&quot;0&quot;">
 		<member name="xr/openxr/environment_blend_mode" type="int" setter="" getter="" default="&quot;0&quot;">
 			Specify how OpenXR should blend in the environment. This is specific to certain AR and passthrough devices where camera images are blended in by the XR compositor.
 			Specify how OpenXR should blend in the environment. This is specific to certain AR and passthrough devices where camera images are blended in by the XR compositor.

+ 1 - 0
doc/classes/TreeItem.xml

@@ -779,6 +779,7 @@
 		<method name="uncollapse_tree">
 		<method name="uncollapse_tree">
 			<return type="void" />
 			<return type="void" />
 			<description>
 			<description>
+				Uncollapses all [TreeItem]s necessary to reveal this [TreeItem], i.e. all ancestor [TreeItem]s.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>