From 90e8f1bf14ea745ed819673430a6104c54d9e008 Mon Sep 17 00:00:00 2001 From: Shane Harris Date: Thu, 13 May 2021 09:28:06 +0100 Subject: [PATCH] added refresh rate section back in --- .../src/app/tools/tools.component.html | 22 +++++++++++++++++++ desktop-app/src/app/tools/tools.component.ts | 8 +++++++ 2 files changed, 30 insertions(+) diff --git a/desktop-app/src/app/tools/tools.component.html b/desktop-app/src/app/tools/tools.component.html index a7b812c..0968aaf 100644 --- a/desktop-app/src/app/tools/tools.component.html +++ b/desktop-app/src/app/tools/tools.component.html @@ -26,6 +26,28 @@ +
+ Refresh Rate
+ This will allow you to change to 90Hz refresh rate for 90fps support in games on Quest 2.
+ WARNING: This does not work in all games, and does not work with Oculus Link. This setting may also reset to default when you restart your headset. You may need to press the power button twice to turn the screen off and on to enable this setting for apps that dont have it natively enabled. +
+
Default
+
60Hz
+
72Hz
+
90Hz
+
120Hz
+
Pavlov Settings
diff --git a/desktop-app/src/app/tools/tools.component.ts b/desktop-app/src/app/tools/tools.component.ts index e4c8deb..f640ada 100644 --- a/desktop-app/src/app/tools/tools.component.ts +++ b/desktop-app/src/app/tools/tools.component.ts @@ -53,8 +53,10 @@ enum SVB { _25Mbps, } enum RR { + _60, _72, _90, + _120, } @Component({ selector: 'app-tools', @@ -160,12 +162,18 @@ export class ToolsComponent implements OnInit { setRR(rr: RR) { let value = 72; switch (rr) { + case RR._60: + value = 60; + break; case RR._72: value = 72; break; case RR._90: value = 90; break; + case RR._120: + value = 120; + break; } this.runAdbCommand('adb shell setprop debug.oculus.refreshRate ' + value) .then(() => {