The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Moving object very slow / juddering
Hi,
If I create a simple Unity (v5.5.2f1) project with a cube and the InputManager as well as the handdraggable.cs from the HoloToolKit, the moving is relatively slow and juddering. As if there would be a frame drop.
If I run the Hologram-App from the Store, the movement of the object is nice and smooth.
Anyone else out there with the same problem? Maybe there is even someone with a helpful answer
Thanks,
Steffen
Best Answer
-
thebanjomatic ✭✭✭
Hey @Steffen
After playing around with it some more tonight, I'm 95% certain this is what you are experiencing. I think the manipulation events from the input manager are coming in at a slower rate than the display rate, so what you get is this laggy behavior where the object doesn't move every frame.
When you interpolate toward the target position / rotation it fills those missing frames in between and you get smaller deltas frame to frame which helps in terms of things looking more smooth.
I have just submitted a pull request with my change to the holotoolkit, please play around with the change if you are able to: https://github.com/Microsoft/HoloToolkit-Unity/pull/592
5
Answers
It's difficult to guess where the juddering is coming from, but maybe I can give you some impulse for further investigation:
That was fast
I will do the logging.
Thanks
In my own copy of HandDraggable.cs, I added some simple smoothing by lerping for both the position and rotation updates. It made things move around drastically more smoothly. I was planning on contributing that enhancement back to the toolkit, but haven't got around to it yet.
Hey @Steffen
After playing around with it some more tonight, I'm 95% certain this is what you are experiencing. I think the manipulation events from the input manager are coming in at a slower rate than the display rate, so what you get is this laggy behavior where the object doesn't move every frame.
When you interpolate toward the target position / rotation it fills those missing frames in between and you get smaller deltas frame to frame which helps in terms of things looking more smooth.
I have just submitted a pull request with my change to the holotoolkit, please play around with the change if you are able to: https://github.com/Microsoft/HoloToolkit-Unity/pull/592
Thanks @thebanjomatic !
just copy&pasted your code and it works like a charm. The default values are perfect.
Hopefully I can contribute similar useful things in the future