Topics / Building a game

Performance

Frame rate (FPS)

Frames per second is how many times a second the game draws a new picture. Sixty is smooth, thirty is acceptable, below twenty feels broken.

Watch: see it in 30 seconds

Video coming soon
A 30-second visual explanation

Why it matters for your game

  • It is the number players feel first. Asking your AI 'why is it choppy' is really asking what pushes the frame time over 16 milliseconds.
  • Browsers cap it at the monitor's refresh rate, so 60 is the normal ceiling; a game 'at 60' has headroom you cannot see until something is added.
  • Phones and laptops on battery lower it on purpose; a game should still play at 30.

How it comes up when you talk to your AI

  • 'FPS', 'frame time (ms)', 'vsync', 'the game drops frames', 'profiler' (the tool that shows what each frame spent its time on).
  • Ask for an FPS counter in the corner during development; every engine has one.

Ask your AI about it

Paste this into the assistant you build with. It is written to get a useful answer for your own project, not a textbook page.

Explain frame rate and frame time for a browser game, how to show an FPS counter, and how to read a profiler to find what makes a frame slow. Then list the usual causes in a 2D game with many characters.

Related terms