Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SDL speed increase using image = SDL_DisplayFormat(image)
#11
A quick follow up:
"blah = SDL_DisplayFormat(blah)" is incorrect usage of this function and will result in a memory leak.
Do this instead:
Code:
newSurface = SDL_DisplayFormat(oldSurface)
SDL_FreeSurface(oldSurface)
More info here:
http://www.libsdl.org/cgi/docwiki.cgi/SD...playFormat
Reply
#12
1000101 is right. Doing anything per pixel on an HW surface would be a lot slower tham SW surface.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)