SFML community forums

Help => Graphics => Topic started by: Kernelpanic on June 03, 2008, 06:03:27 pm

Title: Framerate > 1000
Post by: Kernelpanic 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?
Title: Framerate > 1000
Post by: Laurent on June 03, 2008, 06:06:44 pm
How do you calculate / display the framerate ?
Title: Framerate > 1000
Post by: Kernelpanic on June 03, 2008, 06:34:39 pm
Only:
Code: [Select]

cout << 1.0 / Main.GetFrameTime() << "fps" << endl;
Title: Framerate > 1000
Post by: Laurent on June 03, 2008, 06:37:53 pm
Can you show us a simple and complete source code that demonstrates this behaviour ?
Title: Framerate > 1000
Post by: Kernelpanic 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.
Title: Framerate > 1000
Post by: Avency 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... :?
Title: Framerate > 1000
Post by: Laurent on June 03, 2008, 07:13:01 pm
Ok, I'll do some tests. Thanks for the feedback.
Title: Framerate > 1000
Post by: Kernelpanic on June 04, 2008, 09:32:43 pm
Hey Laurent!
Any results or questions?
Title: Framerate > 1000
Post by: Laurent on June 05, 2008, 11:11:15 am
I'm on holidays, I'll be able to test it only next week ;)
Title: Framerate > 1000
Post by: Kernelpanic on June 05, 2008, 04:11:26 pm
Okay, thank you for your great work!