1000/*: Framerate Conversion for Optimal Perception

Curious about all the random 1000/60 snippets in the code you inherited? These are common translations from CPU and CPU millisecond time to human-friendly second time! As it turns out — it’s tough business showing the human eye content without causing issues!

Zack West
alpharithms

--

1000/60 Frame Rate Conversions for Programmers
Image: alpharithms

Framerate is the measure of many unique images are shown to a viewer during a given period of time. Frames-per-second (FPS) is the common measurement among video games, movies, and animations. Many programming languages measure time intervals in milliseconds such that a 60fps framerate is often denoted as 1000/60.

Code that involves the measurement of time often denotes intervals as fractions of 1000 milliseconds — which equates to a single second. Milliseconds are convenient for computer time since processors are so fast — performance is measured in how many thousands of operations can be achieved per second.

1000/* Translates to Human Time

Dividing 1000 milliseconds into various intervals is how developers translate CPU time frames into human-friendly time frames. For example, 0.06 FPMS doesn’t sound like a very performant gaming…

--

--

Zack West
alpharithms

Entrepreneur, programmer, designer, and lifelong learner. Can be found taking notes from Mother Nature when not hammering away at the keyboard.