Matthieu Fertré wrote:
First, is the modifications in the configure script works well for
you ?
It seems! I don't have remove the necessary libraries to make a
complete test ;-)
Good.
On my laptop (Pentium4M, 512 Mo, Geforce 4 Go), in 1070x750 (use most
of the desktop and still displaying taskbars):
- 20 fps with CPU 2 GHz
- 10 fps with CPU 1,2 GHz
And what do you think about it ?
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.
Is it only for hardware surface or is it also for software surface ?
No, I think it this should be avoided only for hardware surfaces but I
suspect the function TTF_RenderUTF8_Blended (from SDL_ttf library),
which render text for us, to create hardware surface when hardware
surfaces are available.
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 DO NOT want ONLY glSDL backend, we must support normal backend.
Of course, this is precisely for that.
...the "only ?" is for "is it only intersteing for glSDL ?"
It should be interesting on every systems that support hardware
accelerated alpha blending but as I don't know any of them under linux I
have written "only ?"( Xrender should provide it also but I don't know
if a lot of people have good Xrender driver? )
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 do not have really understand...
Too early in the morning, I will write a draft...
A+
Jean-Christophe
--
Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr
webmaster du site MNEA - http://www.mnea.fr