Updated the SU SDK and fixed a bug where the SU request would hang blocking hte UI thread

This commit is contained in:
Simon Stachniak 2020-05-12 11:38:31 -07:00
Родитель a09d1cffeb
Коммит 369b7eceb6
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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>