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

Author Topic: Framerate > 1000  (Read 6276 times)

0 Members and 4 Guests are viewing this topic.

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Framerate > 1000
« on: June 03, 2008, 06:03:27 pm »
I often get displayed framerates > 1000 and sometimes > 6000, although I have called setFramerateLimit(40).
And it is not fast, it is really slow when the (displayed) framerate is higher than 1000.
What is the problem?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Framerate > 1000
« Reply #1 on: June 03, 2008, 06:06:44 pm »
How do you calculate / display the framerate ?
Laurent Gomila - SFML developer

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Framerate > 1000
« Reply #2 on: June 03, 2008, 06:34:39 pm »
Only:
Code: [Select]

cout << 1.0 / Main.GetFrameTime() << "fps" << endl;

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Framerate > 1000
« Reply #3 on: June 03, 2008, 06:37:53 pm »
Can you show us a simple and complete source code that demonstrates this behaviour ?
Laurent Gomila - SFML developer

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Framerate > 1000
« Reply #4 on: June 03, 2008, 06:39:52 pm »
No, it is in all of my SFML programs/texts and I sometimes get these framerates and sometimes not.

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Framerate > 1000
« Reply #5 on: June 03, 2008, 07:11:06 pm »
Same here.
It runs slower than normal but still not at the desired framerate.
And the same code was working before (with vsync enabled it still displays 75 fps).
The fps also seem to increase over time (when setting low rates such as 25 fps: fps <= 100 --> fps >= 4500).
It's likely that it has something to do with the new frame-limiting code, but I can't figure out what it is... :?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Framerate > 1000
« Reply #6 on: June 03, 2008, 07:13:01 pm »
Ok, I'll do some tests. Thanks for the feedback.
Laurent Gomila - SFML developer

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Framerate > 1000
« Reply #7 on: June 04, 2008, 09:32:43 pm »
Hey Laurent!
Any results or questions?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Framerate > 1000
« Reply #8 on: June 05, 2008, 11:11:15 am »
I'm on holidays, I'll be able to test it only next week ;)
Laurent Gomila - SFML developer

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Framerate > 1000
« Reply #9 on: June 05, 2008, 04:11:26 pm »
Okay, thank you for your great work!

 

anything