SFML community forums
Help => Graphics => Topic started 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?
-
How do you calculate / display the framerate ?
-
Only:
cout << 1.0 / Main.GetFrameTime() << "fps" << endl;
-
Can you show us a simple and complete source code that demonstrates this behaviour ?
-
No, it is in all of my SFML programs/texts and I sometimes get these framerates and sometimes not.
-
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... :?
-
Ok, I'll do some tests. Thanks for the feedback.
-
Hey Laurent!
Any results or questions?
-
I'm on holidays, I'll be able to test it only next week ;)
-
Okay, thank you for your great work!