SDL 1.3 faster than 1.2!

With the new architecture, running the vanilla testsprite speed test
on my Mac Pro running Mac OS X, SDL 1.3 without hardware acceleration
is twice as fast as SDL 1.2! :slight_smile:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1259.62 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
514.22 frames per second

I’m not expecting the same improvements on other platforms, since
there isn’t the same radical change in the way bits get to the screen,
but that’s pretty exciting! :slight_smile:

See ya,–
? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks

Sweet!> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Friday, February 04, 2011 1:55 AM
To: SDL
Subject: [SDL] SDL 1.3 faster than 1.2!

With the new architecture, running the vanilla testsprite speed test
on my Mac Pro running Mac OS X, SDL 1.3 without hardware acceleration
is twice as fast as SDL 1.2! :slight_smile:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1259.62 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
514.22 frames per second

I’m not expecting the same improvements on other platforms, since
there isn’t the same radical change in the way bits get to the screen,
but that’s pretty exciting! :slight_smile:

See ya,

? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks


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

For grins, the SDL 1.3 testsprite2, which does the same test but with
hardware acceleration, gets around 4000 frames per second on my
machine.On Thu, Feb 3, 2011 at 11:54 PM, Sam Lantinga <@slouken> wrote:

With the new architecture, running the vanilla testsprite speed test
on my Mac Pro running Mac OS X, SDL 1.3 without hardware acceleration
is twice as fast as SDL 1.2! :slight_smile:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1259.62 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
514.22 frames per second

I’m not expecting the same improvements on other platforms, since
there isn’t the same radical change in the way bits get to the screen,
but that’s pretty exciting! :slight_smile:

See ya,

? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks


? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks

Interestingly, I get similar results on Linux, with the same hardware
and current drivers:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1244.55 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
495.48 frames per secondOn Thu, Feb 3, 2011 at 11:54 PM, Sam Lantinga <@slouken> wrote:

With the new architecture, running the vanilla testsprite speed test
on my Mac Pro running Mac OS X, SDL 1.3 without hardware acceleration
is twice as fast as SDL 1.2! :slight_smile:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1259.62 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
514.22 frames per second

I’m not expecting the same improvements on other platforms, since
there isn’t the same radical change in the way bits get to the screen,
but that’s pretty exciting! :slight_smile:

See ya,

? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks


? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks

Hello !

Interestingly, I get similar results on Linux, with the same hardware
and current drivers:

SDL 1.3:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1244.55 frames per second

SDL 1.2:
./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
495.48 frames per second
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I never believed in MAGIC, but i do now :slight_smile:

CU