Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKhatharr

Posted 05 January 2013 - 09:13 PM

Check to make sure you're waiting for vsync when you render. It seems odd that you'd be getting lag from that though...

What's going on in your loop there? What do move() and draw() actually do? (Please use code tags.)
(Some infinite loops will cause your computer to freeze completely)
I doubt he's running in realtime mode. The program should lock up and the get terminated by the OS in that kind of case. Unless there's some mad voodoo happening, which is always a possibility.

What you could do is to use sleep to adjust movement speed instead of your current system. (I'm not a hundred percent positive on this solution thought)

It's better to capture a timestamp for each logical frame and pass that into the logic/simulation. Google 'variable timestep' for more info.

#1Khatharr

Posted 05 January 2013 - 09:06 PM

Check to make sure you're waiting for vsync when you render. It seems odd that you'd be getting lag from that though...<br /><br />What's going on in your loop there? What do move() and draw() actually do? (Please use code tags.)

PARTNERS