Quantcast
Channel: Latest Questions by Selzier
Viewing all articles
Browse latest Browse all 34

AsyncOperation for SceneManager.LoadSceneAsync doesn't adhere to Application.backgroundLoadingPriority

$
0
0
I'm loading levels with: AsyncOperation async = SceneManager.LoadSceneAsync() I've set background loading priority via: Application.backgroundLoadingPriority = ThreadPriority.Low; According to https://docs.unity3d.com/ScriptReference/Application-backgroundLoadingPriority.html, setting ThreadPriority.Low - 2ms "This is a maximum time all asynchronous operations can spend within a single frame on a main thread." However, I'm seeing huge performance hits when scenes are loading.. here we see 123ms spent loading: ![alt text][1] [1]: /storage/temp/80171-profiler-async.jpg Any clues why this AsyncOperation is not following backgroundLoadingPriority? Or how to REALLY load the scene asynchronously without the performance hit?

Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>