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
223
14
Budgeting Frame Time
Philip Rideout
14.1 Introduction
In this chapter, we cover some common techniques for optimizing WebGL graphics
engines. At a high level, these techniques all focus on one of two questions: when and how
long. When is the best time to make WebGL calls? How long is the budget for a sequence
of WebGL-related tasks?
First, we’ll discuss when it’s appropriate to make GL calls. Calling any GL function
outside the requestAnimationFrame entry point can hurt performance. Even if we
make an innocent-looking call to uniform1f while onload is at the top of the stack,
we’ve violated this requirement. We’ll discuss a design technique ...
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