-
-
Notifications
You must be signed in to change notification settings - Fork 0
3. DataBridge Documentation
Welcome to the DataBridge documentation.
DesktopXR DataBridge is an application used to send data into the DesktopXR heads up display.
DataBridge is fully configured through a simple .ini file.
This guide explains how to configure the DesktopXR DataBridge.
Launch a VR game using DesktopXR ensuring HUD is enabled
DesktopXR-DataBridge.ini will be created in %appdata%\DesktopXR
Open:
DesktopXR-DataBridge.ini
with Notepad or any text editor.
After saving changes, restart the DataBridge application for them to take effect.
If the file does not exist yet, DataBridge will create it automatically on first launch.
The file looks like this:
[DataBridge]
refresh_rate_hz=4
gpu=%
cpu=%
[OBS]
enabled=1
host=127.0.0.1
port=4455
password=xxxxxxxxxxxxxxxx
[YT]
enabled=1
apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
videourl=https://youtube.com/live/xxxxxxxxxx
polling=4
livechat=1
[AudioSwitch]
hotkey=CTRL+ALT+F12
Controls how often DataBridge samples and writes telemetry into shared memory.
Default: '4'
Example:
refresh_rate_hz=8
Controls how GPU and CPU performance values are displayed in the DesktopXR HUD.
GPU and CPU can be configured independently.
Valid values:
% to show usage as a percentage.
ms to show frametime-style values, where lower values indicate faster frame processing.
Default: %
Example:
gpu=ms
cpu=ms
Start OBS and select Websocket Server Settings from the Tools menu
Select Show Connect Info
Copy Server Password
Paste into DesktopXR-DataBridge.ini after password= within the OBS section
Example:
password=xxxxxxxxxxxxxxxx
Visit https://console.cloud.google.com and login with your Google account
Select APIs and services > Library from the hamburger menu
Search for YouTube Data API v3 and then click Enable
Select Credentials > Create credentials > API key from the Manage YouTube Data API v3 page
Enter a name for the API key (eg. DesktopXR-DataBridge)
Select Create
Select Show Key next to your API
Copy Password
Paste into DesktopXR-DataBridge.ini after apikey= within the YT section
Example:
apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Once you have set up your youtube live stream, enter the URL in the DesktopXR-DataBridge.ini
Example:
videourl=https://youtube.com/live/xxxxxxxxxx
You have 10,000 free YouTube Data API v3 credits per day. Each API request for 'Live viewers' and 'Chat messages' costs 1 credit each.
The default API polling is every 4 seconds, meaning 2 credits used every 4 seconds giving you 5 hours 33 minutes 20 seconds per day.
You can change the API polling in the DesktopXR-DataBridge.ini as you see fit.
Example:
polling=8
To make switching audio output devices easier while gaming in VR, DesktopXR lets you assign a keybind that cycles through all available Windows audio devices.
Set the keybind in DesktopXR-DataBridge.ini, then enable the Desktop toggle and make sure your game is not selected. Once that is done, press the keybind to switch between audio devices.