Frame skip instead of slowdown

Non-platform specific questions.

Frame skip instead of slowdown

Postby Hblade » Wed May 01, 2013 6:32 pm

I've asked this before but I tried searching for it, it failed. I forgot the method to keep the same movement speed no matter what frame rate your at (Example 60FPS drops to 30, I want the movement speed to stay the same instead of slow down)

can anyone help =)?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Frame skip instead of slowdown

Postby skydereign » Wed May 01, 2013 7:09 pm

Setting motion compensation to yes in the game properties should do this. Otherwise you'll need to use timing to determine how much time has passed since last frame, and adjust accordingly (get the number of frames that should have passed, and multiply it by speed).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Frame skip instead of slowdown

Postby Hblade » Wed May 01, 2013 7:37 pm

thanks
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron