Repository navigation
Conversation
… frame jitter - Breath of the Wild on iOS: commit d1966c5 enabled TOTK_SYNC_LAG by default for BotW. On iOS with CADisplayLink presentation pacing, the 1-frame relaxed fence wait causes frame pacing to fluctuate between 16.6 ms and 22 ms, leading to noticeable micro-stutter. Disable TOTK_SYNC_LAG on iOS so the game holds a solid, rock-steady 60 FPS. - On iPad docked play (DefaultValuePad), enable MetalFX spatial output upscaling (TOTK_IOS_DRAWABLE_H=0, TOTK_MFX_OUTPUT=1, TOTK_MFX_UPSCALE=1) to upscale docked canvases to the native Retina display cleanly rather than relying on system bilinear stretching.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses two display and performance improvements on iOS / iPad:
Eliminate 60 FPS Micro-Stutter on iOS (BotW):
d1966c52enabledTOTK_SYNC_LAG=1by default for Breath of the Wild (tested on macOS).CADisplayLink/CAMetalDrawable, this 1-frame relaxed fence wait causes frame pacing to fluctuate between 16.6 ms and 22 ms, leading to noticeable micro-stutter during 60 FPS gameplay.setenv("TOTK_SYNC_LAG", "0", 1);inapply_display_settingson iOS restores clean fence synchronization and eliminates the micro-stutter, keeping a stable 60 FPS.iPad Docked MetalFX Output Upscaling:
DefaultValuePaddefaults to docked mode), the 1080p canvas was previously stretched bilinearly by the compositor to the iPad screen (e.g. 2360x1328 on 11" iPad Air / 2732x2048 on 13").TOTK_IOS_DRAWABLE_H=0,TOTK_MFX_OUTPUT=1,TOTK_MFX_UPSCALE=1) during iPad docked play (with overwrite=0 so custom layer settings still win) allows Apple Silicon's hardware MetalFX spatial upscaler to reconstruct native Retina resolution with sharp edges and zero aliasing.Tested on iPad Air 11-inch (M4).