ImmersiveRPG / GodotAsyncLoader

A Godot plugin to load, instance, and add scenes asynchronously using a background thread.
https://godotengine.org/asset-library/asset/1376
MIT License
38 stars 5 forks source link

Replace SceneAdder 100ms sleeps with sleeps only as long as needed #3

Open workhorsy opened 3 years ago

workhorsy commented 3 years ago

Adding scenes is slow. At the current rate (100ms), we can only add 10 scenes per second. This makes it seem very slow when adding tons of small scenes.

workhorsy commented 2 years ago

Instead of using an arbitrary amount of time to wait. Just have the target tell the thread after it has added the instance. This seems to work great for the shader cache.