[0.17.45] (Minor) Auto UI scale suggests bad value

Bugs that are actually features.
Post Reply
Zaflis
Filter Inserter
Filter Inserter
Posts: 414
Joined: Sun Apr 24, 2016 12:51 am
Contact:

[0.17.45] (Minor) Auto UI scale suggests bad value

Post by Zaflis »

I'm using a 1920x1080 desktop monitor and so far used to the Auto (100%) scaling. But it has only been 100% when i used maximized window. When i resize the window even just a couple pixels smaller in width or height, the auto-scaling goes to 75%. Icons go blurry and bad with that.

The workaround was to set scaling to custom (100%), but auto-mode could be made a little smarter some way. I'd suspect it involves getting DPI of monitor, how big the rendered area is in centimeters and determine if it needs scaling or not.
Last edited by Zaflis on Fri May 31, 2019 8:03 pm, edited 1 time in total.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by eradicator »

When i first started up 0.17 i thought "wtf, why does everything look like shit?".
Took me a few minutes to realize it was scaling and set it to fixed 100%.

So +1
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Bilka
Factorio Staff
Factorio Staff
Posts: 3127
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Bilka »

Please provide a log file of a session where it starts and defaults to 75%.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

tehfreek
Filter Inserter
Filter Inserter
Posts: 391
Joined: Thu Mar 17, 2016 7:34 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by tehfreek »

Not the OP, but here you go. And a screen capture for further evidence.
Attachments
Capture of Interface settings window
Capture of Interface settings window
factorio-75.png (2.29 MiB) Viewed 2189 times
factorio-75.log
Log file that defaults to 75%
(3.97 KiB) Downloaded 58 times

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by eradicator »

Full HD 16:10 Screen with taskbar on the right side, so window is ~1850*1200.

Code: Select all

   0.000 2019-06-01 09:44:40; Factorio 0.17.42 (build 45100, win64, alpha)
   0.000 Operating system: Windows 8
   0.001 Program arguments: "H:\factorio\instances\[shared-read]\latest\bin\x64\Factorio.exe" "--config" "H:\factorio\instances\devworld.instance\config.ini" "--mod-directory" "H:\factorio\instances\devworld.instance\mods"
   0.001 Read data path: H:/factorio/instances/[shared-read]/latest/data
   0.001 Write data path: H:/factorio/instances/[shared-write] [9519/40959MB]
   0.001 Binaries path: H:/factorio/instances/[shared-read]/latest/bin
   0.008 System info: [CPU:       Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz, 8 cores, RAM: 19667/32606 MB, page: 24280/48606 MB, virtual: 112/8388607 MB, extended virtual: 0 MB]
   0.008 Display options: [FullScreen: 0] [VSync: 0] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: 00] [Lang: en]
   0.011 Available displays: 1
   0.011  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 4000 {0x8000005, [0,0], 1920x1200, 32bit, 60Hz}
   0.072 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_43.dll
   0.080 Initialised Direct3D[0]: Intel(R) HD Graphics 4000; id: 8086-0166; driver: nvumdshimx.dll 10.18.13.5560
   0.080   D3D Feature Level: 11.0, DXGI 1.2+, SwapChain: 1,discard,-,-,none
   0.081   BGR 565 Supported: Yes
   0.081   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.167 Desktop composition is active.
   0.167 Graphics settings preset: integrated-gpulow
   0.168   Dedicated video memory size 96 MB
   0.168 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: low-quality]
   0.168                   [Max load threads: 32] [Max texture size: 4096] [Tex.Stream.: 0] [Rotation quality: low] [Color: 16bit]
   0.178 DSound: Starting _dsound_update thread
   0.178 DSound: Enter _dsound_update; tid=15960
   0.393 Info ModManager.cpp:240: Found duplicate mod alien-biomes, using higher version (0.4.13 > 0.3.10).
   0.448 Info ModManager.cpp:240: Found duplicate mod alien-biomes, using higher version (0.4.14 > 0.4.13).
