I have code refreshing at roughly 60frames per second (little bit more then that since floats arent perfect) and i notice some bad flickering SDL video has been inited with SDL_SWSURFACE | SDL_ANYFORMAT. I only call SDL_Flip() once per frame and i sleep directly after the line. (Then poll the SDL events). The windows version doesnt flicker at all. Did anyone else get that problem? i am on an intel mini using the curent CVS source (i dont know how to make a framework, so i directly include headers and libs with xcode).
Use OpenGL and manually turn on vsync.
// Call this once, after you have already have a valid OpenGL context.
long swapInterval = 1;
CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &swapInterval);
Possibly Related Threads...
May 28, 2009 12:06 PM
Last Post: mikey
|SDL: Why is my sprite flickering?||Snibril||10||5,808||
Aug 27, 2003 07:11 PM
Last Post: belboz