Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
1 vote
1 answer
1k 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 ...
1 vote
3 answers
7k views

How to set widget size that is independent of screen resolution/density in kivy

I had coded a simple click game with Python-kivy to android. You should click dots which are popping out randomly at screen. I set their size 20px to 60px as your level. But it seems when I try on ...
0 votes
1 answer
974 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 ...
1 vote
2 answers
675 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:...
0 votes
3 answers
905 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 ...
4 votes
2 answers
4k views

Direct3D 11: Changing fullscreen resolution does not work

In my application I can switch back and forth between windowed and fullscreen mode using IDXGISwapChain::SetFullscreenState. When the WM_SIZE is handled, IDXGISwapChain::ResizeBuffers is called in ...
0 votes
0 answers
89 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 ...
1 vote
0 answers
257 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. ...
0 votes
1 answer
157 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 ...
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): ...
18 votes
3 answers
16k views

Scaling my pixel art platformer from 720p to 1080p

I'm developing a pixel art 2D platformer for PC and smartphone, but I'm stuck on a technical issue. I chose to have a 32x32 tile resolution, and a 64x64 character sprite resolution. The levels are ...
0 votes
0 answers
147 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 ...
0 votes
1 answer
163 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....
1 vote
1 answer
762 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 ...
1 vote
1 answer
441 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 ...
0 votes
0 answers
1k 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 ...
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 ...
1 vote
2 answers
964 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 ...
1 vote
1 answer
3k 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 ...
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 ...
4 votes
3 answers
9k views

In what size should i design sprites for unity iOS? [closed]

I am developing a 2D platform game in unity.I have conceptualised the game and have to design the art assets/sprites, but the problem is at what resolution or size do i design them? If I target the ...
0 votes
1 answer
78 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 ...
0 votes
1 answer
219 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 ...
1 vote
1 answer
1k 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 ...
0 votes
0 answers
67 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 ...
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 ...
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'...
0 votes
2 answers
1k 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 ...
0 votes
0 answers
126 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 ...
1 vote
1 answer
5k 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. ...
1 vote
0 answers
646 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 ...
1 vote
1 answer
323 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 ...
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 ...
1 vote
2 answers
1k 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 ...
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, ...
0 votes
0 answers
971 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 ...
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? ...
9 votes
2 answers
31k 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. ...
1 vote
2 answers
313 views

How to solve problem with Terrain Flashing and then disappears when flying away?

I am making flight simulator( my first Unity project) , the biggest challenge so far is terrain, so whenever I fly away from it (not that far) the terrain starts flashing and disappears which is just ...
16 votes
1 answer
22k views

OpenGL: Resizing Display and glOrtho/glViewport

I have researched this question from several sources and have yet to find a firm answer saying that "yes that is correct thinking" or "no, here is how it's done." I am trying to ensure resolution ...
0 votes
1 answer
371 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 ...
0 votes
0 answers
33 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 ...
0 votes
1 answer
408 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 ...
0 votes
1 answer
819 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 ...
0 votes
1 answer
65 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 ...
0 votes
1 answer
197 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 ...
0 votes
1 answer
228 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 ...
0 votes
0 answers
210 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 ...
5 votes
1 answer
2k 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 ...
4 votes
2 answers
8k views

Is there a way to get native resolution of device window/display on android?

When change the framebuffer resolution by calling Screen.setResolution(1920,1080) ...