Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
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-specic
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079