Skip to content

Instantly share code, notes, and snippets.

@larsbergstrom
Created April 15, 2019 15:01
Show Gist options
  • Save larsbergstrom/7dd790fbca15d48baf3bce179d41e9fb to your computer and use it in GitHub Desktop.
Save larsbergstrom/7dd790fbca15d48baf3bce179d41e9fb to your computer and use it in GitHub Desktop.
// Each value can be set independently meaning you can change resolution without changing FPS and vice versa
// we default to(1024x1024 @ 60fps w/ 5000000 bitrate (5Mbps) in the absence of setprops
adb shell setprop debug.oculus.capture.width 1920
adb shell setprop debug.oculus.capture.height 1080
adb shell setprop debug.oculus.capture.fps 30
adb shell setprop debug.oculus.capture.bitrate 10000000
// You probably want to change the FOV to match the 1080p resolution as well:
adb shell setprop debug.oculus.eyeFovDown 39
adb shell setprop debug.oculus.eyeFovUp 38
adb shell setprop debug.oculus.eyeFovOutward 50
adb shell setprop debug.oculus.eyeFovInward 50
// You can (optionally) change the games back buffer to render 1 to 1 with capture size
adb shell setprop debug.oculus.textureWidth 1920
adb shell setprop debug.oculus.textureHeight 1080
// Turn off foviation, dynamic clocking and bump cpu / gpu levels to max
adb shell setprop debug.oculus.foveation.level 0
adb shell setprop debug.oculus.adaclocks.force 0
adb shell setprop debug.oculus.cpuLevel -1
adb shell setprop debug.oculus.gpuLevel -1
Instructions: boot up HMD, enter those adb commands, tap the power button to power cycle the screen (just the screen, not the device). Launch your app and record. Reboot to reset these values to what they used to be.
adb shell setprop debug.oculus.enableVideoCapture 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment