SDL_UpdateRects

Hey,
Can anyone tell me if SDL_UpdateRects does all of the updated
rectangles (effectively) simultaneously or if it just steps through the
sent array of Rects and effectively calls SLD_UpdateRect on each?–

End of Rant.

Jimmy
JimmysWorld.org

SDL does not simply call SDL_UpdateRect during a call to SDL_UpdateRects.
Each SDL function is mapped to a function pointer appropriate for each
object (depending on platform, whether or nor hardware surfaces are being
used, etc). It takes some digging in the source code to find out exactly
what is happening when you call SDL_UpdateRects (or any function for that
matter).

Effectively, though, SDL_UpdateRects does update each rect individually(just
not by calling SDL_UpdateRect), in order, and so if you have overlapping
rectangles, you’ll be updating the overlapping portion more than once.>From: Jimmy

Reply-To: sdl at libsdl.org
To: SDL Mailing List
Subject: [SDL] SDL_UpdateRects
Date: 20 Dec 2001 13:06:42 -0500

Hey,
Can anyone tell me if SDL_UpdateRects does all of the updated
rectangles (effectively) simultaneously or if it just steps through the
sent array of Rects and effectively calls SLD_UpdateRect on each?

End of Rant.

Jimmy
JimmysWorld.org


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


MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

Thanks.On Thu, 2001-12-20 at 15:01, Ernest Pazera wrote:

SDL does not simply call SDL_UpdateRect during a call to SDL_UpdateRects.
Each SDL function is mapped to a function pointer appropriate for each
object (depending on platform, whether or nor hardware surfaces are being
used, etc). It takes some digging in the source code to find out exactly
what is happening when you call SDL_UpdateRects (or any function for that
matter).

Effectively, though, SDL_UpdateRects does update each rect individually(just
not by calling SDL_UpdateRect), in order, and so if you have overlapping
rectangles, you’ll be updating the overlapping portion more than once.

From: Jimmy <@Jimmy>
Reply-To: sdl at libsdl.org
To: SDL Mailing List
Subject: [SDL] SDL_UpdateRects
Date: 20 Dec 2001 13:06:42 -0500

Hey,
Can anyone tell me if SDL_UpdateRects does all of the updated
rectangles (effectively) simultaneously or if it just steps through the
sent array of Rects and effectively calls SLD_UpdateRect on each?

End of Rant.

Jimmy
JimmysWorld.org


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


MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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

End of Rant.

Jimmy
JimmysWorld.org

SDL does not simply call SDL_UpdateRect during a call to SDL_UpdateRects.
Each SDL function is mapped to a function pointer appropriate for each
object (depending on platform, whether or nor hardware surfaces are being
used, etc). It takes some digging in the source code to find out exactly
what is happening when you call SDL_UpdateRects (or any function for that
matter).

Effectively, though, SDL_UpdateRects does update each rect individually(just
not by calling SDL_UpdateRect), in order, and so if you have overlapping
rectangles, you’ll be updating the overlapping portion more than once.

Actually, the rectangles are batched and sent to the underlying video driver
which is usually more efficient at handling multiple rectangles per batch than
sending multiple batches of a single rectangle.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

did i misread how the DX5_WindowUpdate function was working, then?>From: Sam Lantinga

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: Re: [SDL] SDL_UpdateRects
Date: Thu, 20 Dec 2001 14:40:58 -0800

SDL does not simply call SDL_UpdateRect during a call to
SDL_UpdateRects.
Each SDL function is mapped to a function pointer appropriate for each
object (depending on platform, whether or nor hardware surfaces are
being
used, etc). It takes some digging in the source code to find out
exactly
what is happening when you call SDL_UpdateRects (or any function for
that
matter).

Effectively, though, SDL_UpdateRects does update each rect
individually(just
not by calling SDL_UpdateRect), in order, and so if you have overlapping
rectangles, you’ll be updating the overlapping portion more than once.

Actually, the rectangles are batched and sent to the underlying video
driver
which is usually more efficient at handling multiple rectangles per batch
than
sending multiple batches of a single rectangle.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


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


Send and receive Hotmail on your mobile device: http://mobile.msn.com