Hello everyone.

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

Answers

  • It's difficult to guess where the juddering is coming from, but maybe I can give you some impulse for further investigation:

    • Did you log start and stop events in the script? > Maybe the dragging is starting and stopping very often
    • Did you run the profiler (menu windows > profiler)? Is there really a frame drop?
    • Exchange the handdraggable script with TapToPlace > Is it still juddering?
  • That was fast ;)

    • The device portal says there are 60 fps.
    • With the TapToPlace script it seems to be ok.

    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.

  • 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 ;)

Sign In or Register to comment.