How I achieved fullscreen windowed mode with spring
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
How I achieved fullscreen windowed mode with spring
As most of you know, fullscreen windowed mode is pretty much the best thing since sliced bread when it comes to games. Until the engine devs see fit to add that mode into spring, here is how you can do it in the meantime.
The first part is the suckiest. You need "Actual Window Manager" which costs 50 bucks (or you can "acquire" it via other means).
After that, simply add a special rule for spring.exe . Set position to snap to top left, and disable all title window and border stuffs.
If horizontal scrolling doesn't work ingame, in the chat type: /grabinput 1
and press enter.
Devs, could we please get built in fullscreen window support semi soon?
The first part is the suckiest. You need "Actual Window Manager" which costs 50 bucks (or you can "acquire" it via other means).
After that, simply add a special rule for spring.exe . Set position to snap to top left, and disable all title window and border stuffs.
If horizontal scrolling doesn't work ingame, in the chat type: /grabinput 1
and press enter.
Devs, could we please get built in fullscreen window support semi soon?
Re: How I achieved fullscreen windowed mode with spring
What is the difference between windowed fullscreen and non windowed?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: How I achieved fullscreen windowed mode with spring
Can someone else explain this? I do not know the correct words to use.
Ever had your computer taken over by a game that decided to be a cockmonkey, or just a game that has really long loading times? You sit there, thumbs up your ass, because if you alt tab out of it, the game will probably crash (like spring), you can't see if anything else is going on in the lobby while you're loading, you can't quickly check something on the net, or pass the time by alt tabbing over to your web browser... etc etc etc.
A misbehaving window is treated the same as if notepad locked up (course you're still using xp which means that if notepad locks up your entire computer still goes retarded, but whatever), which on vista or win7 is as simple as lolclose.
There are a host of reasons why windowed fullscreen is the absolute shit, but hopefully someone else can put it more eloquently than I.
Umm, it's better by over 9000. The vast majority of the devs are on linux, which has a window manager like this built in already, so they can do this without even thinking about it. Which is one of the main reasons no one has done it yet (because it's not an issue for them, so who cares amirite?).
Fullscreen windowed mode is still semi rare for windows games. I was quite surprised and pleased when I found that sc2 had it.
Ever had your computer taken over by a game that decided to be a cockmonkey, or just a game that has really long loading times? You sit there, thumbs up your ass, because if you alt tab out of it, the game will probably crash (like spring), you can't see if anything else is going on in the lobby while you're loading, you can't quickly check something on the net, or pass the time by alt tabbing over to your web browser... etc etc etc.
A misbehaving window is treated the same as if notepad locked up (course you're still using xp which means that if notepad locks up your entire computer still goes retarded, but whatever), which on vista or win7 is as simple as lolclose.
There are a host of reasons why windowed fullscreen is the absolute shit, but hopefully someone else can put it more eloquently than I.
Umm, it's better by over 9000. The vast majority of the devs are on linux, which has a window manager like this built in already, so they can do this without even thinking about it. Which is one of the main reasons no one has done it yet (because it's not an issue for them, so who cares amirite?).
Fullscreen windowed mode is still semi rare for windows games. I was quite surprised and pleased when I found that sc2 had it.
Re: How I achieved fullscreen windowed mode with spring
simplified, it is about like this:
when starting an application in real full-screen mode, the OS gives all control of rendering to that application. this means, the OS can free resources -> possible performance gain.
The downside is, that when switching between the full-screen app and the OS, there is always re-initializing and re-shutting down of the OSs rendering stuff. That means prolonged waiting time, and makes graphical glitches much more likely; those of the sort that likely every gamer of pretty much any game since the beginning of 3D acceleration knows.
i am sure jk could give a much more precise explanation though.
when starting an application in real full-screen mode, the OS gives all control of rendering to that application. this means, the OS can free resources -> possible performance gain.
The downside is, that when switching between the full-screen app and the OS, there is always re-initializing and re-shutting down of the OSs rendering stuff. That means prolonged waiting time, and makes graphical glitches much more likely; those of the sort that likely every gamer of pretty much any game since the beginning of 3D acceleration knows.
i am sure jk could give a much more precise explanation though.
Re: How I achieved fullscreen windowed mode with spring
What would be required to get windowed-fullscreen working in windows?
Is it just a matter of issuing a command to resize the window so that it
covers the entire screen?
http://stackoverflow.com/questions/6927 ... indows-api
Is it just a matter of issuing a command to resize the window so that it
covers the entire screen?
http://stackoverflow.com/questions/6927 ... indows-api
Last edited by trepan on 05 Jul 2011, 11:09, edited 1 time in total.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: How I achieved fullscreen windowed mode with spring
Unless I'm mistaken, it's more or less a matter of issuing some parameters to the windows window manager. Apparently, according to what I read, in windows it is not required that an application give commands to the window manager, only optional.
Unfortunately, that's about all I've been able to glean, but I have no way to verify that what I just wrote is gospel truth.
Unfortunately, that's about all I've been able to glean, but I have no way to verify that what I just wrote is gospel truth.
Re: How I achieved fullscreen windowed mode with spring
Trepan - yes ..
You can setup window to be borderless and you can set it to be sized as desktop.
It is just few lines for external app or spring itself to do it.
You can setup window to be borderless and you can set it to be sized as desktop.
It is just few lines for external app or spring itself to do it.
Re: How I achieved fullscreen windowed mode with spring
Ya, I started poking around and found the link that I edited
into my last post. I've always hated "fullscreen" apps that
take control of everything (luckily, being a linux user, it's
rarely an issue).
A snippet of SpringRTS code (rts/System/SpringApp.cpp):
It would probably be easy to do if you added a command line switch.
into my last post. I've always hated "fullscreen" apps that
take control of everything (luckily, being a linux user, it's
rarely an issue).
A snippet of SpringRTS code (rts/System/SpringApp.cpp):
Code: Select all
sdlflags |= globalRendering->fullScreen ? SDL_FULLSCREEN | SDL_NOFRAME : 0;
Re: How I achieved fullscreen windowed mode with spring
You start spring in windowed and press maximized. Boom! Done I have no idea why forb needs software for thattrepan wrote:What would be required to get windowed-fullscreen working in windows?
Is it just a matter of issuing a command to resize the window so that it
covers the entire screen?
http://stackoverflow.com/questions/6927 ... indows-api
Re: How I achieved fullscreen windowed mode with spring
because then you have the top window title and the start bar, the edges of the window arent the edges of the screen
Re: How I achieved fullscreen windowed mode with spring
Ah, not my cup of tea but hey more power to ya. Ever since the current release windowed spring has some lovely audio issues and fps issues
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: How I achieved fullscreen windowed mode with spring
Windowed fullscreen via what I described above works flawlessly. What pisses spring off is when you try to dynamically resize the window when you're just using plain old windowed mode. A bug for sure, but if fullscreen windowed is natively supported I doubt you'll see much of people running windowed other than fullscreen.
Re: How I achieved fullscreen windowed mode with spring
sliced bread is the worst kind of bread everForboding Angel wrote:As most of you know, fullscreen windowed mode is pretty much the best thing since sliced bread when it comes to games.
Re: How I achieved fullscreen windowed mode with spring
Yeah, if you have the resources to spare (since it ain't free) windowed fullscreen is the way to go. Pretty much mandatory for any game with long load-screens or crash-on-alt-tab problems (Valve, I'm looking in your direction).
Re: How I achieved fullscreen windowed mode with spring
you can play the tanks in small window without evar leaving the lobby
Re: How I achieved fullscreen windowed mode with spring
Yeah more power to ya I am happy with the regular window mode fullscreen windows don't have a start menu no good to meForboding Angel wrote:Windowed fullscreen via what I described above works flawlessly. What pisses spring off is when you try to dynamically resize the window when you're just using plain old windowed mode. A bug for sure, but if fullscreen windowed is natively supported I doubt you'll see much of people running windowed other than fullscreen.
But thisn't about personal opinion options are always good provided the devs have time for it
Re: How I achieved fullscreen windowed mode with spring
I play in windowed mode with the Spring window sized so that it covers all of the screen except for taskbar at bottom and window title thing at top.
Basically works except for scrolling by screen edges not working. (which i dont care about that much )
For spring alt tabbing is more useless then for other games because at least in my games there is always some noob doing things that require switching to lobby. That works more reliable in windowed mode, in fullscreen mode Spring sometimes locks up for some seconds/minutes on alt tab or desktop resolution gets messed or whatever.
So if you make a "real windowed fullscreen", please allow those options:
fullscreen - well, fullscreen
windowed - the way it is now, with title bar
new frameless windowed fullscreen - looks like fullscreen but is technically windowed just without titlebar etc
That way you can still resize Spring to some smaller window when testing mod stuff.
Basically works except for scrolling by screen edges not working. (which i dont care about that much )
For spring alt tabbing is more useless then for other games because at least in my games there is always some noob doing things that require switching to lobby. That works more reliable in windowed mode, in fullscreen mode Spring sometimes locks up for some seconds/minutes on alt tab or desktop resolution gets messed or whatever.
So if you make a "real windowed fullscreen", please allow those options:
fullscreen - well, fullscreen
windowed - the way it is now, with title bar
new frameless windowed fullscreen - looks like fullscreen but is technically windowed just without titlebar etc
That way you can still resize Spring to some smaller window when testing mod stuff.
Re: How I achieved fullscreen windowed mode with spring
current master can do it:
https://github.com/spring/spring/commit ... eb4e2bc075
just set WindowBorderless=1 in springsettings.cfg
(thanks madrman)
https://github.com/spring/spring/commit ... eb4e2bc075
just set WindowBorderless=1 in springsettings.cfg
(thanks madrman)
Re: How I achieved fullscreen windowed mode with spring
I get a nice borderless window... but it's in the wrong place and I can't move it.
Re: How I achieved fullscreen windowed mode with spring
you've to edit springsettings.cfg and set
WindowPosX
WindowPosY
+ WindowState=0 (?)
currently there is no possibility to move the window, if your window-manager cant do it.
in linux you can hold alt + left mouse + move it arround...
WindowPosX
WindowPosY
+ WindowState=0 (?)
currently there is no possibility to move the window, if your window-manager cant do it.
in linux you can hold alt + left mouse + move it arround...