Skip to content

Commit

Permalink
Turn off MSAA for Zapbox (#657)
Browse files Browse the repository at this point in the history
Turn off MSAA for Zapbox

Co-authored-by: Simon Taylor <[email protected]>
  • Loading branch information
mikeskydev and Simon Taylor authored Mar 20, 2024
1 parent 5e64f88 commit c58affc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified Assets/AddressableAssetsData/iOS/addressables_content_state.bin
Binary file not shown.
7 changes: 7 additions & 0 deletions Assets/Scripts/Rendering/RenderWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ public void OnPreRender()
// TODO:Mikesky - setting MSAA seems to crash quest when in Vulkan

int msaa = QualityControls.m_Instance.MSAALevel;

#if UNITY_IOS && ZAPBOX_SUPPORTED
// Force MSAA off on iOS Zapbox - Unity implementation is poor on iOS
// which leads to more blits and resolve passes than should be required
msaa = 0;
#endif

// MSAA disabled in QualityControls = 0, but render texture wants 1.
if (msaa == 0) {
msaa = 1;
Expand Down

0 comments on commit c58affc

Please sign in to comment.