Sdl Flickering Problem...


Coder_TimT

Member
Joined
Mar 17, 2006
Messages
288
I have a "flickering" issue I can't seem track down in Ommpc. It's not a bad problem most of the time, simply because I don't update that much of the screen that often, but there a couple scenarios where it presents itself pretty badly...and while I can also minimize those places, I'd like to figure out what's really going on to try and fix the real problem. Anyway, here is a video 'sbock' recorded of one the the problem areas.

http://www.flickr.com/photos/codertimt/3814501569/

I'm limiting framerate to 15fps, the problem areas such as the one in the video are drawing at that rate...


Here is the main part of the drawing routine used if you want to wade through it.

http://code.google.com/p/ommpc/source/browse/trunk/scroller.cpp#375

Anyway, anything special I need to know that I should be doing and am not? Any help would be appreciated...

Thanks,
Tim
 
Pickle said:
If your using SDL_DOUBLEBUF dont. The only thing you should use to create the video screen is the flag SDL_SWSURFACE.

Okay, I will give that a try. I know I tried both HWSURFACE && SWSURFACE with DOUBLEBUF, but might have only tried HWSURFACE without DOUBLEBUF, I will get another build in the beta section using just SDL_SWSURFACE...

EDIT: I have positive results from the testing crew(aka sbock). Thanks Pickle.
 
Last edited by a moderator:
Back
Top