PDA

Click to See Complete Forum and Search --> : Direct Draw Timeing +


slashandburn
Aug 9th, 2000, 12:24 AM
Im working on a simple game for a contest and i need help with this direct draw timing. My problem is on the game loop. When it runs through the loop it causes graphic coruption and is going faster then i need it. but when i had it on a timer it caused graphic coruption.

What i need it a way to time it to 30 Frames Per Second and a way to check if it is done drawing the image, so it doesn't draw when it is drawing the image before.( i saw this feature in another code sample but i lost it)

kedaman
Aug 9th, 2000, 07:24 AM
Is there point having to limit it to 30 frames? As it may not work for slower machines, you could have your graphics update as fast as possible and let the speed of the game be controlled instead,

slashandburn
Aug 10th, 2000, 12:00 AM
I fixed it all and figured out a miss blit causing the graphic corruption.