
xix
Tips
WebGL Report (http://webglreport.com/) is a great way to get WebGL implementation
details for the current browser, especially when debugging browser- or device-specic
problems.
For performance, avoid object allocation in the render loop. Reuse objects and arrays
where possible, and avoid built-in array methods such as map and filter. Each new
object creates more work for the Garbage Collector, and in some cases, GC pauses can
freeze an application for multiple frames every few seconds.
Save memory and improve performance by ensuring that contexts are created with the
alpha, depth, stencil, antialias, and preserveDrawingBuffer options ...