MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Can not set update interval of spatial Awareness / mesh observer

Open Jversen opened this issue 3 years ago • 4 comments

Describe the bug

Setting the update interval on the spatial mesh observer doesn't change the actual update interval.

To reproduce

Set the update interval to anything below 3.5 seconds. The spatial mesh won't be updated any faster than that, even though the documentation says that "Typical values fall in the range of 0.1 and 5.0 seconds."

Expected behavior

The spatial mesh should be updated at the set interval.

Your setup (please complete the following information)

  • Unity Version 2020.3.27f
  • MRTK Version 2.7.3

Target platform (please complete the following information)

  • HoloLens 2

Jversen avatar Jul 06 '22 15:07 Jversen

Is this with OpenXR? And if so, which version of the Mixed Reality OpenXR Plugin?

keveleigh avatar Jul 06 '22 16:07 keveleigh

Is this with OpenXR? And if so, which version of the Mixed Reality OpenXR Plugin?

Yes, I should have mentioned that. OpenXR version 1.3.1.

Jversen avatar Jul 07 '22 08:07 Jversen

Ah! It might be worth trying a more recent release. In the 1.4.x cycle, we've fixed some bugs around mesh update cadence and incorrectly reporting (or missing) updated meshes. For example: https://github.com/microsoft/OpenXR-Unity-MixedReality-Samples/releases/tag/v1.4.1

Fixed a bug where meshes provided through the XRMeshSubsystem could have the wrong 'updated' value.

keveleigh avatar Jul 07 '22 18:07 keveleigh

Unfortunately updating to 1.4.2 did not fix the issue. Setting the update interval to anything above 2.5 seconds works, for example 10 seconds. But there seems to be a lower limit of 2.5 seconds. The HoloLens 2 itself is capable of a faster update interval, isn't it?

I did some testing on different intervals: >= 2.5 seconds: Works as expected. 2 seconds: Updates with intervals 2, 4, 2, 4... seconds. < 2 seconds: updates with 3 second interval.

Jversen avatar Jul 08 '22 12:07 Jversen

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!

IssueSyncBot avatar Jan 13 '24 00:01 IssueSyncBot