[SDL] Again about frame rate

Tom Wilson t.wilson at hazid.com
Fri Mar 4 07:58:07 PST 2005


If you look at previous threads on frame rates, I think the general 
conclusion was to use OpenGL for the 2D rendering if your target 
plaforms are "modern" PC's.

http://olofson.net/mixed.html

Otherwise, like Gabriel says, you should only be calling 
SDL_DisplayFormat *once* after you have a screen, when your images are 
loaded.


> I promise that it's the last e-mail about the fps.
> I don't understand why I have only 32 fps with 3 surface:
>
> 1 screen 640x480x32
> 1 vs 1280x1024x32
> 1 tiles 320x178x24 (destroyed after the making of map)
>
> all the surface are passed through the SDL_DisplayFormat(), before 
> that I use this.
>
> I would like do get the tiles from the image in png, grab this and 
> blit this into the Virtual Screen.
> When I get the tiles from the image by the grab funciont I modify all 
> the tiles by SDL_DisplayFormat();
>
> Under Windows, in my office laptop (P4 2.8Ghz, 512 MB DDR, ATI 
> MOBILITY RADEON 9000) I have 32 fps.
>
> What's wrong?
>
> Can anybody help me? I can send all the project, for me is important 
> to understand where is the mistake.
> tnx
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
>
>






More information about the SDL mailing list