Updated the SU SDK and fixed a bug where the SU request would hang blocking hte UI thread
This commit is contained in:
Родитель
a09d1cffeb
Коммит
369b7eceb6
|
@ -110,9 +110,6 @@ namespace Microsoft.MixedReality.SceneUnderstanding.Samples.Unity
|
|||
return;
|
||||
}
|
||||
|
||||
// At the beginning, retrieve only the observed scene object meshes.
|
||||
RetrieveData(BoundingSphereRadiusInMeters, false, true, false, false, SceneUnderstanding.SceneMeshLevelOfDetail.Coarse);
|
||||
|
||||
// Then, spin off a background thread to continually retrieve SU data.
|
||||
Task.Run(() => RetrieveDataContinuously());
|
||||
}
|
||||
|
@ -140,6 +137,9 @@ namespace Microsoft.MixedReality.SceneUnderstanding.Samples.Unity
|
|||
/// </summary>
|
||||
private void RetrieveDataContinuously()
|
||||
{
|
||||
// At the beginning, retrieve only the observed scene object meshes.
|
||||
RetrieveData(BoundingSphereRadiusInMeters, false, true, false, false, SceneUnderstanding.SceneMeshLevelOfDetail.Coarse);
|
||||
|
||||
while (true)
|
||||
{
|
||||
// Always request quads, meshes and the world mesh. SceneUnderstandingDisplayManager will take care of rendering only what the user has asked for.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.MixedReality.SceneUnderstanding" version="0.5.2042-rc" />
|
||||
<package id="Microsoft.VCRTForwarders.140" version="1.0.2-rc" />
|
||||
<package id="Microsoft.MixedReality.SceneUnderstanding" version="0.5.2065" />
|
||||
<package id="Microsoft.VCRTForwarders.140" version="1.0.5" />
|
||||
<package id="Microsoft.Windows.MixedReality.DotNetWinRT" version="0.5.1037" />
|
||||
</packages>
|
Загрузка…
Ссылка в новой задаче