[SDL] Better performance needed - am I doing this right?
colin at tuckley.org
Wed Jun 6 10:44:41 PDT 2007
Rúben Lício wrote:
> Dont update all screen every time, update only what you change, that is
> the way I'm doing in my current game, it do video speed up as well.
I've tried that too, I've replaced:
if (echo) SDL_Flip(screen0);
if (echo) SDL_UpdateRect(screen0, xtext * 8, ytext * 8, 8, 8);
so that only the 8x8 cell I've changed is updated. It doesn't make any
My test program is a small BASIC program that counts to 100 printing each
number in the same place on the screen while keeping track of clock ticks.
So with cursor movement and drawing I'm drawing about 10 chars worth of
pixels for each count. The results are pretty consistent.
Colin Tuckley | colin at tuckley.org | PGP/GnuPG Key Id
+44(0)1903 236872 | +44(0)7799 143369 | 0x1B3045CE
It is well known that Discworld trolls loose intelligence as they warm up.
Does this mean that a particularly hot headed troll would be a lava lout?
More information about the SDL