SDL 1.3 progress

The latest SVN snapshot contains the following mostly implemented video
render drivers: software, gdi, d3d, dummy

Keep in mind that this is PRE-ALPHA software, has lots of known bugs and
missing features, but you’re welcome to check it out here:
http://www.libsdl.org/svn.php

You can select the render driver with the SDL_VIDEO_RENDERER environment
variable.

Results from “testsprite -bpp 16” in SDL 1.2:
1715 FPS
Results from “testsprite” in SDL 1.3, using gdi renderer:
1530 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using gdi renderer:
148 FPS
Results from “testsprite” in SDL 1.3, using d3d renderer:
580 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using d3d renderer:
1371 FPS

A couple of things are apparent from these results on my machine:
First, the video card does accelerated blits from system memory,
which makes GDI screamingly fast when there’s no conversion involved.
Second, GDI is really bad at alpha blending.
Third, the Direct3D driver can probably use some optimization.
Fourth, these results will probably be completely different on
different hardware and system configuration.

Enjoy!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

A couple of things are apparent from these results on my machine:
First, the video card does accelerated blits from system memory,
which makes GDI screamingly fast when there’s no conversion involved.
Second, GDI is really bad at alpha blending.
Third, the Direct3D driver can probably use some optimization.
Fourth, these results will probably be completely different on
different hardware and system configuration.

What hardware do you use ?

CU

What hardware do you use ?

I’m running this on a MacBook Pro. :slight_smile:

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Here are the same tests at 32 bpp:

Results from “testsprite -bpp 16” in SDL 1.2:
1412 FPS
Results from “testsprite” in SDL 1.3, using gdi renderer:
1253 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using gdi renderer:
140 FPS
Results from “testsprite” in SDL 1.3, using d3d renderer:
325 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using d3d renderer:
1256 FPS

These are pretty consistent with the results at 16 bpp.

Keep in mind that these results are without any performance tuning,
may be misleading due to bugs, and will vary considerably based on
the hardware involved.

Nonetheless. :slight_smile:

Just for fun, “testsprite2 -windows 16”, using the d3d renderer:
146 FPS

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

Just for fun, “testsprite2 -windows 16”, using the d3d renderer:
146 FPS

Just asking for fun: Does SDL or
Windows limit the Nr. of used Windows ?

CU

As far as I know, at least on the Windows side,
the only limit is memory size.

But on the old 9x Windows, you also be limited by
the famous resource heaps.

Cheers,
Paulo

Quoting Torsten Giebl :> Hello !

Just for fun, “testsprite2 -windows 16”, using the d3d renderer:
146 FPS

Just asking for fun: Does SDL or
Windows limit the Nr. of used Windows ?

CU


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


This message was sent using IMP, the Internet Messaging Program.

Sam Lantinga wrote:

The latest SVN snapshot contains the following mostly implemented video
render drivers: software, gdi, d3d, dummy

Are there any plans to support DirectDraw 7 ? I know this may seem
pointless when you’ve got D3D but there are still plenty of cases where
using DDraw is faster than setting up 3D to do the job. For example, you
can’t do a YUV overlay in D3D. Also, some older chipsets (laptop
chipsets for example) would do rubbish under 3D but be just fine in
accelerated 2D.

Pete.

Hi all!

and what about OpenGL? and glSDL?

Im more interesting on OpenGL than D3D due to cross-platform support…

cheers!> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Friday, July 14, 2006 11:02 AM
Subject: [SDL] SDL 1.3 progress

The latest SVN snapshot contains the following mostly implemented video
render drivers: software, gdi, d3d, dummy

Keep in mind that this is PRE-ALPHA software, has lots of known bugs and
missing features, but you’re welcome to check it out here:
http://www.libsdl.org/svn.php

You can select the render driver with the SDL_VIDEO_RENDERER environment
variable.

Results from “testsprite -bpp 16” in SDL 1.2:
1715 FPS
Results from “testsprite” in SDL 1.3, using gdi renderer:
1530 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using gdi renderer:
148 FPS
Results from “testsprite” in SDL 1.3, using d3d renderer:
580 FPS
Results from “testsprite2 -windows 1” in SDL 1.3, using d3d renderer:
1371 FPS

A couple of things are apparent from these results on my machine:
First, the video card does accelerated blits from system memory,
which makes GDI screamingly fast when there’s no conversion involved.
Second, GDI is really bad at alpha blending.
Third, the Direct3D driver can probably use some optimization.
Fourth, these results will probably be completely different on
different hardware and system configuration.

Enjoy!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment


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

__________ Informaci?n de NOD32, revisi?n 1.1659 (20060713) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

Are there any plans to support DirectDraw 7 ?

Very possibly. I went with D3D first, since I believe that DirectDraw 7
is implemented on top of D3D as of Direct3D 10, but it certainly wouldn’t
hurt. Once the 1.3 code stabilizes a bit, you’re welcome to contribute a
driver, if you want to see it sooner rather than later.

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

Hi all!

and what about OpenGL? and glSDL?

They’re coming. I went with D3D first, since I wanted to make sure the
1.3 API worked smoothly with it, and to see how much performance it has.

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

Here are the same tests at 32 bpp:

Sorry, I just had to share this:
$ SDL_VIDEO_RENDERER=d3d ./testsprite2 -windows 100
26.62 frames per second

Yes, there really are 100 windows there. :slight_smile:

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

So I can see that oncoming 1.3 will have a lot of video drivers!

It will be a killer feature of SDL :slight_smile:

Im studying the new code, if I can help on any task, I’ll do it!

Thanks you very much Sam and to all the SDL community.

Cheers!> ----- Original Message -----

From: slouken@devolution.com (Sam Lantinga)
To: "A list for developers using the SDL library. (includes SDL-announce)"

Sent: Saturday, July 15, 2006 10:52 AM
Subject: Re: [SDL] SDL 1.3 progress

Hi all!

and what about OpenGL? and glSDL?

They’re coming. I went with D3D first, since I wanted to make sure the
1.3 API worked smoothly with it, and to see how much performance it has.

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


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

__________ Informaci?n de NOD32, revisi?n 1.1662 (20060715) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com