Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | gejza |
Hi,
i have a long running function (about 3-5 sec) which blocks the GUI.
It blocks the editor profiler too.
I tried with difference method to refresh the GUI, without a good result.
For example:
get_node(“WAITING LABEL”).show()
runLongFunction()
get_node(“WAITING LABEL”).hide()
I tried it with thread, the result is the same. No waiting label, no anim, etc.
Is there any solution for a long running function to easy visualize?
Thanx
Long tasks should be run in a seperate thread. If a thread is blocking your GUI maybe you’re not using it correctly? Check this official example:
https://github.com/godotengine/godot-demo-projects/tree/3.0-d69cc10/misc/threads
hilfazer | 2018-09-22 08:29