[SDL] 2D API evolution (SDL 1.3/2.0)

Stephane Marchesin stephane.marchesin at wanadoo.fr
Tue Aug 15 09:22:55 PDT 2006


Torsten Giebl wrote:
> Hello !
>
>
>   
>> On Windows 2000, Pentium II / 300, with standard VGA graphics, at 640x480
>>  I get 12 fps with windib, and 30 (capped) with directx. That machine
>> does not have the hardware to use a D3D backend or Vista.
>>     
>
> I think this is only a problem
> with newer DirectX versions.
>
>   
>> Could be, but I'll still need separate Windows builds to take advantage
>> of 1.2 or 1.3.
>>     
>
> That should be no problem. We don't have
> Universal Binaries in Windows :-(
>
>   
>> Maybe I ought to wait till 1.3 comes out, and backport D3D to 1.2 :)
>>     
>
> Textureblitting is pretty fast on
> real 3D with either D3D or OpenGL.
>
> I would be interested about the speed using Mesa
> with Softwaredriver for example the testsprite code ?
>
> So for simple 2D games on OpenGL Mesa maybe an alternative
> if there is no or no good OpenGL support in the OS.
>
> How fast is glWritePixels for example on an actual card with
> good OpenGL drivers ?
>
>   
Here's a story for you : I work on caprice32 (an amstrad CPC emulator) 
and at some point I added code to do display through OpenGL (to get hw 
accelerated bilinear filtering). At some point, we had a report of 
someone who wanted nearest neighbour scaling with OpenGL. I asked what 
was the point since that would not improve the situation over standard 
2D, and he said that OpenGL support was actually faster than 2D uploads 
through SDL, even when not scaling the display.

So I pretty much trust that the drivers work correctly.

Stephane





More information about the SDL mailing list