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
64 4. Getting Serious with JavaScript
e end result was pleasantly surprising. e manually packed version is tremendously
faster than relying on default cloning, taking an average of only 60 to 600 milliseconds
to complete. While it has to be manually maintained, this technique allows us to pack
all objects and their properties, including strings, into a single typed array for ecient
transfer.
4.3.4 Making Optimal Use of Multiple Cores
A common technique in multithreaded programming is to use as many threads as cores
available to achieve maximum parallelism. If we use too many threads, performance
will suer due to excessive context switch
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