Jump to content

Why setting 'resolution' is just making width and heigh higher?


Taro
 Share

Recommended Posts

In Phaser 2 (CE), setting 'resolution' makes image better quality.
In Phaser 3, setting resolution is just making width and heigh higher and scaling images (lower quality). I set resolution both to 1 and window.devicePixelRatio (will be 2 or 3), but there are no different, no better quality, nothing.

Am I missing somethings about 'resolution'? Any help?

Link to comment
Share on other sites

  • 5 months later...

Hi

Quick one (hopefully).  Is using the resolution setting the best way to deal with HDPI screens on mobile?  i.e. set the game size to the innerHeight and innerWidth of the screen and then set the "resolution" setting to the devicePixelRatio.

It seems to work, but I am getting a bit of a performance lag.  I assume just because the higher resolution means that device is working harder rather than because it's not the proper solution?

Thanks :)

D

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...