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
1519.5 Caches
9.5 Caches
Babylon.js contains many dierent caching systems. ese systems are intended to reduce
overhead implied by recreating or resetting something already done. rough our testing,
we identied several places where caching could be useful:
World matrices computation
WebGL states
Textures
Programs
Uniforms
9.5.1 World Matrices
World matrices are computed per mesh in order to get the current position/orientation/
scaling. ese matrices not only depend on the mesh itself but also on the hierarchy.
Before rendering a mesh, we have to compute this specic matrix. Instead of computing
it on every frame, we decided to cache ...
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