Added performance flags for Quest decives

This commit is contained in:
Simon 2023-12-12 22:29:57 +00:00
parent a1436a2722
commit 5d41a967b7
2 changed files with 9 additions and 4 deletions

View File

@ -28,6 +28,11 @@
<!-- META QUEST --> <!-- META QUEST -->
<meta-data android:name="com.oculus.supportedDevices" android:value="quest|quest2"/> <meta-data android:name="com.oculus.supportedDevices" android:value="quest|quest2"/>
<meta-data android:name="com.oculus.ossplash" android:value="true"/> <meta-data android:name="com.oculus.ossplash" android:value="true"/>
<!-- Set Dual Core mode for Quest 2/Pro -->
<meta-data android:name="com.oculus.dualcorecpuset" android:value="true" />
<!-- Enabling CPU and GPU level trading: -1 = -1 level to gpu, +1 level to cpu -->
<!-- CPU needs all the power it can get!! -->
<meta-data android:name="com.oculus.trade_cpu_for_gpu_amount" android:value="-1" />
<!-- PICO XR --> <!-- PICO XR -->
<meta-data android:name="pvr.app.type" android:value="vr" /> <meta-data android:name="pvr.app.type" android:value="vr" />

View File

@ -924,10 +924,10 @@ void ovrApp_HandleSessionStateChanges(ovrApp* app, XrSessionState state) {
"xrPerfSettingsSetPerformanceLevelEXT", "xrPerfSettingsSetPerformanceLevelEXT",
(PFN_xrVoidFunction * )(&pfnPerfSettingsSetPerformanceLevelEXT))); (PFN_xrVoidFunction * )(&pfnPerfSettingsSetPerformanceLevelEXT)));
OXR(pfnPerfSettingsSetPerformanceLevelEXT( // OXR(pfnPerfSettingsSetPerformanceLevelEXT(
app->Session, XR_PERF_SETTINGS_DOMAIN_CPU_EXT, cpuPerfLevel)); // app->Session, XR_PERF_SETTINGS_DOMAIN_CPU_EXT, cpuPerfLevel));
OXR(pfnPerfSettingsSetPerformanceLevelEXT( // OXR(pfnPerfSettingsSetPerformanceLevelEXT(
app->Session, XR_PERF_SETTINGS_DOMAIN_GPU_EXT, gpuPerfLevel)); // app->Session, XR_PERF_SETTINGS_DOMAIN_GPU_EXT, gpuPerfLevel));
if (strstr(gAppState.OpenXRHMD, "meta") != NULL) if (strstr(gAppState.OpenXRHMD, "meta") != NULL)
{ {