Win32 .dlls question

Hi to everyone in [SDL]!

This might be a silly question, but I hope you don’t mind, if I ask…

I began writing an application with SDL on my linux-system and everything was
fine and worked well. Then I wanted to test my app at my friends computer who
runs Win32 and so I compiled it with the ming32-crosscompiler-package. But then
when we run my app, it somehow was terribly slow, although our machines are
pretty the same. (K6/233 Processor)

By accident I found out that if my app uses only SDL-dib.dll (I killed
SDL-dx5.dll) it runs with the desired velocity (or at least much faster). When
does SDL use SDL-dib.dll (and what stands dib for?) and when does it use the
other dynamic library SDL-dx5.dll (which as I suppose uses the
directx-interface)?

And how come those differences in velocity?

thanks for your answers,
Lorenz

does SDL use SDL-dib.dll (and what stands dib for?) and when does it use the

DIB = device independent bitmap, a data structure that Win32 GDI (I think) uses
for blitting.

other dynamic library SDL-dx5.dll (which as I suppose uses the
directx-interface)?

Right.

And how come those differences in velocity?

Who knows? I should think that DirectX would run much faster. Was DirectX 5 or
greater installed on your friend’s machine? Was it using accelerated device
drivers?

m.On Mon, 26 Jul 1999, you wrote:


“How wonderful! How mysterious Programmer
I carry wood! I draw water!” Loki Entertainment Software

  • Anonymous Tao poet

Lorenz Pollak wrote:

By accident I found out that if my app uses only SDL-dib.dll (I killed
SDL-dx5.dll) it runs with the desired velocity (or at least much faster). When
does SDL use SDL-dib.dll (and what stands dib for?) and when does it use the
other dynamic library SDL-dx5.dll (which as I suppose uses the
directx-interface)?

SDL-dib.dll uses Windows low performace but generic functions for bitmaps blitting
etc. while SDL-dx5.dll uses DirectX which is optimized for best performace in
multimedia apps.
SDL application detects available interfaces at run time and prefers DirectX. If
SDL-dx5.dll is not found or DirectX is not installed on the system, it uses DIB.

And how come those differences in velocity?

DIB is much slower than DirectX.

Vasek

Warren Downs wrote:

Lorenz Pollak wrote:

By accident I found out that if my app uses only SDL-dib.dll (I killed
SDL-dx5.dll) it runs with the desired velocity (or at least much faster).
When > does SDL use SDL-dib.dll (and what stands dib for?) and when does it use
the
other dynamic library SDL-dx5.dll (which as I suppose uses
the > directx-interface)?
SDL-dib.dll uses Windows low performace but generic functions for bitmaps
blitting
etc. while SDL-dx5.dll uses DirectX which is optimized for best performace in
multimedia apps.
SDL application detects available interfaces at run time and prefers DirectX.
If SDL-dx5.dll is not found or DirectX is not installed on the system, it uses
DIB.
And how come those differences in velocity?
DIB is much slower than DirectX.
Vasek

But for him, DirectX was slower. That’s what he was surprised about. My guess
is, DirectX wasn’t using accelerated drivers, or wasn’t even installed(?)

Oops. Time to have some sleep before answering mails… .Sorry

I think SDL checks whether DX is installed or not (as I looked at the code when I
wanted to find out how it really works under MSW). And you won’t be able to run it
with SDL-dx5 if DX wasn’t installed, so probably some dirty drivers as you said…
VS

Lorenz Pollak wrote:

By accident I found out that if my app uses only SDL-dib.dll (I killed
SDL-dx5.dll) it runs with the desired velocity (or at least much faster).
When > does SDL use SDL-dib.dll (and what stands dib for?) and when does it use
the
other dynamic library SDL-dx5.dll (which as I suppose uses
the > directx-interface)?
SDL-dib.dll uses Windows low performace but generic functions for bitmaps
blitting
etc. while SDL-dx5.dll uses DirectX which is optimized for best performace in
multimedia apps.
SDL application detects available interfaces at run time and prefers DirectX.
If SDL-dx5.dll is not found or DirectX is not installed on the system, it uses
DIB.
And how come those differences in velocity?
DIB is much slower than DirectX.
Vasek

But for him, DirectX was slower. That’s what he was surprised about. My guess
is, DirectX wasn’t using accelerated drivers, or wasn’t even installed(?)

Warren