0 votes

My project has 1010chunk
32
32+3232 staticbody2d in each chunk
3
3 chunks around the player will be dynamically generated
Whenever the player moves, the dynamic addchild (the chunk to be added) and removechind (the excess chunk)
Now I am experiencing a performance problem
Because of thread safety issues, help thread cannot addchild
I can only add
child() in the main thread, and add_child() in the main thread will cause the game to get stuck for 0.x seconds, making the game not smooth.
How to solve

asked Aug 8, 2018 in Projects by kyla (22 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.