We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,931 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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.

2
Contributors
2
Replies
13 Hours
Discussion Span
1 Year Ago
Last Updated
3
Views
gfp91
Newbie Poster
9 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

DeanMSands3
Posting Whiz
310 posts since Jan 2012
Reputation Points: 80
Solved Threads: 42
Skill Endorsements: 1

api is win32

gfp91
Newbie Poster
9 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0801 seconds using 3.07MB