Hardware (blting) acceleration in window on windows

Forgive me if this has been asked before:

Is there any chance that SDL will be modified to use hardware blitting acceleration when running in a window on MS Windows?

I ask because there is another graphics library (not as functional as SDL and for windows only) called CDX, which allows this. Using CDX in my application (an action game) I am getting frames rates of around 400 fps. Using SDL I get 40 fps.

I did have a look through the code myself but was a bit baffled by all the DirectX stuff (the reason i am using a Blitting library in the first place :stuck_out_tongue: ).

Anyone else want this feature?

Any comments?

Thanks

Chocawok

Hi,
yes, there is another way… you could use glSDL.
In my website (www.megastormsystems.com) I have a little benchmark utility and you can see the differences between ddraw,d3d,software and glSDL.

Further information of glSDL can be found here: http://icps.u-strasbg.fr/~marchesin/sdl/glsdl.html
and latest SDL with glSDL included can be downloaded here: http://icps.u-strasbg.fr/~marchesin/sdl

Cheers----- Original Message -----
From: Dean Ware
To: sdl at libsdl.org
Sent: Thursday, January 05, 2006 5:53 AM
Subject: [SDL] Hardware (blting) acceleration in window on windows

Forgive me if this has been asked before:

Is there any chance that SDL will be modified to use hardware blitting acceleration when running in a window on MS Windows?

I ask because there is another graphics library (not as functional as SDL and for windows only) called CDX, which allows this. Using CDX in my application (an action game) I am getting frames rates of around 400 fps. Using SDL I get 40 fps.

I did have a look through the code myself but was a bit baffled by all the DirectX stuff (the reason i am using a Blitting library in the first place :stuck_out_tongue: ).

Anyone else want this feature?

Any comments?

Thanks

Chocawok

__________ Informaci?n de NOD32, revisi?n 1.1352 (20060104) __________

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



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

__________ Informacisn de NOD32, revisisn 1.1352 (20060104) __________

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

Anyone else want this feature?

If this is possible, then yes!!! :slight_smile:

If this is possible, then yes!!! :slight_smile:

My understanding is that you already do get hardware blitting from the
DirectX target, if you have hardware surfaces.

(directx isn’t the default right now in CVS, but it will be again, and
it was in the latest (1.2.9) release.)

–ryan.