[Wormux-dev] Very good performance improvment in Wormux

2005-11-20 Par sujet Victor STINNER
Hey, (Very long email, if you don't have time to read it, go to "PROPOSITION" at the end) I would like to improve Wormux speed, because like a friend said to me: "Worms 1 ran on a 486 [ and Wormux need 2 GHz ]" !!! For sure, Wormux need too much CPU and memory. So I wrote a tool to benchmark Wor

Re: [Wormux-dev] Very good performance improvment in Wormux

2005-11-20 Par sujet Jean-Christophe Duberga
Victor STINNER wrote: Hey, (Very long email, if you don't have time to read it, go to "PROPOSITION" at the end) I would like to improve Wormux speed, because like a friend said to me: "Worms 1 ran on a 486 [ and Wormux need 2 GHz ]" !!! For sure, Wormux need too much CPU and memory. Agree,

Re: [Wormux-dev] Very good performance improvment in Wormux

2005-11-20 Par sujet Victor STINNER
Hi, Le dimanche 20 novembre 2005 à 12:25 +0100, Jean-Christophe Duberga a écrit : > Agree, but the way we have choosen to write wormux make it impossible to > be runned on so old hardware : (...) Yes I know ... I just would like to say, I you wrote, that "we can do it better" ;-) > Note: For th

Re: [Wormux-dev] Very good performance improvment in Wormux

2005-11-20 Par sujet Jean-Christophe Duberga
Victor STINNER wrote: 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 !? 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)

Re: [Wormux-dev] Very good performance improvment in Wormux

2005-11-20 Par sujet Victor STINNER
Le dimanche 20 novembre 2005 à 15:34 +0100, Jean-Christophe Duberga a écrit : > What will we cache : glyphs or pieces of text ? Text rendered in a SDL_Surface*. So one cache item would contains text, size and color. But we have to check if it's faster to use cache or not, because sometime it ti