You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try to execute GLTFDocument.append_from_file on ui thread and non-ui thread respectively, the time cost on non-ui thread is much higher than on ui thread. for example, in the minimal reproduction project, append on ui thread time cost: 3436ms,
but append on other thread time cost: 117287ms
Hope to see your replay as soon as possible! Thanks so much!
Can you try later versions of Godot Engine to see if the time changes?
Thx for your reply, just tested on godot 4.3
raised this error:
E 0:00:03:0670 Main.gd:35 @ appendFromScene(): This function in this node (/root/Node3D/@node3d@2) can only be accessed from either the main thread or a thread group. Use call_deferred() instead.
<C++ Error> Condition "!is_readable_from_caller_thread()" is true. Returning: (false)
<C++ Source> scene/3d/node_3d.cpp:821 @ is_visible()
Main.gd:35 @ appendFromScene()
Main.gd:26 @ ()
Tested versions
Reproducible in Godot v4.0.4.stable
System information
Mac & Android & iOS - Godot v4.0.4.stable
Issue description
try to execute GLTFDocument.append_from_file on ui thread and non-ui thread respectively, the time cost on non-ui thread is much higher than on ui thread. for example, in the minimal reproduction project, append on ui thread time cost: 3436ms,
but append on other thread time cost: 117287ms
Hope to see your replay as soon as possible! Thanks so much!
Steps to reproduce
run the MRP Main.tscn to check result
Minimal reproduction project (MRP)
MinimalProject.zip
The text was updated successfully, but these errors were encountered: