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

Author Topic: SetFramerateLimit results in choppy "gameplay"!  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

Haikarainen

  • Guest
SetFramerateLimit results in choppy "gameplay"!
« on: July 12, 2011, 03:23:13 am »
Whenever i set a frameratelimit in my project I get really choppy gameplay. It's really like everything is lagging even tho my fps counter is att 59-60 at all times.. If i comment out the setfrlimit, my fps counter flickers between 1000 and inifinite, and everything goes REALLY smooth.

Why is this? I really wanna set a frameratelimit so users doesnt have to overexhaust their gpu's for no reason, but still be able to a chieve a smoooth gameplay.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SetFramerateLimit results in choppy "gameplay"!
« Reply #1 on: July 12, 2011, 07:38:32 am »
Have you tried to use vertical sync instead?
Laurent Gomila - SFML developer

Haikarainen

  • Guest
SetFramerateLimit results in choppy "gameplay"!
« Reply #2 on: July 12, 2011, 08:07:34 am »
Quote from: "Laurent"
Have you tried to use vertical sync instead?


Yes, this makes the result a bit better but not as if it was disabled.

Haikarainen

  • Guest
SetFramerateLimit results in choppy "gameplay"!
« Reply #3 on: July 16, 2011, 02:10:29 pm »
If it says anything i use GetFrameTime() as a multiplier for movements, so that everything moves exactly as fast independent of specs.

I still have this off for smooth gameplay, and it would be nice to find a solution to this.

 

anything