Issues with Full Screen

Posted By: Dooley

Issues with Full Screen - 05/10/20 15:39

I have a few players who are unable to get my game to run in full screen.

It should be detecting the current resolution of the monitor, and automatically setting that as the game's resolution, then switching to full screen mode.

It works on my system, and every other system I've tested it on. Also, the majority of other players have no problems.

I guess the first question I have is whether anyone else has encountered a similar problem, and if there are known causes and solutions for this kind of thing?
Posted By: Evo

Re: Issues with Full Screen - 05/10/20 20:29

I'm not too sure what the issue is, but after you check the monitor resolution with sys_metrics(0) and sys_metrics(1), run some code to see if it's a compatible size for 3dgamestudio to render it into fullscreen. It if doesn't match one of those modes, set it to fullscreen window mode instead by making it a borderless window.

Code
video_set( game_resolution_x, game_resolution_y, 0, 2 );
video_window( vector(0.1,0.1,0), vector(sys_metrics(0),sys_metrics(1),0), 1, "Fullscreen Window");

Not sure if this helps, but based on what you've described, that's the only idea I have as to why fullscreen won't work for certain users. You could also try setting screen_size.x and screen_size.y to see if it corrects the issue.
Posted By: Dooley

Re: Issues with Full Screen - 05/11/20 05:10

Thanks,
Yeah, it's hard to know what's happening exactly. What you described is basically what I'm doing. I recommended using the full screen resolution with windowed mode (the game has no border by default) but they have not responded to that suggestion yet.

I'm wondering if there are certain monitors or configurations out there that might prevent it from going to fullscreen...
Posted By: Dooley

Re: Issues with Full Screen - 05/28/20 15:53

Ah! I think I may have it. From the manual: "When video_set is called several times within the same frame, it can fail when the OS is busy with rebuilding the window while it is resized. In this case, video_set returns 0. Just call it again in the next frame with the same parameters."

It's like I can't even understand the manual. I swear I've read this page 10 times, and I never saw this!
Posted By: 3run

Re: Issues with Full Screen - 05/28/20 17:33

Originally Posted by Dooley
It's like I can't even understand the manual. I swear I've read this page 10 times, and I never saw this!
That's how I feel too when reading manual grin
© 2024 lite-C Forums