
36. Browser Graphics Analysis and Optimizations 523
30
25
20
Frame time (ms)
15
10
5
0
Blur 1024×1024 Blur 256×256
Blur
Everything else
Figure 36.9. Performance impact of lowering resolution of blur render target (frame time in
this graph refers to GPU frame time as reported by Intel GPA Frame Analyzer).
calls caused by gl.generateMipmap, as discussed above. After lowering the reso-
lution to one quarter of the original resolution, we notice that the two blur passes
are now only approximately 11% of rendering. That is a significant performance
improvement, as shown in Figure 36.9, with an easy code change.
Looking at Figure 36.10, it’s hard to tell the differ ...