Bläddra i källkod

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 <[email protected]>
Co-authored-by: A Thousand Ships <[email protected]>
谢天 1 år sedan
förälder
incheckning
019afc8f81
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      tutorials/performance/thread_safe_apis.rst

+ 4 - 0
tutorials/performance/thread_safe_apis.rst

@@ -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
 -----------------------------