FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.72k stars 401 forks source link

Multi monitor selection issue #1956

Open rhinotastic opened 4 years ago

rhinotastic commented 4 years ago

Description When using a multimonitor setup i have to switch the resolution to a lower one, then set to windowed, drag the windo to the desired screen. then set full screen and resolution again. Using standard windows control for moving application windows to different screens does not work (windows key+shift+directional arrow key)

Steps To Reproduce have 2 monitors, game always opens on main monitor. try get game to be on 2nd monitor without messing about with resolutions and unfullscreening. windows key+shift+arrow key towards 2nd monitor(left arrow for me) does not work as expected.

Version v0.9.6.0 windows 10 64bit. build 17763.914

Additional information Add any other context about the problem here.

itchyOwl commented 4 years ago

So the issue is that if you switch from the larger resolution display to the lower resolution display with windows key + shift + arrow towards the lower resolution display the resolution does not change but stays too high for the selected display. After this you cannot change back to the main display with larger resolution? This I was able to reproduce.

Another thing is that currently the game always starts on the default monitor. You can change the default monitor in the OS display settings, but you cannot change the monitor from the in-game settings. I think we should allow changing the display in-game.

rhinotastic commented 4 years ago

So the issue is that if you switch from the larger resolution display to the lower resolution display with windows key + shift + arrow towards the lower resolution display the resolution does not change but stays too high for the selected display. After this you cannot change back to the main display with larger resolution? This I was able to reproduce.

Another thing is that currently the game always starts on the default monitor. You can change the default monitor in the OS display settings, but you cannot change the monitor from the in-game settings. I think we should allow changing the display in-game.

For me the issue is windows key + shift + arrow key does nothing for this only but works for everything else. both monitors are the same resolution 1920x1080. Can you confirm that using the above key combination works under windows 10 with the barotrauma window for you? (are you using windows 10?)

itchyOwl commented 4 years ago

Yes it does work for me, but as I described, it seems a bit bugged when moving the windowed game screen from a higher resolution display to a lower resolution display. Moving the game window from lower to higher works as it should.

rhinotastic commented 4 years ago

interesting. After you confirming the key combination works for you i decided to play around with my settings. Turns out it's to do with the scaling difference for the monitors. image my main monitor has 125% but my 2nd monitor has 100%. So it's something to do with scaling that this application window doesn't like where as others maybe readjust but allow the transition.

JoneKone commented 3 years ago

So I have 2 different resolution monitors :) 1440p and 1080p Also I'm on Linux Ubuntu 20.04.

I have same issues as the Original post describes.

Screenshot from 2020-10-05 13-52-16 Screenshot from 2020-10-05 13-50-19

It wants to start in the "main monitor(1)" that isn't the main monitor on 1080p resolution and I have to manually, move it to the bigger screen and these errors happen :) then I go to setting's change windowed and only in windowed I get the resolution button to work properly on 1440p. Then after I change it back to borderless windowed it will work at 1440p. It works but with little bit effort, my suggestion add a startup command that makes the game choose an monitor at the start.

JoneKone commented 3 years ago

This should be a feature request, a monitor selector setting, so it will start at the correct monitor and all these issues can be fixed.

like https://github.com/Regalis11/Barotrauma/issues/4008 I'm pretty sure this is the same issue.

jimj316 commented 3 years ago

I also have the same issue on Linux - the screen resolution does not change after switching monitors, which I sometimes have to do (Barotrauma opens on the monitor with the cursor).

My suggested fix would be to change the game resolution if the window size changes while in borderless fullscreen mode.

MartinX3 commented 1 year ago

It's still an issue. I wish I could select the monitor. (I use a laptop connected to a docking station with monitor)