
594.3 Performance
Math operations, of the kind described previously, are unavoidable in WebGL applica-
tions. Early on in Cesium’s development it was not uncommon to prole a particular use
case only to discover that 50% of the time was being spent in garbage collection. Avisual
representation of this issue appears as a deep sawtooth pattern in browser proling tools,
as shown in Figure4.2. e peaks are when the garbage collector kicks in, freeing mem-
ory but stealing valuable processing time from our own code. is kind of unwanted
memorychurn is usually created by algorithms that compute intermediate values that are
quickly thrown away. Fo ...