Victor STINNER wrote:Yes, sure, 0 is the better as the surface will be created with the current display bpp (i.e. the bpp to which the X server is running)It really goes slower when I use 16 bpp (8 instead of 21 fps). I choosed *32* bpp in SDL_SetVideoMode. But 0 is maybe better !? Ok, how handle we the particules (nuts, clouds,etc...) should we disable them when we use the cache mechanism or not (with map like Arbres, nuts seems to cover 70% of the screen) Yes that is sufficient for sky/background and that would be optimal to render the ground is to try render only the tiles item that intersect the rectangles to refresh (what I can do easily as I have already made it for tile item digging method) What will we cache : glyphs or pieces of text ?But we also need a cache for TTF rendering (eg. keep 200 objects with a algorithm to sort them as "last used", good algorithms exist). That sounds good... Perhaps the fist thing to do - I think - is that we should find a better way to display text as it is near unreadable when it is displayed on top of a light or white surface than we should optimize it.
Ok, I write the method to redraw only a rectangle area of the map. Jean-Christophe -- Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr Excellente école pour apprendre la langue allemande à Berlin |
- [Wormux-dev] Very good performance improvment in W... Victor STINNER
- Re: [Wormux-dev] Very good performance improv... Jean-Christophe Duberga
- Re: [Wormux-dev] Very good performance im... Victor STINNER
- Re: [Wormux-dev] Very good performanc... Jean-Christophe Duberga
- Re: [Wormux-dev] Very good perfor... Victor STINNER
- Re: [Wormux-dev] Very good perfor... Matthieu Fertré
- Re: [Wormux-dev] Very good perfor... Matthieu Fertré
- Re: [Wormux-dev] Very good p... Jean-Christophe Duberga
- Re: [Wormux-dev] Very go... Jean-Christophe Duberga
- Re: [Wormux-dev] Very good performanc... Matthieu Fertré
- Re: [Wormux-dev] Very good performance improv... Matthieu Fertré
