Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: nevermind  (Read 1402 times)

0 Members and 1 Guest are viewing this topic.

Kendoon

  • Guest
nevermind
« on: December 26, 2014, 05:56:04 am »
nevermind
« Last Edit: December 29, 2014, 08:01:42 pm by Kendoon »

Mörkö

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Fixed Timestep & LERP (yes, I know, *yawn*)
« Reply #1 on: December 26, 2014, 07:33:04 pm »
Your code is very confusing. I don't understand what you're doing, and by the looks of it I'm pretty sure neither do you. Try covering your code with asserts and unit tests, I'll bet a lot of things do not match up with your assumptions.

Also it would have been better to provide a minimal compilable version of your program.

As for your problem, someone who is feeling belligerent may ask you "well if the problem is fixed by using vsync, why don't you just use vsync?" and I would be interested to see how you answer them.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Fixed Timestep & LERP (yes, I know, *yawn*)
« Reply #2 on: December 26, 2014, 07:52:12 pm »
I agree with Morko (Sorry I dont have that O on my keyboard). Your code and intentions are very unclear and confusing. sf::Window has the ability to limit frame rate and you are also not passing the proper frame time, instead you are storing it at the top of the loop and using that everywhere which might be giving you bad results.

 

anything