Jump to content

Asynchronously loading content


photo

Recommended Posts

Posted

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?

Posted

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!

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...