Coder Social home page Coder Social logo

Controllers latency about alvr HOT 5 CLOSED

alvr-org avatar alvr-org commented on June 30, 2024
Controllers latency

from alvr.

Comments (5)

veryjos avatar veryjos commented on June 30, 2024 1

I get this too. I think it's from some of the controller smoothing that JackD83 was playing around with. The older version definitely had less latency, although more jittery.

from alvr.

JackD83 avatar JackD83 commented on June 30, 2024 1

Controller tracking will always be difficult. There are so many factors that influence the latency and the motion prediction. Its not something like "100ms" constantly, but depends on your movements and even the movement of the headset.

There are many parameters that influence the movement that can be changed:

  • Tracking is currently async to the rendering and running at 3*72=216Hz
  • movement prediction is set to 0 to get the latest tracking info -> no prediction on the quest
  • info is send to SteamVR
  • tracking info is fed into SteamVR with an offset of 10ms to enable SteamVR pose prediction
  • the tracking point on the Quest is different that the point on the Rift S. Angular acceleration and linear acceleration of the controller needed to be transformed to the new reference.

There is a trade off between fast but wobbly and overshooting controllers and controllers that have a certain latency. For me, the current settings are perfectly playable for games like Skyrim, Fallout or Arizona Sunshine. Games like Beat Saber might be an issue.

You can change the 10ms offset for SteamVR in the "Other" tab of ALVR (Controller Pose Offset).
The parameter defines how old the data that is fed into SteamVR is and controls the SteamVR pose prediction. Set it to 0 to disable all predictions

from alvr.

JackD83 avatar JackD83 commented on June 30, 2024 1

The default is 0.01=10ms. Its the amount of time I needed to be able swing my sword in skyrim without feeling weird. Its very possible that this value depends on the person, thats why its on the gui and you can change it on the fly

from alvr.

veryjos avatar veryjos commented on June 30, 2024

Ah I see! Yes, setting that value lower (to a negative number like -0.2) feels much like the older builds and is perfect for me. It's definitely extrapolating to reduce perceived latency with a negative number.

What's the purpose of delaying/interpolating by 100ms (or whatever 0.1 is) by default?

from alvr.

rgferreira avatar rgferreira commented on June 30, 2024

Thank you guys, now I kind of understand the "pose offset" parameter. Indeed, lowering the value solved the issue. I had a value of 2 there, and it made the tracking soooo smooth but extremely laggy, which now I understand perfectly why. Now, with a value of zero I'm playing shooters very nicely and I will try small positive values as @JackD83 suggested to avoid stuttering. Thank you very much.

from alvr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.