Original Post
It''s simply flipping as fast as possible which is the problem. The game is 2d, so on a system that runs dx7, it won''t experience slowdown. Basically, the code I have runs like this
(right now using hardcoded variables)
The game has a variable which when is less than 0 draws the screen. After the screen has been drawn, the game adds 60 to it(the speed the game needs to run at) then at the beginning of each frame, I subtract the refresh rate of the monitor, which if it is higher than 60 means after a certain amount of frames 60 will need to be added twice, which successfuly makes the game run at the correct speed.