Edit: While the log says "[UIScale: automatic (100.0%)]" it *does* start up with 75%, so i guess that the log is based on the screen size *before* detecting the actual window size. And it only goes to 100% if i "resize" to full-screen.
Last edited by eradicator on Sat Jun 01, 2019 11:47 am, edited 2 times in total.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Zaflis
Filter Inserter
Filter Inserter
Posts: 414
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Zaflis »

Logs and screen:
Attachments
factorio.png
factorio.png (3.1 MiB) Viewed 2172 times
factorio-current.log
(7.04 KiB) Downloaded 60 times

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Twinsen »

The gui is designed for a minimum resolution of 1856x1016.
This should be enough for the most common taskbar locations when playing windowed. You need to play maximized.

If you have a fat taskbar or other obscure situations either
- play fullscreen
- play in 75% UI scale
- manually set GUI scale to 100% but suffer the consequences if some GUI elements overlap.

Previously we were designing the gui for 720p and it was extremely limiting. Then we decided to to design for 1080p which is by far the most common resolution. But then people played in a window. So we decreased the minimum resolution to 1856x1016. If we decrease it any further we are back to designing the gui for 720p

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by eradicator »

Twinsen wrote:
Tue Jun 04, 2019 10:03 am
The gui is designed for a minimum resolution of 1856x1016.
Is that with or without window decorations? I'm at 1838 pixels undecorated width with a double-standard-width vertical taskbar. Haven't had any issues with manual 100% scale so far, was just startled because 0.16 had a different "automatic" value.

Btw..slight topic hijack.... it's good to know that the base game assumes such high resolution. Now i can link this thread if anyone ever complains about my mod guis :D. Is there a list of other such numbers (width of inventory, % height of inventory, etcpp)? Would make making "vanilla like" guis easier.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Twinsen »

1856x1016 visible rendered game area.

Not really. This is the only number we have. GUI needs to fit correctly and look good on 1856x1016. Expanding areas such as inventories need to have support for scrollbars in case they use up all available space.

This limitation and the problems that happen if it's not respected will be much more obvious when we will release the main game gui layout.

Zaflis
Filter Inserter
Filter Inserter
Posts: 414
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Zaflis »

Well, inventory window in current game expands WAY TOO MUCH until it shows scrollbars. Anyone who plays Bob's mods and few others can tell how massive it becomes. In general small and compact style is the way i like it the most, just not scaled.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by eradicator »

Zaflis wrote:
Tue Jun 04, 2019 1:07 pm
Well, inventory window in current game expands WAY TOO MUCH until it shows scrollbars. Anyone who plays Bob's mods and few others can tell how massive it becomes. In general small and compact style is the way i like it the most, just not scaled.
Screenspace is there to be used. Forcing the user to navigate tiny windows with scrollbars instead of just showing the whole thing is horrible and frustrating and sould be illegal. I am glad factorio properly streches the inventory when it can.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Zaflis
Filter Inserter
Filter Inserter
Posts: 414
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Zaflis »

I wasn't asking tiny windows, there is a good middleground between tiny and gigantic. One where you can actually still see the gameworld behind the UI. And from gameplay point of view, it is easier to play when you don't have to move cursor around so much. Scrollwheel is handy.

They could have the max UI size configurable though, because one glove does not fit every hand.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

Re: [0.17.45] (Minor) Auto UI scale suggests bad value

Post by Deadlock989 »

Zaflis wrote:
Tue Jun 04, 2019 1:07 pm
Well, inventory window in current game expands WAY TOO MUCH until it shows scrollbars. Anyone who plays Bob's mods and few others can tell how massive it becomes. In general small and compact style is the way i like it the most, just not scaled.
Maybe those mods shouldn't create such messy crafting tabs.

This is all changing with the incoming UI update anyway.
Image

Post Reply

Return to “Not a bug”