1,105,208 Community Members

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

Member Avatar
gfp91
Newbie Poster
9 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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.

Member Avatar
DeanMSands3
Posting Whiz
358 posts since Jan 2012
Reputation Points: 57 [?]
Q&As Helped to Solve: 49 [?]
Skill Endorsements: 2 [?]
 
0
 

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

Member Avatar
gfp91
Newbie Poster
9 posts since Jan 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

api is win32

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: