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:

screenshot of stats.js plugin

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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -