954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to restrict fraimes per second / speed in c++

hi. im programming a 2d game and on the university computers it runs nice and slow but on my i7 laptop the ball travels at a million miles per hour. how can i restrict the speed/fps.

gfp91
Newbie Poster
7 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Wait for the screen to refresh. See if your API will let you do that. What API are you using anyway?

DeanMSands3
Junior Poster
186 posts since Jan 2012
Reputation Points: 37
Solved Threads: 26
 

api is win32

gfp91
Newbie Poster
7 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: