aiaf Posted September 13, 2020 Share Posted September 13, 2020 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 ? Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Yue Posted September 13, 2020 Share Posted September 13, 2020 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. 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. Quote Link to comment Share on other sites More sharing options...
aiaf Posted September 13, 2020 Author Share Posted September 13, 2020 Yes , because you get to have the 100% scale for those resolutions. Setup small resolution and increase scale and boom. The problem i describe is still there , you dont know how each player could have setup the windows scale ... Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Yue Posted September 13, 2020 Share Posted September 13, 2020 Well, I think there is no solution to this, I've been at it for a long time. It's terrible for a game user and that its resolution scaling doesn't work, but I think that nothing can be done. Quote Link to comment Share on other sites More sharing options...
Marcousik Posted September 14, 2020 Share Posted September 14, 2020 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: TEMP 2020-09-14 17-41-55.mp4 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. Quote Link to comment Share on other sites More sharing options...
Yue Posted September 16, 2020 Share Posted September 16, 2020 It seems that the problem is the GUI, if it is not used, it works perfectly, even if this means creating a GUI system based on the engine's own image drawing commands. Quote Link to comment Share on other sites More sharing options...
aiaf Posted September 16, 2020 Author Share Posted September 16, 2020 Nope , i don't use the GUI. Last comment here i applied brutal method , my game will only be played in windowed mode. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Yue Posted September 16, 2020 Share Posted September 16, 2020 I don't know what to say. Quote Link to comment Share on other sites More sharing options...
Josh Posted September 17, 2020 Share Posted September 17, 2020 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. 1 Quote 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 More sharing options...
Recommended Posts
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.