[SDL] Better performance needed - am I doing this right?

Colin Tuckley colin at tuckley.org
Wed Jun 6 13:01:04 PDT 2007


Sam Lantinga wrote:

> Usually what people do is do all the drawing for a single frame and then
> when they're all done and want to flush the changes so they are visible,
> then they call SDL_Flip().  You definitely don't want to do it when you
> are still busy drawing things like the cursor.

I realise this, however this isn't a game, it's a BASIC interpreter. There
are times when the user is doing screen editing for example that he needs to
see the cursor movement for *every* keypress. It makes the logic
complicated, I try to work out how interactive the current situation is and
adjust the update/flush accordingly.

regards,

Colin

-- 
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 mailing list