this way your code can never go over 40 fps no matter how simple it is, otherwise your orbiting cube would run at a reasonable 50 fps on a cheap laptop and an insane 1600fps on a decent desktop machine, needless to say 1600 fps is gonna be unplayably fast
the first command sets the max speed
the second makes sure that you only see changes when sync is called (so you get to see clear text onscreen for example)
try removeing sync and sync on from your code, the difference is noticable in many programs.
Mentor.
PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.