Code/frame rate

From kJams Wiki
Jump to navigation Jump to search

here's my 3 sampler stacks.

picture1.png

 in this first one, i call CGraphics::Update(), this is where I actually create the CGImage, which takes only 1 sample (from 273 to 272) so i don't show it. then i loop over the destinations, telling each port to suck in the image, and you can see where most of the time is going.

picture2.png

the rest of the time is going to erase the background first, shown above

picture3.png

and after i erase and then blit, i also do an overlay of text using a transparency layer, but that only happens for a few seconds so i'm not very worried about that speed hit.

Below, here's what QuartzDebug has to say. the hilited row is my video window. do i need to make it a compositing window or something?

picture4.png