On Fri, 13 Nov 2009 23:22:51 -0800
"apefish" <wtivy1@xxxxxxxxxx> wrote:
> > I have seen this before with some games that use SDL, ie. enemy
> > territory and UrbanTerror. For enemy territory, after some
> > searching I found that executing this before starting the game seems to
> > fix the problem for me:
> > export SDL_MOUSE_RELATIVE=0
> > export SDL_VIDEO_X11_DGAMOUSE=0
> > export SDL_VIDEO_X11_MOUSEACCEL="1/1/1"
> Thanks, I tried that but it doesn't seem to do anything. I'll search around
> for more info though.
Did you execute those lines in the same terminal (xterm,
gnome-terminal, etc.) before running your program? Else SDL won't see
the environment variables.
I'm pretty sure this is the problem I saw though. It happened with
various games and definately on hardware-accelerated OpenGL, using
the fglrx driver, with quite high framerates (100+). I strongly suspect
this is a problem with SDL or X.
How many FPS do you get with your code example?
If you have amdcccle (ATI driver settings app) or the NVidia control
panel, try toggling the vsync option, see if that changes anything...
SDL mailing list