[Scummvm-tracker] [ScummVM :: Bugs] #11430: macOS: blurry content on Retina displays

ScummVM :: Bugs trac at scummvm.org
Sun Oct 4 12:32:07 UTC 2020


#11430: macOS: blurry content on Retina displays
-----------------------+-------------------------------------
  Reporter:  dwatteau  |      Owner:  criezy
      Type:  defect    |     Status:  closed
  Priority:  normal    |  Component:  Port: Mac OS X
Resolution:  fixed     |   Keywords:  retina,dark mode,blurry
      Game:            |
-----------------------+-------------------------------------
Comment (by criezy):

 Thanks a lot for looking into that!

 The {{{ SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl") }}} seems like the
 easiest solution for now.

 An alternative (so that it can be changed without recompiling) could be to
 add the following to the Info.plist:
 {{{
     <key>LSEnvironment</key>
     <dict>
         <key>SDL_RENDER_DRIVER</key>
         <string>opengl</string>
     </dict>
 }}}

 Could you also confirm that the display is not blurry if you use the
 OpenGL graphics mode (instead of for example HQ2X) in ScummVM without any
 of those changes? Or does it somehow still go through Metal at some point?

 I also found a bit of information that could be useful. A similar bug was
 reported for Dota2 where on Retina screen the display would be blurry with
 the Metal version but not the OpenGL one. And they found a fix:
 https://github.com/ValveSoftware/Dota-2-Vulkan/issues/258#issuecomment-400393846
 > It turned out the issue is that the default value for
 CALayer.magnificationFilter is linear and we needed to set it to nearest
 sampling.

 This is maybe something that SDL could do.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/11430#comment:11>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list