SFML community forums

Help => Window => Topic started by: kurozael on July 24, 2011, 01:46:19 pm

Title: Window.GetFrameTime is returning strange values
Post by: kurozael on July 24, 2011, 01:46:19 pm
I've recently upgraded SFML2 to the latest revision and now my simultation runs extremely fast and GetFrameTime returns "15" - "16" so when I calculate FPS by doing 1.0f / GetFrameTime() I'm getting "FPS" of 0.0666666667 so as you can tell something is seriously wrong.

I've still doing SetFramerateLimit(60.0f)

I have a project due in Tuesday at uni so I hope you can help!

Thanks!  :P
Title: Window.GetFrameTime is returning strange values
Post by: Nexus on July 24, 2011, 01:53:43 pm
SFML 2 now works with milliseconds instead of seconds. Sometimes it helps to look at the documentation ;)
Title: Window.GetFrameTime is returning strange values
Post by: kurozael on July 24, 2011, 01:57:06 pm
Sorry, this was an unexpected change! Thanks a lot man!
Title: Window.GetFrameTime is returning strange values
Post by: Nexus on July 24, 2011, 02:18:38 pm
There are also other changes that you might not expect, here (http://www.sfml-dev.org/forum/viewtopic.php?t=5343) is a list of them.