microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

HoloLens 1 and 2 support multi-thread? #6288

Closed IfnoLee closed 4 years ago

IfnoLee commented 4 years ago

HoloLens 1 and 2 support multi-thread? 1.UI thread is stoped while Loading data or some Prefabs (hololens 1) . 2.I cannot see anything or low frame rate in hololens 1 while runing MRTK demos once in a while.

david-c-kline commented 4 years ago

@IfnoLee,

Yes, you can write multithreaded applications for HoloLens devices. Please be aware that Unity objects are only supported on the UI thread.

If your application requires processes that may take longer than a single frame as well as Unity objec interaction, I recommend implementing a Unity coroutine.

Hope this helps!

IfnoLee commented 4 years ago

@IfnoLee,

Yes, you can write multithreaded applications for HoloLens devices. Please be aware that Unity objects are only supported on the UI thread.

If your application requires processes that may take longer than a single frame as well as Unity objec interaction, I recommend implementing a Unity coroutine.

Hope this helps!

Thank you very much!