Hello!
First, is the modifications in the configure script works well for you ?
About the framerate,
By now, everything is rendered in software in the SDL port.
It gives me (Athlon 2600)
- between 32 and 44 fps in 800x600
- between 21- 31 fps in 1024x768
Let me know what you obtain.
I have tried with glSDL backend:
It gives me 300 fps without any text display.
fall down to 7 fps when displaying only the text of the fps
fall down to less than 1 fps when all the text is displayed
The glSDL recommendations (
http://icps.u-strasbg.fr/~marchesin/sdl/glsdl.html ) say that new
surfaces creation are very slow ( as context creation is very slow ) and
should be, when possible, avoided but we make one each time we display
a line of text.
Ok, now in the current SVN only one version of TileItem is present (
Software alpha )
I have hardware alpha ready ( intersting for glSDL backend only ?)
I have seen that alpha is used as binary component at the momment (255
or 0) So I can make a version of TileItem with Colorkey (I think it
should be faster even in software for older systems)
I plan to write 1 virtual MapItem class
and 4 MapItem children:
MapItem_Alphasoftware
MapItem_AlphaHardware (good for glSDL backend)
MapItem_ColorkeySoftware
MapItem_ColorkeyHardware
Doing this, we can dynamicallay (i.e. at runtime) choosing which version
to use (from the option menu for exemple)
What do you think about it ?
I must also try the SDL_RLEACCEL flag as we have a lot of draws for a
few sufaces modifications and disable drawing of completly transparent
tileitems.
a+
Jean-Christophe
--
Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr
webmaster du site MNEA - http://www.mnea.fr