Questions tagged [resolution]

The pixel resolution that the game displays in, or can be displayed in if there are multiple.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

How to adjust resolution to display only in portrait mode for both phones and tablet devices?

I am facing an issue where I'm able to adjust the resolution for different phones like Android and iOS but not for tablet devices. Is there any way to set it, for all kinds of devices, to display only ...
Mohammed Rilwan Ibrahim's user avatar
0 votes
0 answers
34 views

How to use SDL_RenderSetLogicalSize() properly in SDL2?

I want to handle different resolutions without altering any game objects. I tried using SDL_RenderSetLogicalSize() but I don't know how to implement it properly. ...
RGthehuman's user avatar
1 vote
1 answer
111 views

How to make sure my UI remains the same across multiple screens?

How to make sure my UI remains the same across multiple screens? I've looked at some tutorials, but they didn't seem to apply to my situation. I tried the following, but they didn't resolve my problem:...
Cei's user avatar
  • 863
0 votes
1 answer
78 views

How to handle UI when logical and screen sizes are different?

I am programming a game in SDL2 and I am looking for advice on how to handle interactivity of UI components when the screen resolution and logical resolutions are different. Up to now I have been ...
lancen's user avatar
  • 21
0 votes
1 answer
286 views

Game Displaying In Different Resolution When Built

When I build and run my game, the resolution is different than in editor. Note: My monitor's display settings are 2560 x 1440. My editor's game display is set to Full HD (1920 x 1080). I have UI ...
PayasoPrince's user avatar
0 votes
0 answers
101 views

Downscaling from 1080 to 768 in Unity 2D

I have an orthographic camera of size = 10.8 and I use it as base and have developed the game for a 1080 display. On a ...
FunnelScr's user avatar
0 votes
3 answers
433 views

Why do my svg sprites (vector images) appear to have very low resolution in the game view and how can I fix this issue?

I recently drew a game sprite for my game using Adobe Illustrator 2021. I exported the sprite using the Export for Screens menu to export the entire artboard. The problem I have in Unity 2021+ is that ...
rasputin's user avatar
0 votes
1 answer
545 views

How to fit game to screen size?

I create a WebGL game. After building project I discovered that the game doesn't fit the screen size How you can see the canvas is perfectly scaled but the game didn't I don't know what I changed but ...
EzioMercer's user avatar
0 votes
1 answer
83 views

Android Specifications : What are the integer values for "small" screen size, "normal" screen size, ldpi, mdpi, hdpi?

Android has this document where they define thee terms for screen size, and pixel density such as screenSize="small", "ldpi". Here is the link to that document: https://developer....
Job_September_2020's user avatar
1 vote
1 answer
462 views

How to detect if a mobile device is a foldable phone?

There are new "foldable" mobile devices such as Samsung foldable phones. Is there any way we can write a C# script in Unity to detect if the device is a foldable phone ? I try, but can't ...
Job_September_2020's user avatar
1 vote
1 answer
177 views

Godot distorting pixels

As the title says, Godot is stretching/distorting pixel art. It seems to be dependent on where on the screen the pixel is located. I've already double-checked my project settings and searched several ...
shreyasm-dev's user avatar
2 votes
1 answer
3k views

Unity build changes its resolution after going to windowed mode and then back to fullscreen

It seems to me that this behavior is incorrect (or at least illogical). Correct me if I'm wrong. Repro (Unity 2020.3.26f1 LTS / default project settings): Run the build (in fullscreen by default): ...
Serg's user avatar
  • 353
1 vote
2 answers
681 views

D3D11 wrong full screen resolution

I am currently writing a Directx 11 engine and have problems with the resolution when switching to exclusive fullscreen on my 1440p monitor. If i call SetFullscreenState(TRUE, NULL), the screen ...
Kyto's user avatar
  • 31
1 vote
1 answer
2k views

What color format, depth buffer should I use in a RenderTexture for WebGL screen output in Unity? Is NPOT ok? MipMaps?

Today I learned about a technique for forcing uniform resolution in a Unity WebGL build, as described here in the answer by DMGregory. Yay! I'm experimenting with implementing this technique on a ...
Acme Nerd Games's user avatar
11 votes
3 answers
5k views

Performance degrading when resolution increases for a 4k screen

I am new to Unity. I have a problem where my game has good performance on my non-4k screen. Bur when I play it on my 4k screen, the performance gets really bad. It looks like the resolution is ...
Kims's user avatar
  • 219
0 votes
1 answer
155 views

How resource-intensive is the java.awt.Graphics2D object at different screen resolutions?

I'm currently making a 2D RPG in pure Java (yes, I know other frameworks/engines exist xD). I just created a resizing algorithm and I've noticed that different resolutions result in different FPS ...
ElliottV4's user avatar
1 vote
1 answer
959 views

Help me Make Sense of Unity 2D Resolution Management

