High-Performance JavaScript

Florian d’Erfurth, Freelance Game Developer

For a game to be enjoyable, smoothness is critical. A smooth game can feel lifelike and amazing; without smoothness, a game will be sluggish and annoying, even with the best art.

Smoothness is also important for user retention. Facebook recently revealed the results of an A/B test in which scrolling was slowed from 60FPS to 30FPS ( engagement collapsed.

In this chapter, I will discuss the essential techniques for making a simple, two-dimensional HTML5 game feel and perform like a native one.

The first two techniques are the low-hanging ...

Get HTML5 Game Development Insights now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.