Linux: Other programs popping a messagebox ruin the game
Moderator: Moderators
Linux: Other programs popping a messagebox ruin the game
Spring plays fine normally, then suddenly some other program pops a message (say, Thunderbird telling me it can't connect to an email server, or Springlobby telling me it's crashed)
Then the game goes from full screen to a maximized window, but the FPS drops to about .1. Even when the game automatically returns to full screen about 30 seconds later, I can't control anything and have to kill -9 the game (since performance is so bad I can't even quit normally).
This is on Ubuntu Hardy. I don't think it did this in Gutsy, so it seems like there's some local change we can do to get Spring to recover properly.
Then the game goes from full screen to a maximized window, but the FPS drops to about .1. Even when the game automatically returns to full screen about 30 seconds later, I can't control anything and have to kill -9 the game (since performance is so bad I can't even quit normally).
This is on Ubuntu Hardy. I don't think it did this in Gutsy, so it seems like there's some local change we can do to get Spring to recover properly.
Re: Linux: Other programs popping a messagebox ruin the game
Run spring in a separate x server.
Re: Linux: Other programs popping a messagebox ruin the game
Different games handle this differently... but spring really does do this the worst way :/.
I just try and close all notification-making programs before playing.
I just try and close all notification-making programs before playing.
Re: Linux: Other programs popping a messagebox ruin the game
+1LordMatt wrote:Run spring in a separate x server.
Re: Linux: Other programs popping a messagebox ruin the game
How can an app even know this? Is it a standard or does it differ per desktop environment?
Re: Linux: Other programs popping a messagebox ruin the game
Some game seem to do this "returning" mode on a timer or something. The Penny Arcade game I just got seems to have this timer fairly frequently, which is good. Worst is ETQW, who's timer takes ages to come about. Spring... ctrl+alt+backspace, unfortunately.
Re: Linux: Other programs popping a messagebox ruin the game
Even if I usually close all programs, when this happened for me I think I did "alt-tab" (without clicking ok on the notification) and the game come back again (without problems). This was some time ago though, maybe I don't remember all the details.
Re: Linux: Other programs popping a messagebox ruin the game
-1. I won't run a seperate process for every fullscreen application I use. The proper way is to fix Spring dropping its FPS, or stop Spring from going to non-fullscreen at all. I don't think the latter is possible.bashar wrote:+1LordMatt wrote:Run spring in a separate x server.
This is a known problem for almost every game that depends on SDL. What pisses me off even more is the fact that even if I want to switch to the background, I can't. SDL-based games hog my keys and don't allow the window manager to receive key events.
The obviously best solution would be to fix SDL in that regard and stop Spring from dropping its FPS.
Another interesting fact for SDL-based games is the corruption of mouse input should the game crash. Luckily for that there's umouse...
And don't you dare to recommend a seperate X server for me. Every solution I've seen so far Is basically some hacky shit that doesn't even properly work half of the time
Re: Linux: Other programs popping a messagebox ruin the game
A separate x server isn't hacky, it's an elegant solution to the problem. Since I set up mine, it has worked 100% of the time and allowed me to play spring exactly the way I want to (dual screen with different resolution than my desktop, "alt-tab" capability, etc).
Re: Linux: Other programs popping a messagebox ruin the game
Still, the only proper solution would be a seperate init script.
Re: Linux: Other programs popping a messagebox ruin the game
I think windowed + grab input (so mouse cant leave window) is the best way to run spring.
Re: Linux: Other programs popping a messagebox ruin the game
windowed + fullscreen emulation or whatever it's called works very well, too.
Re: Linux: Other programs popping a messagebox ruin the game
Savage 2 is probably the most Linux compatible game ever made. In full-screen mode, you can alt+tab out of it just fine. It doesn't stop there - ctrl+alt+arrow keys work, Compiz screen edges work, and it all does it smoothly (whereas alt+tab on windows flickers and such). It's amazing, and would really put linux ahead of windows if all apps did it.
If it helps anyone, Savage 2 creates it's window with "glXCreateWindow". Apparently it's a very very rarely used thing, but is somehow responsible for this excellent integration.
If it helps anyone, Savage 2 creates it's window with "glXCreateWindow". Apparently it's a very very rarely used thing, but is somehow responsible for this excellent integration.
Re: Linux: Other programs popping a messagebox ruin the game
HAARP wrote:Still, the only proper solution would be a seperate init script.
Code: Select all
#!/bin/bash
export SDL_MOUSE_RELATIVE=0
cd /home/matt/.spring
xinit /usr/local/games/spring "$*" -- :1 -config xorg-spring-dualscreens.conf > /home/matt/.spring/console.log
Re: Linux: Other programs popping a messagebox ruin the game
The proper solution is to make the game handle it, not tinker with external scripts to make the game work properly...
Of course though, for LordMatt, making another X server is a "piece of cake" thing. Obviously it's the same for everyone else in his view
Of course though, for LordMatt, making another X server is a "piece of cake" thing. Obviously it's the same for everyone else in his view
Re: Linux: Other programs popping a messagebox ruin the game
Cut and paste?Vadi wrote:The proper solution is to make the game handle it, not tinker with external scripts to make the game work properly...
Of course though, for LordMatt, making another X server is a "piece of cake" thing. Obviously it's the same for everyone else in his view
Re: Linux: Other programs popping a messagebox ruin the game
Of course! Like I said, it's easy . How can everyone else possibly not get it?
/sarcasm off
Have some appreciation for people, and lose snarky comments. At best, someone who doesn't know what they're doing will screw up, and, they shouldn't even have to use this "solution".
/sarcasm off
Have some appreciation for people, and lose snarky comments. At best, someone who doesn't know what they're doing will screw up, and, they shouldn't even have to use this "solution".
Re: Linux: Other programs popping a messagebox ruin the game
God forbid Linux users actually have to learn something. I set up a separate x server within a couple of weeks of starting to use Linux (and there was no resource to cut and paste from, I had to ask in #xorg). But if you think spring should change, feel free to submit patch.
Re: Linux: Other programs popping a messagebox ruin the game
1. It doesn't take your distro's usual way to start the X server into accountLordMatt wrote:HAARP wrote:Still, the only proper solution would be a seperate init script.It's really that simple.Code: Select all
#!/bin/bash export SDL_MOUSE_RELATIVE=0 cd /home/matt/.spring xinit /usr/local/games/spring "$*" -- :1 -config xorg-spring-dualscreens.conf > /home/matt/.spring/console.log
2. This script is based on bash. Not every distro uses bash init scripts
3. It's optimized for your user. An init script has to be universal
4. It's starting the game. A proper script will just start an X-server and leave it at that
5. This script needs your password
Of course, it's possible to solve all this. But I don't see why I should invest my time into it when the proper solution is fixing Spring.
Re: Linux: Other programs popping a messagebox ruin the game
BINGO! That's the attitude! Want to get better drivers? Hardware support? Program support? Keep that attitude up!LordMatt wrote:God forbid Linux users actually have to learn something. I set up a separate x server within a couple of weeks of starting to use Linux (and there was no resource to cut and paste from, I had to ask in #xorg). But if you think spring should change, feel free to submit patch.
*insert cheering smiley here*
/lulz, this is exactly why linux wasn't getting anywhere on the desktop for a long while.