What does Flip really do?

BlitzMax Forums/BlitzMax Programming/What does Flip really do?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

On my machine (AMD Athlon 64 X2 Dual Core 4600+, 2 gigs of RAM, GeForce 7900 GS video card), I get a draw time of 1 and a flip time of 45 with 1,000 triangles whether debug is on or off. The flip time definitely increases a lot relative to the draw time as I add triangles.

This is kind of weird: when I set the program to use 10,000 triangles, things start getting really wonky. DrawTime varies wildly from 8 to the high 300s with the FlipTime hovering in the 200-400 range. I took out the while/wend and all the Print commands and timed just the Flip portion of the code: with 10,000 triangles, it varies from as low as 79ms to as high as 450ish, mostly staying in the 400 area, but often slipping into the 150s. That's odd.

Flip -1, Flip 0 and Flip 1 don't show much difference, neither does fiddling with the refresh rate in the Graphics command.

SpaceAce