Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to find frame rate

How to find frame rate

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gmallax
    wrote on last edited by
    #1

    Hi, Im having the frame duration.Can we find frame rate by using this duration?

    I 1 Reply Last reply
    0
    • G gmallax

      Hi, Im having the frame duration.Can we find frame rate by using this duration?

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      rate = 1.0/duration. That's it, isn't it? Iain.

      I have now moved to Sweden for love (awwww).

      C 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        rate = 1.0/duration. That's it, isn't it? Iain.

        I have now moved to Sweden for love (awwww).

        C Offline
        C Offline
        Cool_Dev
        wrote on last edited by
        #3

        yep.. be care to use the same units of time. say if the frame duration is 100 milliseconds, then frame rate (per second) -> 1000 /100 = 10

        I 1 Reply Last reply
        0
        • C Cool_Dev

          yep.. be care to use the same units of time. say if the frame duration is 100 milliseconds, then frame rate (per second) -> 1000 /100 = 10

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          Well, my answer was accurate... 1/100ms = 1/(0.1s) = 10 (per/s) = 10Hz. But you're right, he will have to be careful about units! Iain.

          I have now moved to Sweden for love (awwww).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups