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

Author Topic: GetFrameTime returns time for current or previous frame?  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
GetFrameTime returns time for current or previous frame?
« on: November 21, 2010, 07:42:30 am »
The documentation is slightly confusing. It says:
Get the time elapsed since the last frame.

This function returns the time elapsed during the last frame. This can be useful for calculating the framerate, or for updating the application's objects.

It has two conflicting meanings: elapsed time so far in current frame, and elapsed time in previous frame.

Which of the two does it mean?
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
GetFrameTime returns time for current or previous frame?
« Reply #1 on: November 21, 2010, 10:28:51 am »
It is the elapsed time in previous frame.

I've updated the doc, thank you.
Laurent Gomila - SFML developer

 

anything