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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -