[Client] 3D Scale Factor produces "wrong" values with bizarre aspect ratios

Luduvo Version: 0.2.95
Distribution: CachyOS
Kernel: Linux 7.0.11-1-cachyos
Desktop Environment, Window Manager: KDE Plasma 6.6.5, KWin
Display Server: Wayland
CPU: 11th Gen Intel(R) Core™ i7-11700KF (16) @ 5.00 GHz
GPU: NVIDIA GeForce RTX 3080 [Discrete]
Total Memory: 31.17 GiB

Describe The Issue: In windowed mode, when you resize the window, the 3D rendering is meant to recalculate its scale factor so it able to provide an optimal camera view for the new window size. However, it seems like how the scale factor is calculated is strictly based on the window’s height and doesn’t take width into consideration.

This ends up creating drastically different camera views depending on whether you resize the window to be super thin and very tall, or extremely wide and very short. For the former, you practically lose all peripheral vision and you’re at a significant disadvantage. For the latter, you can get an insane amount of peripheral vision; for competitive games, this could risk giving an unfair advantage to players who have ultrawide monitors, circumventing vision limits that are imposed with the “Field of View” setting.

Steps to Reproduce:

  1. Launch the game through the client
  2. Wait for your character to initialize and spawn
  3. If your client window is maximized, un-maximize it to allow resizing the window.
  4. There are two weird edge cases to reproduce the problems:
    1. Resize the width of the client until you hit the window’s minimum width. Then proceed to resize the height until it meets your monitor’s height, if it isn’t already.
    2. Resize the height of the client until the hit the window’s minimum height. Then proceed to resize the width until it meets your monitor’s width, if it isn’t already.

Expected Behavior: Depending on the aspect ratio, it should be taking the width of the window into consideration to create a camera view that tries to give equitable vision for both regular landscape players and portrait players (cough Mobile Support cough), and it should be punishing players who are trying to intentionally game the system with extreme width and height. Another way this could be solved is that the Field of View, and the range of acceptable values in the settings should be adjusted depending on the aspect ratio.

This isn’t to say that we should be trying to punish players who have wider monitors. I think 21:9 is still an aspect ratio that is fair play. I think there is going to be a discussion to determine what should be considered fair game and what isn’t. And I know that the minority of players who have the setup that would give them that unfair advantage would probably not be happy about such limits being imposed onto them. That’s why there are multiple solutions to address this bug, and some may prefer one over the other.

If this somehow does spark enough debate, perhaps I could run a poll.

Screenshot_20260604_142113

With Luduvo 52, this scaling issue still occurs. However, previously the client did not take window height into consideration when calculating 3D scale factor. Now this does happen, as with unusually tall windows, you do get the same stretchy goodness, both up and down.