fixed the dimensions on texture resoltuion to adhere to 1.1 scale

This commit is contained in:
Shane Harris
2021-05-12 12:56:07 +01:00
parent d278c3bf7d
commit 05943b6cc0
3 changed files with 31 additions and 6 deletions
@@ -170,13 +170,13 @@
<div class="button-section"> <div class="button-section">
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button" <div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1024)">Default - Oculus Go</div> (click)="setSSO(SSO._Go)">Default - Oculus Go</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button" <div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1280)">Default - Oculus Quest</div> (click)="setSSO(SSO._Quest1)">Default - Oculus Quest</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button" <div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1440)">Default - Oculus Quest 2</div><br> (click)="setSSO(SSO._Quest2)">Default - Oculus Quest 2</div><br>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button" <div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._512)">512</div> (click)="setSSO(SSO._512)">512</div>
+27 -2
View File
@@ -34,6 +34,9 @@ enum SSO {
_2560, _2560,
_3072, _3072,
_1440, _1440,
_Go,
_Quest1,
_Quest2,
} }
enum SVR { enum SVR {
_1024, _1024,
@@ -173,39 +176,61 @@ export class ToolsComponent implements OnInit {
}); });
} }
setSSO(sso: SSO) { setSSO(sso: SSO) {
let value = 0; let value = 1440;
let hvalue = 1584;
switch (sso) { switch (sso) {
case SSO._512: case SSO._512:
value = 512; value = 512;
hvalue = 563;
break; break;
case SSO._768: case SSO._768:
value = 768; value = 768;
hvalue = 845;
break; break;
case SSO._1024: case SSO._1024:
value = 1024; value = 1024;
hvalue = 1127;
break; break;
case SSO._1280: case SSO._1280:
value = 1280; value = 1280;
hvalue = 1408;
break; break;
case SSO._1536: case SSO._1536:
value = 1536; value = 1536;
hvalue = 1690;
break; break;
case SSO._2048: case SSO._2048:
value = 2048; value = 2048;
hvalue = 2253;
break; break;
case SSO._2560: case SSO._2560:
value = 2560; value = 2560;
hvalue = 2816;
break; break;
case SSO._3072: case SSO._3072:
value = 3072; value = 3072;
hvalue = 3380;
break; break;
case SSO._1440: case SSO._1440:
value = 1440; value = 1440;
hvalue = 1584;
break;
case SSO._Go:
value = 1024;
hvalue = 1024;
break;
case SSO._Quest1:
value = 1216;
hvalue = 1344;
break;
case SSO._Quest2:
value = 1440;
hvalue = 1584;
break; break;
} }
this.runAdbCommand('adb shell setprop debug.oculus.textureWidth ' + value) this.runAdbCommand('adb shell setprop debug.oculus.textureWidth ' + value)
.then(() => this.runAdbCommand('adb shell setprop debug.oculus.textureHeight ' + value)) .then(() => this.runAdbCommand('adb shell setprop debug.oculus.textureHeight ' + hvalue))
.then(() => this.runAdbCommand('adb shell "settings put system font_scale 0.85 && settings put system font_scale 1.0"')) .then(() => this.runAdbCommand('adb shell "settings put system font_scale 0.85 && settings put system font_scale 1.0"'))
.then(() => { .then(() => {
this.statusService.showStatus('Texture Resolution set OK!!'); this.statusService.showStatus('Texture Resolution set OK!!');
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "SideQuest", "name": "SideQuest",
"productName": "SideQuest", "productName": "SideQuest",
"version": "0.10.20", "version": "0.10.21",
"description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.", "description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.",
"repository": "https://github.com/SideQuestVR/SideQuest.git", "repository": "https://github.com/SideQuestVR/SideQuest.git",
"license": "UNLICENCED", "license": "UNLICENCED",