I am trying to set up an environment for a retro style pixel art game in Unity 2D. I aim for a vertical resolution of 240 pixels, and then, I would like the horizontal resolution to be dependent on ...
Gergely Kovacs's user avatar
0 votes
0 answers
60 views

How realistic are procedural textures in sandbox?

I'm working with Unreal and want to make a Minecraft-Style Block-Sandbox with HD-textures. Since at that resolution the repetitive pattern becomes too noticable, I'd like the game to generate the ...
Mat NX's user avatar
  • 101
0 votes
1 answer
74 views

Box2d: High screen resolution / frequency causes high friction?

I'm using Cocos Creator with (built-in) box2d for physics. Recently our game behaves weirdly on our new device Galaxy S20 Ultra 5G - which has screen size = 1440 x 3200 - frequency = 120Hz. After stop ...
vantrung -cuncon's user avatar
1 vote
1 answer
2k views

Get all supported resolutions for a monitor

I've been receiving complaints from users that my game doesn't support the 16:10 aspect ratio. Currently I list everything in Screen.resolutions in a dropdown and ...
mr-matt's user avatar
  • 2,749
0 votes
2 answers
859 views

Default Game Window Size To Take While Making Games

I am planning to make a game for mobiles and tablets, I wanted to know what would be the default resolution that I should set for my game so that it covers all or most of the devices out there. I read ...
Shiv's user avatar
  • 1
0 votes
0 answers
120 views

libgdx images go out of proportion on some devices

I'm trying to develop a simple game using libgdx. The game works perfectly on emulator ( Nexus 5x API 26 x86 ). But when I generated its apk and tested on my phone(Samsung J7), the images somehow seem ...
Abhishek Agrawal's user avatar
1 vote
1 answer
4k views

Unity - Pixels, Units, Sprites and Pixels per unit - Setting a relationship between sprites and screen size

I don't get how units and pixels work in Unity. For instance: Here I have a camera with size 5. This means that there are 5 units from the center of the camera to either the top or bottom border. ...
Enrique Moreno Tent's user avatar
1 vote
1 answer
278 views

Java - set resolution of game

Hi everybody I am making small game using pure Java 8 and rednering it by Java AWT Graphics2D method . My question is how to make that user can change the quality ...
user avatar
1 vote
0 answers
605 views

Handling zooming in for a spot-the-difference game in different screen resolutions

I am creating a 2D game for Android as a school project. The objective of the game is to find differences between the top image and the bottom image. I have 1 main camera, which views the entire ...
Chuko's user avatar
  • 11
0 votes
1 answer
2k views

Different resolution for UI?

I'm developing my first game for mobile devices in Unity3D. My game uses a 720p-resolution. Currently the UI uses the same one. So far so good. I heard that professional game-developers create their ...
drpelz's user avatar
  • 239
1 vote
2 answers
884 views

What is the proper way of handling resolution and size units on a 2D game?

So I started to learn SDL2 and I want to make a simple 2D game. Now when I render a texture I have to specify in pixels the size of the element I want to draw and also the position in pixels on the ...
ellipticaldoor's user avatar
0 votes
0 answers
941 views

How to change application surface size without changing view size? (GMS2)

I am working on a pixel art project in GameMaker 2 with native resolution 428x240. In order to enable "subpixel" rending, I am trying to increase the resolution of my ...
DyingIsFun's user avatar
  • 1,307
1 vote
1 answer
2k views

couldn't switch to requested monitor resolution in Windows 7

Run the game,and it shows that it couldn't switch to requested monitor resolution, DX11 could not switch resolution in Windows 7(both 32 and 64 bit ) when I tried to build the game with Unity 2017.3, ...
zyo zyo's user avatar
  • 21
0 votes
0 answers
918 views

How to make game playable in all mobile screen resolution using Unity Cinemachine with perspective mode?

I want my 2D game to be playable (auto scale) in all screen resolution. I'm using Cinemachine & under "perspective" mode. I found tutorial to change the screen in "orthographic" mode but there is ...
Min's user avatar
  • 1
0 votes
1 answer
3k views

Unity my game starts in windowed mode, but the fullscreen box is checked

When I open my game the fullscreen box is checked, but the game is windowed. If I uncheck and check the box it will go into fullscreen. What is the fix? ...
Ethan K-B's user avatar
1 vote
2 answers
1k views

Pixel Perfect 2D tiles

I'm trying to make an 64x64 tilemap using Super Tilemap Editor & Unity but my tiles looks terrible. I did my research about pixel perfect 2D and all of the solutions were for pixel art, they didn'...
TufanMeric's user avatar
0 votes
1 answer
318 views

How to keep consistent between image quality, device range support and final size of the game?

I am developing a game with the LibGdx framework, but I would like to discuss a more theoretical question. Criteria: I want to support as many devices as possible for my game (phones and tablets) I ...
John Robinson's user avatar
0 votes
0 answers
32 views

