Skip to content

Managing multiple resolutions/viewport sizes #2507

Answered by giuppe
RichardBray asked this question in Q&A
Discussion options

You must be logged in to vote

When working on mobile, I found much simpler to address this problem via the screen ratio instead of the resolution. On PC we use the concept of resolution because:

  • historical reasons;
  • the pixel density is mostly the same (although this is changing in the last years);
  • usually the number of possible resolutions is small.

That's complicated to do on mobile, as:

  • there are many different non-standard resolutions;
  • there are a lot of possible different pixel densities;
  • the OS locks your ability to change the resolution;
  • and in many cases the OS can and will give you a different res than the actual one .

What I usually do:

  • I choose a resolution for the game, the native res, that is the "gam…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RichardBray
Comment options

Answer selected by RichardBray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants