supertuxkart / stk-code

The code base of supertuxkart
Other
4.52k stars 1.06k forks source link

Problems with fullscreen on some monitors #3614

Open Mrxx99 opened 5 years ago

Mrxx99 commented 5 years ago

Description

I have my secondary monitor (using laptop) as main monitor, so STK starts there. But if I start STK with the second monitor disconnected, it does start with only a part of the UI visible: 2018-11-24 02_09_03-supertuxkart

This also happens when changing in game to fullscreen

Configuration

STK release version: current git (master) 459119075a724ab4aec81d6b86aa7f931386d479

Note: happens also with stabel 0.9.3 versioin

System: Windows 10 64-bit

Graphics card: NVIDIA GEFORCE GTX 1050

CPU: Intel Core i5-8250U

Additional information

graphics infos, if relevant:

stdout.log

[info   ] IrrDriver: OpenGL version: 4.3
[info   ] IrrDriver: OpenGL vendor: Intel
[info   ] IrrDriver: OpenGL renderer: Intel(R) UHD Graphics 620
[info   ] IrrDriver: OpenGL version string: 4.3.0 - Build 23.20.16.4973
Alayan-stk-2 commented 5 years ago

Is this the same issue as #3409 ?

You use a windows system and me a linux one, but the symptoms are identical, so the root cause may be the same.

@deveee suggested adding logs for various width/height value in order to see where the wrong value comes from.

Mrxx99 commented 5 years ago

@Alayan-stk-2 Not sure, that other one is on Linux and I am using the default resolution.

qwertychouskie commented 5 years ago

I tested the 0.9.3 PortableApps version of STK on a friend's new Windows 10 laptop and had a similar/same issue. I had to go into Windows's compatibility settings and change the scaling setting.

deveee commented 5 years ago

Is this related to graphics drivers? I mean, does it happen with your nvidia? Because in stdout.log it says intel 620.

Mrxx99 commented 5 years ago

Strange that it says intel because I have NVIDIA, also regularly updated. Does STK not recognise my graphics card?

deveee commented 5 years ago

Maybe related to https://github.com/supertuxkart/stk-code/issues/3076

hiker commented 5 years ago

I had similar issues (when using my nvidia card). I had to adjust the high dpi settings or scaling options in the properties for the executable - can't remember the details now unfortunately :(

IceflowRE commented 5 years ago

Same problem here: Windows 10 64bit GTX 1080ti 2560x1440

It gets first cropped or some parts are on my second screen and then like below. image

IceflowRE commented 5 years ago

Here a fix workaround for windows user image Right click, open the properties and enable in the compatility tab -> change high DPI settings Override high DPI scaling behavior

major-mayer commented 4 years ago

Nice one, this made it also possible for me to play this game in 4k without completly messed up UI. But I think it shouldn't be nessecary to do that.

IceflowRE commented 4 years ago

For someone who wants to resolve that for windows https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests, can set that value via dpiAware and/or dpiAwareness.

This can be included in a windows resource file with CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "dpiaware.manifest" (if dpiaware.manifest is the file from above).

And finally the resource file can be just included in the cmake source file list.

Benau commented 4 years ago

can you try if https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/git20200604/SuperTuxKart-git20200604-win.zip/download behave better?

IceflowRE commented 4 years ago

can you try if https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/git20200604/SuperTuxKart-git20200604-win.zip/download behave better?

If the download speed wouldn't be throttled with 500kb/s, yes. Edit: Tested. It does and does not fix it. It is not that weird like before, on the other hand i cannot choose my maximum resolution, it switches automatically back to a lower one. image

Benau commented 4 years ago

hmm if that's the case then it's sdl2 thinks that the max possible resolution, or deve!

IceflowRE commented 1 year ago

As of 1.4, it is not completely gone, for example the texts/font are pixelated.