MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
Can not set update interval of spatial Awareness / mesh observer
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
Is this with OpenXR? And if so, which version of the Mixed Reality OpenXR Plugin?
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.
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.
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.
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!