Skip to content

Comparing to OpenVR

jdavidberger edited this page Jan 22, 2022 · 2 revisions

It is often useful to benchmark libsurvive or a particular room setup against the baseline position reported from steamvr. If you are finding significant differences, recordings with these benchmarks are crucial to be able to tune and test various setups.

The first step is to make sure you have the openvr dev dependencies installed. In ubuntu 21, this is done with:

sudo apt install libopenvr-dev

With this dependency, there is now an openvr driver that you can run with

./survive-cli --openvr

By itself, this just uses the external tracking from openvr and doesn't read any devices directly.

Linux

On linux, to capture the direct device data you need to run usbmon:

sudo apt install libpcap-dev
sudo modprobe usbmon
sudo setfacl -m u:$USER:r /dev/usbmon* # In sensitive environments, you can run survive-cli with sudo instead.

and then:

./survive-cli --usbmon --openvr --use-external-lighthouse --record steamvr-comparison.rec.gz

It is important to run this before opening steamvr. Otherwise libsurvive doesn't see configuration data that is necessary for tracking.

Windows

Note: Windows hasn't been extensively tested with this; so consider this section a work in progress. Let me know in discord if you run into issues.

On windows, you don't need usbmon to run; just make sure to run the normal plugin too:

./survive-cli --htcvive --openvr --use-external-lighthouse --record steamvr-comparison.rec.gz

It is important to run this before opening steamvr. Otherwise libsurvive doesn't see configuration data that is necessary for tracking.

Submitting Data

You can submit data either as a github issue or on discord. If for some reason you don't want to have it publicly available, let me know otherwise I'm interested in adding a bunch of these to unit tests to help the stability of libsurvive long term.

Clone this wiki locally