Cache-Oblivious Ray Reordering

被引:30
|
作者
Moon, Bochang [1 ]
Byun, Yongyoung [1 ]
Kim, Tae-Joon [1 ]
Claudio, Pio [1 ]
Kim, Hye-Sun [2 ]
Ban, Yun-Ji [2 ]
Nam, Seung Woo [2 ]
Yoon, Sung-Eui [1 ]
机构
[1] Korea Adv Inst Sci & Technol, Taejon 305701, South Korea
[2] ETRI, Taejon 305700, South Korea
来源
ACM TRANSACTIONS ON GRAPHICS | 2010年 / 29卷 / 03期
关键词
Performance; Algorithms; Ray coherence; reordering; cache utilization; ray tracing; LAYOUTS;
D O I
10.1145/1805964.1805972
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a cache-oblivious ray reordering method for ray tracing. Many global illumination methods such as path tracing and photon mapping use ray tracing and generate lots of rays to simulate various realistic visual effects. However, these rays tend to be very incoherent and show lower cache utilizations during ray tracing of models. In order to address this problem and improve the ray coherence, we propose a novel Hit Point Heuristic (HPH) to compute a coherent ordering of rays. The HPH uses the hit points between rays and the scene as a ray reordering measure. We reorder rays by using a space-filling curve based on their hit points. Since a hit point of a ray is available only after performing the ray intersection test with the scene, we compute an approximate hit point for the ray by performing an intersection test between the ray and simplified representations of the original models. Our method is a highly modular approach, since our reordering method is decoupled from other components of common ray tracing systems. We apply our method to photon mapping and path tracing and achieve more than an order of magnitude performance improvement for massive models that cannot fit into main memory, compared to rendering without reordering rays. Also, our method shows a performance improvement even for ray tracing small models that can fit into main memory. This performance improvement for small and massive models is caused by reducing cache misses occurring between different memory levels including the L1/L2 caches, main memory, and disk. This result demonstrates the cache-oblivious nature of our method, which works for various kinds of cache parameters. Because of the cache-obliviousness and the high modularity, our method can be widely applied to many existing ray tracing systems and show performance improvements with various models and machines that have different cache parameters.
引用
收藏
页数:10
相关论文
共 50 条
  • [1] Cache-Oblivious Hashing
    Rasmus Pagh
    Zhewei Wei
    Ke Yi
    Qin Zhang
    Algorithmica, 2014, 69 : 864 - 883
  • [2] Cache-Oblivious Hashing
    Pagh, Rasmus
    Wei, Zhewei
    Yi, Ke
    Zhang, Qin
    PODS 2010: PROCEEDINGS OF THE TWENTY-NINTH ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2010, : 297 - 304
  • [3] Cache-Oblivious Persistence
    Davoodi, Pooya
    Fineman, Jeremy T.
    Iacono, John
    Oezkan, Oezguer
    ALGORITHMS - ESA 2014, 2014, 8737 : 296 - 308
  • [4] Cache-oblivious algorithms
    Leiserson, CE
    ALGORITHMS AND COMPLEXITY, PROCEEDINGS, 2003, 2653 : 5 - 5
  • [5] Cache-Oblivious Algorithms
    Frigo, Matteo
    Leiserson, Charles E.
    Prokop, Harald
    Ramachandran, Sridhar
    ACM TRANSACTIONS ON ALGORITHMS, 2012, 8 (01)
  • [6] Cache-Oblivious Hashing
    Pagh, Rasmus
    Wei, Zhewei
    Yi, Ke
    Zhang, Qin
    ALGORITHMICA, 2014, 69 (04) : 864 - 883
  • [7] The Cost of Cache-Oblivious Searching
    Michael A. Bender
    Gerth Stølting Brodal
    Rolf Fagerberg
    Dongdong Ge
    Simai He
    Haodong Hu
    John Iacono
    Alejandro López-Ortiz
    Algorithmica, 2011, 61 : 463 - 505
  • [8] Is cache-oblivious DGEMM viable?
    Gunnels, John A.
    Gustavson, Fred G.
    Pingali, Keshav
    Yotov, Kamen
    APPLIED PARALLEL COMPUTING: STATE OF THE ART IN SCIENTIFIC COMPUTING, 2007, 4699 : 919 - +
  • [9] Cache-Oblivious String Dictionaries
    Brodal, Gerth Stolting
    Fagerberg, Rolf
    PROCEEDINGS OF THE SEVENTHEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2006, : 581 - +
  • [10] The cost of cache-oblivious searching
    Bender, MA
    Brodal, GS
    Fagerberg, R
    Ge, DD
    He, SM
    Hu, HD
    Iacono, J
    López-Ortiz, A
    44TH ANNUAL IEEE SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 2003, : 271 - 282