Okay, so I know that some of you are reading this subject line and
shaking your heads and thinking “man, another kid who can’t isolate
variables, and is totally confused about cause and effect.”
I assure you, I have methodically gone through my game and fiddled with
GetSurface and SetVideoMode flags alone and in combination. Each time I
run the game both with firefox running on another desktop, and again
without. The session with a firefox going runs smoothly, while the
framerate without firefox is much lower. I’m baffled!
I’m running on a T40 with this video chipset:
0000:01:00.0 VGA compatible controller: ATI Technologies Inc
Radeon Mobility M7 LW [Radeon Mobility 7500]
I’m in Ubuntu Dapper Drake, which means I have this X server:
ii xserver-xorg 7.0.0-0ubuntu4 the X.Org X server
I can provide my xorg.conf and X session logs on request, if it would be
helpful.
The longer story is that I’m working on a game that was written in a
very DOS-like fashion, where the upstream authors wrote code to do
things like scale, rotate, and alpha-blend surfaces directly onto the
screen surface (no doubt expecting double-buffering to smooth out the
wrinkles). I am aware of the lack of reliable double-buffering in
modern systems, but the thing does run smoothly when I have a firefox
going (even when I don’t set the video mode to double-buffer!).
I’m happy to insert code to spit out more information on what sort of
video geegaws it’s managing to pry out of X11’s fingers; but I’m a bit
of a na?ve coder who’s been happily insulated by the elegance of SDL’s
API thus far, so I’ll need help dragging that stuff out. If you’d like
to play with the codebase yourself, I have a darcs repository available
via:
darcs get http://zork.net/~nick/sais/
Running “make” will grab everything needed to run the demo game. The
earliest indicator of a speed problem on my system is whether the
initial two logos do a visible “wipe” effect on fade-in, and then if the
subsequent purple starfield is jerky. I find that I notice these
artifacts when firefox is not running, but that the fade-in and
starfield zoom effect are both smooth when firefox is on.–
“N’aimez pas votre voiture? Nick Moffitt
Alor, l’heure est arrive pour la brul?!” @Nick_Moffitt
– Mark Jaroski