Jump to content

resolution issue and windows scaling


aiaf
 Share

Recommended Posts

Think was discussed before somewhere on forum , but now i have a more clear case and is very bad:

 

  • resolution 3840x2160, scale factor 100%

game works just fine

  • resolution 3840x2160, scale factor 150%

crash with this error:

Structura start

Initializing OpenGL graphics driver...
OpenGL version 460
GLSL version 460
Device: GeForce GTX 1060 6GB/PCIe/SSE2
Error: Window is NULL
Window is NULL

This only happen when trying to use fullscreen, windowed is ok.

But for 150% scale + window mode theres another problem the window will be very large you cannot see everything.

 

Example on my machine , im getting the last graphics mode which is 4k:

  int cgm = System::CountGraphicsModes();
  iVec2 vgm = System::GetGraphicsMode(cgm);

Then i get a crash because im using 150% scale factor.

 

This happens also at 2560x1440, i just change resolution on desktop and put 150% scale and bang crash.

 

Im preparing for steam release and polishing things and i encountered this,

in current state if people buy the game is very probable that will not be able to play in full screen.

 

There is a workaround for this ?

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

What I have discovered is that this works correctly if in the configuration of the card does not exceed a certain setting, look at this image. image.thumb.png.6ca3a68386519370e80860d0f120e2ab.png

If I use Ultra HD, HD, SD configuration, full screen problems. Now if I go down and leave this configuration in the lower resolutions, everything is fine. PC resolutions.

 

image.thumb.png.7a2a59f43c98a105b273e283f14eac66.png

 

 

 



 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

I have weird issues with ingame screensize options as soon as I put my windows resolution on 2715 x 1527 (2.00x)

Everythig works allright with windows set at 1980x1080

Look at those crazy values maybe this could help solve this:

Seems that the bug (or a part of it) runs out of System:GetGraphicsMode() when windows uses "super" resolutions.

 

https://www.itechtics.com/change-screen-resolution/#Method_2_Change_Screen_Resolution_using_command_prompt

That could be a work around: 

You Look at the second method, I tested it and it really runs ok. 

so you could in theory switch with this tool the windows resolution before your game start to a common resolution like 1600x1024, then let the user plays with the Leadwerks options  ( that should  run ok)

At the end the tool should be return the gamer's windows resoluiton to the origine one.

 

 

 

Link to comment
Share on other sites

A lot of games have problems running at anything other than 100 or 200% scaling. I see this all the time in my steam catalog. The problem is that the Windows "emulation" of non-DPI aware apps is flawed and reports back wrong screen resolutions, or something like that. If someone is using an odd scaling, your game is not the first one they have seen with this issue.

in the new engine I worked through all these details and made the GUI resolution-independent. I had to redesign the GUI so it would scale or else it would appear tiny on a screen with 200% scaling.

There is a command called SetProcessDPIAwsre in windows you could try calling when your game starts.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...