Intersection Prediction for Accelerated GPU Ray Tracing
Lufei Liu, Wesley Chang, Francois Demoullin et al. · 2021
Ray tracing has been used for years in motion picture to generate photorealistic images while faster raster-based shading techniques have been preferred for video games to meet real-time requirements. However, recent Graphics Processing Units (GPUs) incorporate hardware accelerator units designed for ray tracing. These accelerator units target the process of traversing hierarchical tree data structures used to test for ray-object intersections. Distinct rays following similar paths through these structures execute many redundant ray-box intersection tests. We propose a ray intersection predictor that speculatively elides redundant operations during this process and proceeds directly to test primitives that the ray is likely to intersect. A key aspect of our predictor strategy involves identifying hash functions that preserve enough spatial information to identify redundant traversals. We explore how to integrate our ray prediction strategy into existing GPU pipelines along with improving the predictor effectiveness by predicting nodes higher in the tree as well as regrouping and scheduling traversal operations in a low cost, judicious manner. On a mobile class GPU with a ray tracing accelerator unit, we find the addition of a 5.5KB predictor per streaming multiprocessor improves performance for ambient occlusion workloads by a geometric mean of 26%.
Cited by 24 works. doi:10.1145/3466752.3480097
Authors
References
- EIE: Efficient Inference Engine on Compressed Deep Neural Network
- The LRU-K page replacement algorithm for database disk buffering
- Dynamic Warp Formation and Scheduling for Efficient GPU Control Flow
- Understanding sources of inefficiency in general-purpose chips
- Microarchitectural Design Space Exploration Using an Architecture-Centric Approach
- Speculative lock elision: enabling highly concurrent multithreaded execution
- Understanding the efficiency of ray traversal on GPUs
- RPU
- Rendering complex scenes with memory-coherent ray tracing
- GPUWattch