SDL_SoftStretch and surface locking

Hi,

SDL_SoftStretch doesn’t work on hardware surface, becauses it doesn’t
lock/unlock them. Is this on purpose ?
(and don’t tell me I have to look at the name of the function to answer
this question, as “Soft” can either refer to a software surface or a
software stretching routine :slight_smile:

Thanks,
Stephane

Hey Stephanie, look at the name…SOFT stretch (hahah im jk!)

i think this is cause it would be way too slow to do on hardware surfaces
since theres so much extra overhead for reading/writing memory on the video
card.

You know whats really good for doing 2d stuff like stretches, rotations etc?
OpenGL!

you might give it a shot, 2d in opengl is super fast (:> ----- Original Message -----

From: stephane.marchesin@wanadoo.fr (Stephane Marchesin)
To:
Sent: Sunday, May 09, 2004 11:27 AM
Subject: [SDL] SDL_SoftStretch and surface locking

Hi,

SDL_SoftStretch doesn’t work on hardware surface, becauses it doesn’t
lock/unlock them. Is this on purpose ?
(and don’t tell me I have to look at the name of the function to answer
this question, as “Soft” can either refer to a software surface or a
software stretching routine :slight_smile:

Thanks,
Stephane


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi,

SDL_SoftStretch doesn’t work on hardware surface, becauses it doesn’t
lock/unlock them. Is this on purpose ?

Yes, direct pixel access on hardware surfaces is REALLY slow.
However, it probably shouldn’t crash…

This should be fixed in CVS.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment