Page 1 of 1

[Pending] Factorio not working in high resolution

Posted: Wed Jun 01, 2016 10:35 am
by nuhll
Hi,
with my new monitor i cant play factorio anymore.

viewtopic.php?f=49&t=25902&p=164118

Its not running in fullscreen, i cant change resolution, it just takes less then 1/4 on my screen.

Re: Factorio not working in high resolution

Posted: Wed Jun 01, 2016 11:50 am
by Loewchen
Please upload your log-file.

Re: Factorio not working in high resolution

Posted: Wed Jun 01, 2016 12:09 pm
by Klonan
nuhll wrote:Hi,
with my new monitor i cant play factorio anymore.

viewtopic.php?f=49&t=25902&p=164118

Its not running in fullscreen, i cant change resolution, it just takes less then 1/4 on my screen.
Can you try simply resizing the window?
https://gfycat.com/SeriousQualifiedFruitfly

Re: [Pending] Factorio not working in high resolution

Posted: Thu Jun 02, 2016 11:30 am
by nuhll
Would you mind look at the pics? There is nothing to drag "its fullscreen"

Re: [Pending] Factorio not working in high resolution

Posted: Thu Jun 02, 2016 6:15 pm
by Shokubai
nuhll wrote:Would you mind look at the pics? There is nothing to drag "its fullscreen"
Take it off of "Full Screen" then try dragging the edges.

Re: [Pending] Factorio not working in high resolution

Posted: Fri Jun 03, 2016 7:18 am
by Neemys
Someone with the same problem resolved it, see : viewtopic.php?p=165023#p165023

Re: [Pending] Factorio not working in high resolution

Posted: Fri Jun 03, 2016 9:08 am
by nuhll
I dont use any of those programs.

I want to try what u suggest(disable fullscreen). I launched it today and.... it was working?

Did you change anything?

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 9:06 am
by nuhll
devs?

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 9:45 am
by posila
We didn't change anything, but I am glad it is working for you now :)

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 10:01 am
by nuhll
Only thingh i did was, i disabled it and enabled it. But while it was running nothing changed, maybe a restart work.

So its still a bug, when you change resolution it shjould ATLEAST tell you that you have to restart....

(I mean i en/disabled fullscreen)

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 1:54 pm
by SyncViews
I think the bug is changing the windows UI scaling for that monitor is not handled by Factorio correctly (see http://puu.sh/pgfct/7978feab37.png from the other thread).

I just tried setting my primary 1080p screen to 150% (Windows 10), and starting Factorio fullscreen mode afterwards tried to display full screen as 2880x1620. I would have expected it to either make a high-dpi 1920x1080 window and scale its UI to 150% (the ideal, since uses the full resolution available), or to have gone to 1280x720, so when Windows treated it as an incompatible program, it was display as 1920x1080 (with the quality loss of not rendering at that, and being up-scaled).

Not really played much, but would seem Factorio tries to do something clever, but is handling the DPI related windows API's wrongly. Ideally it should be setting PROCESS_PER_MONITOR_DPI_AWARE, and using the correct DPI for UI-display for whatever monitor the Factorio window is currently on, and handling WM_DPICHANGED along with associated functions. Depending on if I relogged or not, or was in fullscreen or not, I either got a wrong borderless window size, or the legacy windows upscaling.

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 6:21 pm
by searker
It seems like Factorio is only checking for the current screen-resolution when you enable fullscreen, but not each time it is starting in fullscreen-mode.

I´m not at home atm but it should be fairly simple to test:
- Lower your resolution
- Start Factorio windowed, then in fullscreen-mode
- Increase your resolution
- Start Factorio without switching back to window-mode

If im guessing correct, the "Fullscreen-Window" should now be smaller than the actual resolution is supporting e.g. it shouldnt fill the entire screen.

Re: [Pending] Factorio not working in high resolution

Posted: Sat Jun 04, 2016 7:31 pm
by SyncViews
Changing the resolution in fullscreen mode did seem to work for me, even when the game was running.

The DPI is entirely separate, and the game got it wrong on start (didn't even try changing while the game was running, or moving it between monitors with different settings). The monitor does not change resolution with this setting, what changes is how Windows reports and displays windows on that monitor depending on what the owning process set its DPI awareness as. And Factorio does already have a UI scaling option, and looks like it is meant to be able to take the "system setting", so would seem to be is the issue is the handling of that setting in regards to the relevant system API's.

Re: [Pending] Factorio not working in high resolution

Posted: Sun Jun 05, 2016 7:24 pm
by nuhll
Like i said, it changed correct to fullscreen AFTER i disabled it, and then i enabled it. == first no change, but then next day when i entered the game it was working. So i think if you change your monitor /resolution you need to enable and then disable it to make factorio working again. - still a bug.

I also use the upscaling thing from windows, like you saw on my pics.

Factorio dosnt look that cool on 40 zoll....