Matthieu Fertré wrote:

Ok, if you are intersted, I can write a map method to redraw the map( sky / ground ) of a rectangle area and not all the screen then with a such method you can apply your patch ?

I think that with SDL it would be *very* easy because Blit function
accept (need) rectangles :-)

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)


Ok, I write the method to redraw only a rectangle area of the map.


Is it a work in progress ?

That was.. Now it is done and tested ( see revision 156 )

You can now redraw only parts of the  ground..
But... I have said last month that we must not expect of this method of redrawing the screen a huge improvement in the FPS as it only permit gain when the player don't move and when tehre is not a lot of particules in the background.
benchmarks says we should see what happens when we enable MMX

a+
Jean-Christophe

--
Jean-Christophe Duberga - http://jeanchristophe.duber.free.fr
webmaster du site MNEA  - http://www.mnea.fr


Répondre à