mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Attempting to clean up thread safe language. (#3336)
* Attempting to clean up thread safe language to remove confusing and conflicting repetition. * Update tutorials/threads/thread_safe_apis.rst Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
This commit is contained in:
co-authored by
Max Hilbrunner
parent
46fe0e181d
commit
be0733a5b5
@@ -57,4 +57,4 @@ In GDScript, reading and writing elements from multiple threads is ok, but anyth
|
||||
Resources
|
||||
---------
|
||||
|
||||
Modifying a unique resource from multiple threads is not supported, but loading them on threads or handling a reference is perfectly supported. Scenes, textures, meshes, etc. Can be loaded and manipulated on threads, then added to the active scene in the main thread.
|
||||
Modifying a unique resource from multiple threads is not supported. However handling references on multiple threads is supported, hence loading resources on a thread is as well - scenes, textures, meshes, etc - can be loaded and manipulated on a thread and then added to the active scene on the main thread. The limitation here is as described above, one must be careful not to load the same resource from multiple threads at once, therefore it is easiest to use **one** thread for loading and modifying resources, and then the main thread for adding them.
|
||||
|
||||
Reference in New Issue
Block a user