ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Tracking rewrite

Open zmerp opened this issue 1 year ago • 5 comments

The goal is to move prediction on the server side for Monado support and implement better tracking algorithms

zmerp avatar Oct 28 '24 15:10 zmerp

@The-personified-devil if you want you can continue the discussion here

zmerp avatar Oct 28 '24 16:10 zmerp

My point about the offset is that if we're already lying to Steamvr by predicting ahead of the frame render time we should at least tell it the most accurate info. I.e. that there's no additional offset to correct for. The only question is how to implement prediction increase. We can increase the offset to make steamvr predict more, or add or subtract from the predict to timestamp (or perhaps even adjust algos). Or we make a second setting for it

The-personified-devil avatar Oct 31 '24 07:10 The-personified-devil

My point about the offset is that if we're already lying to Steamvr by predicting ahead of the frame render time we should at least tell it the most accurate info. I.e. that there's no additional offset to correct for

The thing is we want the final rendered frame to have the pose that the client expects. We have to trick SteamVR by partially predicting the poses in advance, so that when it predicts to its virtual vsync, it's actually predicting to the real vsync.

We can increase the offset to make steamvr predict more

We tried, and this upsets SteamVR, causing spikes in game render latency or just clamping the prediction.

Or we make a second setting for it

We can try this

zmerp avatar Oct 31 '24 13:10 zmerp

https://github.com/orgs/alvr-org/projects/4 put this to in pogress

lucas11222 avatar Dec 10 '24 18:12 lucas11222

@lucas11222 I put it to done. it's not completely finished but it's in a state that unblocked monado progress.

zmerp avatar Dec 10 '24 18:12 zmerp