Repository navigation
Conversation
The present stretched the game picture bilinearly to the drawable, and the drawable kept its first size: a macOS fullscreen on a 4K screen got a 2560x1440 drawable that the window server stretched again. The drawable now follows the view in pixels (resize, fullscreen, backing scale), and when it is at least 1.25x the picture on both axes the picture goes through MTL4FXSpatialScaler to the size it covers before the usual copy. DM_PRESENT_UPSCALE=0 turns it off. Dark Souls Remastered, M4 Pro, 4K monitor: fullscreen 1920x1080 -> 3840x2160, window 1920x1080 -> 2560x1440; 60 fps held, GPU p95 6-7 ms; no white frame over 678 frames of screen video. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Two notes from working on #62:
|
d09ed4e to
c422a32
Compare
|
Closing as superseded by #215, which provides the newer opt-in MetalFX present path, launcher setting and Mac/iPhone measurements. The drawable-resizing fix is already on main. #215 is still open; the remaining upscaling work will be tracked there. Thanks for the original implementation and measurements. |
What
MTL4FXSpatialScalerto the size it covers before the usual copy.DM_PRESENT_UPSCALE=0turns it off.Numbers (Dark Souls Remastered, M4 Pro, 4K 60 Hz monitor)
Tested
Measured on the Dark Souls Remastered bring-up branch. Ported onto
main; builds withmake GAME=010015100B514000, not run with another game.🤖 Generated with Claude Code