Update thread_safe_apis.rst to mention don't call certain rendering functions on other threads (#8749)

* Update thread_safe_apis.rst to mention don't call certain rendering functions on other threads

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
谢天
2024-01-24 18:25:36 +08:00
committed by Max Hilbrunner
parent cb3bf133f3
commit 019afc8f81

View File

@@ -60,6 +60,10 @@ To make rendering thread-safe, set the **Rendering > Driver > Thread Model** pro
Note that the Multi-Threaded thread model has several known bugs, so it may not be usable
in all scenarios.
You should avoid calling functions involving direct interaction with the GPU on other threads, such as creating new textures
or modifying and retrieving image data, these operations can lead to performance stalls because they require synchronization
with the :ref:`RenderingServer<class_RenderingServer>`, as data needs to be transmitted to or updated on the GPU.
GDScript arrays, dictionaries
-----------------------------