SDL Digest, Vol 19, Issue 58

Message: 5
SDL-announce)"
Message-ID:
Content-Type: text/plain; charset=“iso-8859-1”

Eww… What happened to my formatting?

The fastest way is to use hardware acceleration through OpenGL or DirectX.
The easiest is to use Sprig or SDL_gfx. I’m not sure that your computer
can handle stretching an image of that size at 60hz. Try a lower framerate.
My stuff runs real smooth at 40hz, but I try to use 33 for speed. Either
way, you’re saving megabytes of data transfer each second.

Sprig:
http://pubpages.unh.edu/~jmb97/SPriG.htmlhttp://pubpages.unh.edu/~jmb97/SPriG.html

You can use SPG_TransformSurface to draw on a pre-existing surface (with
colorkey too!). That saves an extra copy and delete in many cases.

Jonny D



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

End of SDL Digest, Vol 19, Issue 58


I’ll be more clear:
I’ve tried to make the image of 320x240 20% bigger(384 x 288)
on my pc that has a proc Athlon64 3500+(2,2 GHZ)
and it can’t do it at 60fps.
I don’t know the processor usage of this kind of work but think my proc can
get 60fps with the image going to 800x600.
It can’t get even the 20% its nos acceptabel for me.
Thanks for the answers.> Date: Fri, 25 Jul 2008 11:00:37 -0400

From: Jonathan Dearborn
Subject: Re: [SDL] Image resize
To: "A list for developers using the SDL library. (includes

I’ve tried to make the image of 320x240 20% bigger(384 x 288)
on my pc that has a proc Athlon64 3500+(2,2 GHZ)
and it can’t do it at 60fps.
I don’t know the processor usage of this kind of work but think my proc can
get 60fps with the image going to 800x600.
It can’t get even the 20% its nos acceptabel for me.
Thanks for the answers.

I think you are using the wrong algorithm to stretch the image it cannot be
so slow…

I think you should be easily reach 60fps for anything smaller than 1280 x
1024 if you use software surfaces and do not blit more then 2 or 3 times the
number of pixels of the screen.

Please note that HW surfaces give some advantage only with full screen
double buffering, only if you don’t use alpha blending and only on windows,
so don’t bother using them.On Fri, Jul 25, 2008 at 5:49 PM, Andre Botelho wrote:


Bye,
Gabry