[SDL] SDL_Flip vs SDL_UpdateRect: what's better/smoother?
Brian
brian.ripoff at gmail.com
Tue Jun 12 06:45:57 PDT 2007
It may not be easy/possible to get a hardware surface on your platform
at all. Linux tends to be very picky about who can write directly to
hardware.
I recommned you give these a read:
http://www.oreillynet.com/articles/author/1205
The author is a very knowledgeable subscriber to this list.
On 12/06/07, voidstar <voidstar at tin.it> wrote:
> Oops! You're right, I did not get a hardware surface!
> I do this for the screen surface and for the pull-down image surface:
>
> screen = SDL_SetVideoMode(MAX_X, MAX_Y, 32,
> SDL_HWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF);
>
> raster_bar=SDL_ConvertSurface(raster_bar, screen->format, SDL_HWSURFACE);
>
> Is it ok? Why I can't get a hardware surface?! Do i forgot something?
More information about the SDL
mailing list