diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-31 23:55:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 23:55:55 +0200 |
commit | 787bb0f26933effa2199a0608f6e0055e10997b2 (patch) | |
tree | 9658c3b9b16f45b4332878e48e66c23f4d8e38f0 /doc | |
parent | 790b63b27cb0a792f99f9da481b292d5f01cda4a (diff) | |
parent | 1cfe3c3f8bd5c600e19926427c4b9c1426475edb (diff) |
Merge pull request #54732 from zedutch/fix-threaded-load-request-cachemode
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ResourceLoader.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/ResourceLoader.xml b/doc/classes/ResourceLoader.xml index dd52d09750..729058c9b3 100644 --- a/doc/classes/ResourceLoader.xml +++ b/doc/classes/ResourceLoader.xml @@ -95,8 +95,10 @@ <argument index="0" name="path" type="String" /> <argument index="1" name="type_hint" type="String" default="""" /> <argument index="2" name="use_sub_threads" type="bool" default="false" /> + <argument index="3" name="cache_mode" type="int" enum="ResourceLoader.CacheMode" default="1" /> <description> Loads the resource using threads. If [code]use_sub_threads[/code] is [code]true[/code], multiple threads will be used to load the resource, which makes loading faster, but may affect the main thread (and thus cause game slowdowns). + The [code]cache_mode[/code] property defines whether and how the cache should be used or updated when loading the resource. See [enum CacheMode] for details. </description> </method> <method name="remove_resource_format_loader"> |