Fullscreen rendering python VS standalone internal option

Hello,

We have a discussion going on about the fullscreen rendering of the standalone player.
you can read it here: https://blenderartists.org/forum/showthread.php?435321-Anyone-know-how-to-get-the-system-s-supported-resolutions-in-bge

i did some tests, and found out that the fullscreen setting in python is bugged.
while you run the standalone with the fullscreen box checked it will actually render the resolution to full screen.
but if you dont check that option and set it trough python it wont render in fullscreen. but it gets rendered at top left.

I wonder if this is a bug or just something i got messed up, look at the video, ill show you the problem there.
both fullscreen options are colliding with each other. if both options are on it works, if 1 of them is off it wont work.

VIDEO don’t capture fullscreen, the recording software will not record the fullscreen it will just record the resolution i have set in the launcher, but where you got theblack rendering on the background that is where it goes to stretched true fullscreen. where you see blender on the background its fullscreen borderless window mode rendered at top left (fullscreen but not fullscreen rendered).

I hope this makes sense

Anyone can tell me if this is a bug or not?

Hi,

I’m pretty sure that’s not a bug. Did a quick test on a .blend and it works for full screen standalone via python using:

bge.render.setFullScreen(True)

My guess is somewhere along your code, you used “setFullScreen(True)” but then afterwards unintentionally reset the dimensions of the window with

bge.render.setWindowSize(width, height)

because using “setWindowSize(…)” displays the window starting from the top left of the screen by default.

As a side note, if you “setWindowSize(…)” even (only) with FullScreen ticked, the window size will still resize to the dimensions you specified (not full screen).

That can’t be it, and is not it.
Why not? I got my game launcher with settings, if i open my game trough that it doesn’t matter what i do it will not render (smaller resolution) in fullscreen.

But… if i open the exact same thing in blender and hit standalone player, it works.
keep in mind even trough the standalone button it loads my settings.

changing the resolution and the setfullscreen positions in the script doesn’t matter either.
Also i am not the only one who having those problems, and on linux it works how it should(it does stretch smaller resolution).

if i open my game trough that it doesn’t matter what i do it will not render (smaller resolution) in fullscreen.

Does this mean your machine will not render full screen even without your code (when full screen is ticked)?
If that’s the case then I have probably hastily jumped to the wrong conclusion.

on linux it works how it should(it does stretch smaller resolution)

For different machines there are a number of different variables to consider (like size of monitor, etc.). Basically,
I’m suggesting for you to reconsider your code.