Skip to main content
gamedev.net
🔒 Locked

Thanks..and

Started by Yarharhar Aug 23, 2000 at 5:42 PM 0 replies 450+ views
Original Post
Yarharhar
Yarharhar
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.