Hasty Briefsbeta

Blurry rendering of games on macOS

9 days ago
  • #AppKit
  • #Mac gaming
  • #display resolution
  • Games on MacBook displays may render incorrectly due to the notch, unless settings are adjusted.
  • CGDisplayCopyAllDisplayModes returns mixed resolutions for full display and area under the menu bar, causing confusion.
  • Most games default to the full display resolution, leading to squashed and blurry output.
  • NSScreen's safeAreaInsets can help filter resolutions but doesn't perfectly match the full screen area.
  • A proposed solution filters resolutions to fit within the safe area, though it may exclude some aspect ratios.
  • Several games, like Shadow of the Tomb Raider and No Man’s Sky, default to incorrect resolutions.
  • Correctly handling games include Cyberpunk 2077, which defaults to the proper 16:10 resolution.
  • Apple could improve by updating the HIG, Game Porting Toolkit samples, and providing better APIs for resolution handling.
  • Alternative approaches, like hardcoding resolutions or using render scale settings, might be viable but need official guidance.