Hermes and SDL

Hello,

could someone explain me why hermes is not used for all the SDL color
conversion stuff? It’s faster in almost all situations and it’s better
optimized for MMX etc. In lsdlDoom the conversion from 256 color palette
to RGB modes is done with own routines, because they are faster than
SDL’s. If hermes’ API is changed to export the span routines and the
alpha-functions are finished, it can even be used for RLE accelerated
alpha blitting.
If there is no real reason for it, I will try and incorporate hermes
into SDL. I just wanted to ask first, because there might be some good
reasons for not doing it.

Proff–

Florian ‘Proff’ Schulze - @Florian_Schulze
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245

Is Hermes cross platform capable? It’s been a while since I messed with
it so I forget. A major focus for SDL is the ability to easily develop
cross platform multimedia apps like games and demos that can compile on
many Unices/clones, Win32, BeOS and MacOS with little fuss. If Hermes
can do the same, it’d be neat what can come of yet another library for
us to integrate SDL with…

Mike

Florian ‘Proff’ Schulze wrote:>

Hello,

could someone explain me why hermes is not used for all the SDL color
conversion stuff? It’s faster in almost all situations and it’s better
optimized for MMX etc. In lsdlDoom the conversion from 256 color palette
to RGB modes is done with own routines, because they are faster than
SDL’s. If hermes’ API is changed to export the span routines and the
alpha-functions are finished, it can even be used for RLE accelerated
alpha blitting.
If there is no real reason for it, I will try and incorporate hermes
into SDL. I just wanted to ask first, because there might be some good
reasons for not doing it.

Proff

Florian ‘Proff’ Schulze - florian.proff.schulze at gmx.net
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245

Michael Vanecek wrote:

Is Hermes cross platform capable? It’s been a while since I messed with
it so I forget. A major focus for SDL is the ability to easily develop

Hermes compiles on more systems than SDL does :wink: Basically all it
requires is a not too old C compiler. The official homepage is
http://clanlib.org/hermes--
Daniel Vogel
Programmer
Loki Entertainment Software

I thought Hermes had an assembly code backend? Maybe that is just for
extra acceleration.

DaveOn Fri, 23 Jun 2000, Daniel Vogel wrote:

Michael Vanecek wrote:

Is Hermes cross platform capable? It’s been a while since I messed with
it so I forget. A major focus for SDL is the ability to easily develop

Hermes compiles on more systems than SDL does :wink: Basically all it
requires is a not too old C compiler. The official homepage is
http://clanlib.org/hermes


Daniel Vogel
Programmer
Loki Entertainment Software

Hello,

could someone explain me why hermes is not used for all the SDL color
conversion stuff?

Originally, it was not done because of incompatible licenses, and since
then Hermes was in development. I haven’t looked at it in a while, so
it may be worth looking at again.

It’s faster in almost all situations and it’s better
optimized for MMX etc.

I looked about a year ago, and SDL was as fast or in some cases faster.
That may have changed…

In lsdlDoom the conversion from 256 color palette
to RGB modes is done with own routines, because they are faster than
SDL’s.

Can you send them to me? My impression was that the SDL 8 -> RGB
routines were very fast.

If hermes’ API is changed to export the span routines and the
alpha-functions are finished, it can even be used for RLE accelerated
alpha blitting.
If there is no real reason for it, I will try and incorporate hermes
into SDL. I just wanted to ask first, because there might be some good
reasons for not doing it.

Not at the moment. It needs to be an optional component, but the
infrastructure should allow it.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

Can you send them to me? My impression was that the SDL 8 -> RGB
routines were very fast.

I haven’t compared them against anything else, but they certainly seem
to be fast to me. Since the game we’re working on uses 8-bit graphics
and palette rotation, I always ask for an 8-bit surface and let SDL do
the conversion to my 16-bit hardware. SDL does a full window blit (say,
450x350) at least 20 times/second with no apparent slowdown. This is on
a K6/333.

Hi,

I haven’t checked the speed myself. But they really seem to be faster. At
least with gcc, because there some asm is used.

Proff–

Florian ‘Proff’ Schulze - @Florian_Schulze
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245
-------------- next part --------------
A non-text attachment was scrubbed…
Name: v_video_trans.zip
Type: application/x-zip-compressed
Size: 5914 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000624/0e6f75e0/attachment.bin