Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Consistent Frame Rate Across Screens

Published 2 years ago

Some of you may have noticed that your game runs a lot faster on your computer than it does on mine. This is due to requestAnimationFrame being dependent on your monitor's refresh rate.

Most monitors run at 60hz, but newer ones like MacBook pros run at 120hz instead. This effectively doubles the speed at which your game runs, so we need to take this into account when releasing our game for others to play.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login

No comments yet, be the first to add one

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.