javascript - frame rate: relationship between FPS and MS (milliseconds needed to render a frame) in stats plugin -
i'm using stats.js plugin monitor three.js performance.
the fps (frames rendered in last second) , ms (milliseconds needed render frame) information not seem fit together:
per calculation, if need 4 ms render frame, should able render 1000 ms / 4 ms = 250 frames per second, far more requestanimationframe provides, lot higher reported 17 fps stats plugin.
what missing?
you need newer version of stats.js.
you have screen refresh rate of 60hz (or possibly 59hz). translates average of 16.67 ms/frame (or 16.95 ms/frame 59 hz).
the version of script using incorrectly showing time each frame fps instead of number of frames per second.
Comments
Post a Comment