Here is the outcome:
Without SSE
==BVH Info==
1-element leaf: 1838
2-element leaf: 18209
3-element leaf: 2876
4-element leaf: 2811
Total: 27047 bounding boxes
Building time: 2.453573 sec
==Rendering Info==
Rendering time: 1.565233 sec
Ray-Box intersection: 19658128
Ray-Triangle intersection: 1393575
With SSE
==BVH Info==
1-element leaf: 0
2-element leaf: 1
3-element leaf: 0
4-element leaf: 16613
Total: 16614 bounding boxes
Building time: 2.569810 sec
==Rendering Info==
Rendering time: 1.429016 sec
Ray-Box intersection: 19821888
Ray-Triangle intersection: 673405
Two weeks for 0.1 sec improvement. Cool!!
BVH(dark blue lines) for Sponza model
Rendered Image
沒有留言:
張貼留言