Advertisement

SDL_DisplayFormat Question...

Started by May 03, 2002 09:17 PM
-1 comments, last by Tszafran 22 years, 4 months ago
Hi, I use the SDL_DisplayFormat function on surfaces once they are made and when they are modified (transparent, etc...) because its supposed to speed things up on blitting. I was wondering if this is ok. (NOTE: MySurface is a SDL Surface obvioulsy :-)) 1. MySurface=SDL_DisplayFormat(MySurface); or is it better to 2. SDL_Surface *Temp; Temp=SDL_DisplayFormat(MySurface); MySurface=Temp; SDL_FreeSurface(Temp); Does 1 do the same as number 2? I am wondering this because all I do is init the SDL video and do a basic loop with the SDL_Flip(Surface) at the end of it. And my frame rate is around 76FPS, I was wondering if thats normal, because when I see DirectX Direct Draw or OpenGL on blank screens I see frame rates into the hundreds. Why is SDL not doing that, it is using DirectX5 for the drawing (I checked the video driver after the init)
MSN Messenger: Thomas_Szafran@hotmail.com

This topic is closed to new replies.

Advertisement