Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Framerate > 1000
Print
Pages: [
1
]
Author
Topic: Framerate > 1000 (Read 6269 times)
0 Members and 1 Guest are viewing this topic.
Kernelpanic
Jr. Member
Posts: 50
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Framerate > 1000
«
Reply #1 on:
June 03, 2008, 06:06:44 pm »
How do you calculate / display the framerate ?
Logged
Laurent Gomila - SFML developer
Kernelpanic
Jr. Member
Posts: 50
Framerate > 1000
«
Reply #2 on:
June 03, 2008, 06:34:39 pm »
Only:
Code:
[Select]
cout << 1.0 / Main.GetFrameTime() << "fps" << endl;
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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 ?
Logged
Laurent Gomila - SFML developer
Kernelpanic
Jr. Member
Posts: 50
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.
Logged
Avency
Full Member
Posts: 113
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... :?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Framerate > 1000
«
Reply #6 on:
June 03, 2008, 07:13:01 pm »
Ok, I'll do some tests. Thanks for the feedback.
Logged
Laurent Gomila - SFML developer
Kernelpanic
Jr. Member
Posts: 50
Framerate > 1000
«
Reply #7 on:
June 04, 2008, 09:32:43 pm »
Hey Laurent!
Any results or questions?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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
Logged
Laurent Gomila - SFML developer
Kernelpanic
Jr. Member
Posts: 50
Framerate > 1000
«
Reply #9 on:
June 05, 2008, 04:11:26 pm »
Okay, thank you for your great work!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Framerate > 1000
anything