Help with sdl flip "flicker"

I didn’t get a response before, so I’m trying again:

I’m using SDL_Image to draw png’s to the screen surface, then calling SDL_Flip.
I have set SDL to use HWSURFACE and DOUBLEBUF.

The animation doesn’t flicker necessarily, but has a strange angluar "redraw"
pixelation to it. I’m presuming this is a vsync issue but not sure.

I’d like to see how to get this to be smooth animation if possible. below is
the link to the code I’m talking about. IF you have trouble accessing it or
anything, please let me know.

The screensaver is here:
http://dl.getdropbox.com/u/1534/My%20Software%20Share/SDLMazerunner.zip

The source is here:
http://dl.getdropbox.com/u/1534/My%20Software%20Share/SDL_MazeRunner_SRC.zip

Thanks,

~simon

First off, try testing to make sure the surface you obtain actually has a HWSURFACE and a DOUBLEBUF.> ----- Original Message -----

From: simon.duvall@gmail.com (Simon Duvall)
To: sdl at libsdl.org
Sent: Tuesday, July 1, 2008 10:58:49 AM
Subject: [SDL] help with sdl flip “flicker”

I didn’t get a response before, so I’m trying again:

I’m using SDL_Image to draw png’s to the screen surface, then calling SDL_Flip.
I have set SDL to use HWSURFACE and DOUBLEBUF.

The animation doesn’t flicker necessarily, but has a strange angluar "redraw"
pixelation to it. I’m presuming this is a vsync issue but not sure.

I’d like to see how to get this to be smooth animation if possible. below is
the link to the code I’m talking about. IF you have trouble accessing it or
anything, please let me know.

The screensaver is here:
http://dl.getdropbox.com/u/1534/My%20Software%20Share/SDLMazerunner.zip

The source is here:
http://dl.getdropbox.com/u/1534/My%20Software%20Share/SDL_MazeRunner_SRC.zip

Thanks,

~simon


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org