Skip to content

Commit

Permalink
Improve Quest 2 Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
CADIndie committed Apr 4, 2024
1 parent 3b79202 commit c179af6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Assets/Oculus/OculusProjectConfig.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 05d394ae2a81edd4cbc3c51917e766e3, type: 3}
m_Name: OculusProjectConfig
m_EditorClassIdentifier:
targetDeviceTypes: 010000000200000003000000
targetDeviceTypes: 0200000003000000
allowOptional3DofHeadTracking: 0
handTrackingSupport: 0
handTrackingFrequency: 0
Expand Down
1 change: 1 addition & 0 deletions Assets/Plugins/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</intent-filter>
</activity>
<meta-data android:name="com.oculus.trade_cpu_for_gpu_amount" android:value="-1" />
<meta-data android:name="com.oculus.dualcorecpuset" android:value="true" />
</application>
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
</manifest>
Binary file modified Assets/Plugins/Android/Pojlib-release.aar
Binary file not shown.
41 changes: 21 additions & 20 deletions Assets/Scenes/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &158777818
RectTransform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2031,7 +2031,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 3.4e-44, z: 0, w: 3.4e-44}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -2968,7 +2968,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 4.5904e-41, y: -1.2263253e-36, z: 4.97e-43, w: 1.46e-43}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -3197,7 +3197,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 3.4e-44, z: 0, w: 3.4e-44}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -4961,7 +4961,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 4.5904e-41, y: -1.3982873e-36, z: 4.97e-43, w: 1.46e-43}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -5189,7 +5189,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 3.4e-44, z: 0, w: 3.4e-44}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -5283,7 +5283,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 4.5904e-41, y: -6.61087e-36, z: 4.97e-43, w: 2.606307e-18}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -6322,7 +6322,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 1.6165529e-16}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -6416,7 +6416,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 6e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -9956,7 +9956,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 1.6165529e-16}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -12375,7 +12375,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 1e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -13510,7 +13510,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 1.6165529e-16}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -13681,7 +13681,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 1.5e-44}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -16370,6 +16370,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
modArray: {fileID: 0}
instanceName: {fileID: 448657574}
modLoaderButton: {fileID: 0}
--- !u!1 &1480376449
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -16459,7 +16460,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.05e-43, y: 1.0596762e-38, z: 1.775259e+28, w: 5.0831535e+31}
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 1.6165529e-16}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -17522,7 +17523,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 1e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -19416,7 +19417,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 4e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -20108,7 +20109,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 3.4e-44, z: 0, w: NaN}
m_BoundingSphereOverride: {x: 1.7465938e-29, y: 0, z: 0, w: 4e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -20953,7 +20954,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 4e-45}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -22976,7 +22977,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0, y: 4.056606e+31, z: 7.64e-43, w: 2.07e-43}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down Expand Up @@ -25449,7 +25450,7 @@ Light:
m_BounceIntensity: 10
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 1.02e-43, y: 0, z: 0, w: 1.6165529e-16}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
Expand Down
4 changes: 4 additions & 0 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ PlayerSettings:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 11400000, guid: 957309af6ba10104288fdd5edd3372bf, type: 2}
- {fileID: 6154349898728414384, guid: d659781fbeb3ee24a850529d00b6529e, type: 2}
- {fileID: 11400000, guid: a100f0bdf54e50046abf85cff7c4477a, type: 2}
- {fileID: -7708906362836054733, guid: 7b5da002d83fb8f42ac49c354e6f6d31, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit c179af6

Please sign in to comment.