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
272.9 e Swap-Chain and Compositing Process
e most trivial method for guaranteeing frame completion is to call glFinish
when the canvas presents its buer to the compositor. However, this does not provide
great performance, as it forces the CPU to wait until the GPU is completely done with
the command stream. Instead, we merely need to establish a dependency relation on the
GPU side alone, where we don’t let the GPU read from the frontbuer until it is done
rendering it.
Such GPU-side synchronization is extremely platform dependent, especially when the
two sides may be in dierent processes. Many platforms have some variety of synchro-
nizat ...
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