Ok, I will write a comparative of theese libraries on the wiki tomorrow.
It seems not written yet :-( Did you have begin your comparison ??
Sorry for the delay, this is now on the wiki ( follow the link under
libraries enumeration )
https://www.pagali.net/wormux/index.php/Comparative
About the new code with SDL:
1) src/main.cpp:
SDL_SetVideo is called with a bpp of 16 what is bad because if the user
have not setting up his X configuration to 16 bits per pixel, SDL can't
change it ( as it is impossible to change bpp under X) So SDL will
always do conversions in the fly (and conversions 16 bpp <->32/24 are
very CPU expensive)
A better way is to ask SDL to set the video mode to the default one (
the bpp with which X is currently running) by passing 0 as bpp in
SDL_SetVideoMode.
2) I have written a preliminary ressource_manager class that load images
and convert them for efficient blittering, should I send theese files on
the list, in patches ?
3) wormux have so many internal dependencies...
For exemple physiacal object depends of ninja_rope...
So, When we port a file to SDL we must port a lot of others files (at
least the .h) but the good thing is that when it's done it is not to do
any more ;)
a+
Jean-Christophe
--
Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr
webmaster du site MNEA - http://www.mnea.fr