GPU Gems 2: Programming Techniques for High-Performance Graphics and General-Purpose Computation
by Matt Pharr, Randima Fernando
Chapter 28. Mipmap-Level Measurement
Iain CantlayClimax Entertainment
In the original GPU Gems, Cem Cebenoyan asks the question, “Do your users ever get to see your highest mip level?” (Cebenoyan 2004). If the answer is no, performance can be enhanced and memory can be saved by swapping those unused mipmap levels out of video memory.
One approach to answering this question is to substitute a “false-colored” mipmap and then render the scene. Such a mipmap is one in which each mip level has a different, contrasting color. Figure 28-1a shows a view of some textured terrain; Figure 28-1b shows the same view substituting a false-colored mipmap. Although the viewpoint is that of a character standing on the terrain, it is easy to see that the highest-detail ...
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.
Read now
Unlock full access