webnetweaver Posted March 15 Posted March 15 Im curious about asynchronously loading content in a way that wont interfere with the main rendering thread. I see loadNode(), AddWorld(), and Switcher node. Do these objects load node content asynchronously in a separate thread? Is there a way to load sounds and images asynchronously?
silent Posted March 19 Posted March 19 For async loading of nodes you can use AsyncQueue class. There is also a sample available in 2.20 SDK that demonstrates it's usage: https://github.com/unigine-engine/cpp-api-samples/tree/main/source/systems/async_queue_stress Switcher will load all nodes in main thread, which potentially may cause some spikes. Thanks! 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts