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

Author Topic: [SOLVED]: Difference between vsync and framerate limit?  (Read 4744 times)

0 Members and 1 Guest are viewing this topic.

thecheeselover

  • Newbie
  • *
  • Posts: 24
    • View Profile
[SOLVED]: Difference between vsync and framerate limit?
« on: May 25, 2013, 05:59:02 pm »
Hello,

I'm using sfml 1.6 and I have a quick question: what is the difference between App.SetFramerateLimit(...) and App.UseVerticalSync(true)?

Thank you :)
« Last Edit: May 28, 2013, 01:48:01 am by thecheeselover »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Difference between vsync and framerate limit?
« Reply #1 on: May 25, 2013, 06:39:10 pm »
Use SFML 2, there is really no reason to go with SFML 1.6 now -- it has been unmaintained for years and contains much more bugs.

There is a documentation on the SFML homepage that should answer you this kind of questions ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

thecheeselover

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Difference between vsync and framerate limit?
« Reply #2 on: May 25, 2013, 09:53:35 pm »
I'll switch to sfml 2.0 but not now because I have a lot of things to test. I found the question in the FAQ but it's actually unanswered.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Difference between vsync and framerate limit?
« Reply #3 on: May 25, 2013, 10:09:24 pm »
I meant the API documentation, not the FAQ. There, you can search for the class you need (sf::RenderWindow) and read the description of its functions.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

thecheeselover

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Difference between vsync and framerate limit?
« Reply #4 on: May 25, 2013, 10:31:40 pm »
Ok, I've checked the document as you said but I still can't understand the difference. ^^ I also have tried both and noticed that SetFramerateLimit ignores if UseVerticalSync is called with true as parameter.

Here's the documentation:

SetFramerateLimit(...)
Limit the framerate to a maximum fixed frequency.

UseVerticalSync(...)
Enable / disable vertical synchronization.

Thank you!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Difference between vsync and framerate limit?
« Reply #5 on: May 26, 2013, 10:27:36 am »
Have you read the tutorial?
Laurent Gomila - SFML developer

thecheeselover

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Difference between vsync and framerate limit?
« Reply #6 on: May 28, 2013, 01:47:46 am »
Ohhhh thank you! :)