Game was resized incorrectly for no apparent reason (GameMaker)

I exported the game with the following graphics settings: OBS - Interpolate colors between pixels would be like a Antiliasing. I do not think it is the cause of the problem, but I will test without ...
Boneco Sinforoso's user avatar
0 votes
1 answer
334 views

What resolution should I render art for a 3D game for PC?

I hope this is not too stupid a question. I'm making my first game for PC and I'm wondering what resolution I should render the artwork at. It will be a fixed-perspective game, so I'm using a 2D ...
José Guedes's user avatar
0 votes
1 answer
732 views

How to allow a 2D game to work with all screen resolutions without only using Unity's Canvas Scaler

I know there's plenty of questions out there already, however it seems as though there's always an update or change to either the Unity platform, the phone screen sizes, etc. I'm struggling with ...
Indy-Jones's user avatar
0 votes
1 answer
58 views

Unity game resolution lowered

I recently upgraded unity from 2018.1 to 2018.2 and also upgraded my nvidia geforce. I have seen that the letters resolution of the program itself are better now but my game tab is going lower res ...
Sara Kat's user avatar
  • 111
0 votes
1 answer
177 views

Setting up a low res viewport to stretch in Unity

I am working on porting a low-res game over to Unity. In my previous engine, I had the option to set a native resolution (say, 160 x 144), and it would automatically stretch when the player entered ...
DyingIsFun's user avatar
  • 1,307
0 votes
1 answer
210 views

Can't scale properly to android device in Game Maker Studio 1.4

My phone is using a resolution of 360 x 640 with a 9:16 aspect ratio. I set my room in game maker to ...
Rubbish Ambush's user avatar
0 votes
0 answers
168 views

How do I lower the resolution scale in DX11?

I've tried a lot of things including lowering the backbuffer size but that causes terrible scaling that I can't really control. I've also tried rendering the scenes to a smaller texture then scaling ...
David C.'s user avatar
  • 116
2 votes
2 answers
2k views

How to adjust objects' coordinates and scale for different device resolutions?

I have a bunch of objects which are generated in specific coordinates, let's say in a range of -5 to +5 on the X axis. I came up with these numbers because of camera size I have in Unity editor. What ...
Random generalist's user avatar
0 votes
1 answer
895 views

Mobile screen resolution and canvas size

I'm making a HTML5 game using the canvas. I was building it for my iPhone 6 which state a resolution of 1334x750 pixels but also a resolution of 667x375 points. I notice that my canvas need to match ...
the_lotus's user avatar
  • 237
0 votes
1 answer
1k views

Unity Blurry on new Windows 4k Computer

I just got a Razer 14 Inch 4k with a GTX 1060 and am having some blurry rendering in unity. Also the cursor is tiny... Here is a screen shot: As you can see, the rendering is really blurry. I came ...
Wp3Dev's user avatar
  • 137
0 votes
1 answer
444 views

Implement resolution scaling HTML5 canvas

I'm building an hmtl5 real time game using socket.IO and node.js. If you've heard of the classic game "pong", I'm going for that. When you consider the gameplay for this game, it becomes apparent that ...
Caleb Bertrand's user avatar
1 vote
1 answer
432 views

Viewport for pixelart (WebGL)

I'm trying to display 16x16 pixel art textures (all textures have 16x16), but they are not displayed how I expected (they are ...
greedsin's user avatar
  • 118
1 vote
1 answer
2k views

Unity - get screenshots from various resolutions

To upload my app to Google Play I need to provide various screenshots. Thing is, I have only one tablet, no phone and I don't feel like virtualizing a bunch of devices. Is there a way to create ...
agiro's user avatar
  • 269
5 votes
1 answer
1k views

Making a pixel-perfect viewport in LibGDX

My game that uses LibGDX as the graphics library, should be playable with every display. Here's the problem: It have to be pixel-perfect. That means, the scale factor must be an integer value, so that ...
null's user avatar
  • 191
1 vote
0 answers
53 views

What is the perfect sprite size for new ipads with retina displays [closed]

The graphic designer is sending me huge sprites 3000px in width drawn by hand. And now the company is hiring a professional painter to paint huge oil paintings for the game for other levels. Nothing ...
Lynob's user avatar
  • 381
9 votes
2 answers
30k views

How to force keep the aspect ratio and specific resolution without stretching the output screen view?

I'm using Screen.SetResolution() But when I run in Android device, it shows the output image is stretched to fill up the full screen which I don't want. I want it to keep the aspect ratio properly. ...
elliotching's user avatar
1 vote
0 answers
2k views

Best base resolution for a pixelart project for bigger audience [closed]

I've been working on Top-down 2D pixel art project for quite some time. When I first started my project, I actually set application surface, display and game window to match 1:1 - with that said, the ...
Martin's user avatar
  • 11