I was playing about with some code, having a look to see where the framerate was taking its biggest hits.
I was a bit surprised to find that the "hit" came at Flip (even when set to Flip 0), rather than any of the drawing operations. In fact, everything else was virtually instant until flip came along.
Intriguingly, the more I "draw" earlier in the loop, the longer Flip takes. This is the bit I'm interested in. I'd have thought the act of drawing to the backbuffer would be the time consuming task, with the Flip taking the same length of time regardless of how many objects you've drawn.
It seems not.
I'd love to know what Flip's doing, to see if I can understand what's going on a little better.
I was a bit surprised to find that the "hit" came at Flip (even when set to Flip 0), rather than any of the drawing operations. In fact, everything else was virtually instant until flip came along.
Intriguingly, the more I "draw" earlier in the loop, the longer Flip takes. This is the bit I'm interested in. I'd have thought the act of drawing to the backbuffer would be the time consuming task, with the Flip taking the same length of time regardless of how many objects you've drawn.
It seems not.
I'd love to know what Flip's doing, to see if I can understand what's going on a little better.