Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Antiquity
#4
Quote:[half pseudo code thingy]

Surface = SDL_CreateRGBSurface
PSET images to surface

Do
SDL_BlitSurface 'image to screen
Loop

[/half pseudo code thingy]

It actually seems to go a couple of FPS slower although the advantage in this method is that it no longer needs to lock and unlock the surface.
I've now made it so that it only updates when it needs to instead of just drawing frame after frame.
Reply


Messages In This Thread
Antiquity - by undertow - 01-10-2005, 07:58 PM
Antiquity - by Z!re - 01-10-2005, 11:20 PM
Antiquity - by v3cz0r - 01-11-2005, 07:46 AM
Antiquity - by undertow - 01-11-2005, 12:05 PM
Antiquity - by undertow - 01-11-2005, 12:14 PM
Antiquity - by Anonymous - 02-08-2005, 07:51 PM
Antiquity - by Z!re - 02-08-2005, 08:10 PM
Antiquity - by VonGodric - 02-08-2005, 08:11 PM
Antiquity - by undertow - 02-08-2005, 08:21 PM
Antiquity - by Z!re - 02-08-2005, 08:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)