
157
10
Rendering Optimizations
in the Turbulenz Engine
David Galeano
10.1 Introduction
e Turbulenz Engine is a high-performance open source game engine available in
JavaScript and TypeScript for building high-quality 2D and 3D games.
In order to extract maximum performance from both JavaScript and WebGL, the
Turbulenz Engine needs to reduce waste to the minimum, for the benet of both the
CPU and the GPU. In this chapter, we focus on the rendering loop and the removal
of waste originating from redundant and/or useless state changes. In order for this
10.1 Introduction
10.2 Waste
10.3 Waste Avoidance
10.4 High-Level Filtering
10.5 Middle-Level Rend ...