SadConsole icon indicating copy to clipboard operation
SadConsole copied to clipboard

4K full screen toggle

Open Twoshrubs opened this issue 5 years ago • 3 comments

Hello,

I'm not sure if this as issue or just me..

When using 'SadConsole.Settings.ToggleFullScreen();' with a desktop set as 3840x2160 the screen goes blank for a few seconds and then the window will be minimized onto the taskbar.

After that there is nothing you can do to get the screen back up.

If I alter the desktop resolution to a smaller resolution (1920x1200) full screen toggle works fine. Using the window maximize button works fine also at the high resolution.

Kind regards,

Twoshrubs

Twoshrubs avatar Nov 24 '19 12:11 Twoshrubs

@Twoshrubs Hi! Thank you for filing this issue. I'm not sure why or how that would happen. I haven't hard coded any sort of resolution limits or anything. SadConsole just gets the resize information from MonoGame when the resize event happens. I don't have a 4k monitor to try and test and debug this, so I would need you or someone else to do that.

This is the code that goes to full screen. As you can see I'm querying MonoGame for how big the screen can be and then setting that size.

After the screen is toggled, the MonoGame game event code path will trigger Global.ResetRendering().

Perhaps you can try the free version of https://marketplace.visualstudio.com/items?itemName=RevDeBug.RecordReplayforNET-RevDeBug or something? Or we can arrange for us to use the Visual Studio Live Share feature. This way I can easily and securely connect to your machine and watch and control the debugging.

ghost avatar Nov 26 '19 07:11 ghost

Hello :) Yes, I will give the recorder a try this weekend, I'm a contract automation engineer.. so I'm away all week commissioning. If we get no joy with the recorder, I have no issues with doing a shared screen session one weekend.

Twoshrubs avatar Nov 26 '19 09:11 Twoshrubs

@SadConsole Hello, I just remembered my lad had simular issues with Spiral Knights at the weekend, and could only get it working in Window mode. I had a google and it seems it uses XNA/Monogame.

Then came across this.. http://community.monogame.net/t/fullscreen-game-not-rendering-to-proper-size-for-resolutions-besides-1920-x-1080/8255 It looks like a Monogame issue?

Twoshrubs avatar Nov 26 '19 17:11 Twoshrubs