顯示具有 Progress 標籤的文章。 顯示所有文章
顯示具有 Progress 標籤的文章。 顯示所有文章

2010年7月1日 星期四

[Progress]BVH with SSE

Finally I finish my BVH with SSE implementation, but the outcome for a simple model (66454 triangles) doesn't seem like helpful.

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