GPU performance analysis

Rendering elements in a web application is sometimes accelerated by the GPU. The GPU is specialized in the processing of graphics-related instructions and can, therefore, deliver a much better performance than the CPU when it comes to graphics. For example, CSS3 animations in modern web browsers are accelerated by the GPU, while the CPU performs JavaScript animations. In the past, the only way to achieve some animations was via JavaScript. But today, we should avoid its usage when possible and use CSS3 instead.

In recent years, direct access to the GPU from a web browser has become possible thanks to the WebGL API. This API allows web developers to create 3D games and other highly visual 3D applications powered by ...

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.