WilliamKHo / Pollux-Renderer

2 stars 3 forks source link

Stream Compaction Status #3

Open WilliamKHo opened 6 years ago

WilliamKHo commented 6 years ago

branch

Okay, I finally brought my stream-compaction code into Pollux.

Bad news: It slows down rendering and resultant images are noticeably incorrect:

streamcompactiondegub02

Good news: It can definitely be made to work and we would likely see really good wins

Info:

TL;DR Steps to make Stream Compaction fast enough and work correctly

WilliamKHo commented 6 years ago

@YoussefV see this update. I'm pretty sure I can get this working the way it's supposed to tomorrow, but I should sleep tonight. Feel free to look at the branch and make comments/criticisms.

WilliamKHo commented 6 years ago

It works but it's too slow. Need to pass a buffer containing information about rays culled at each iteration between shaders to leverage better and earlier thread termination, and so that kernScatterRays doesn't re-partition the entire array each and every time.

WilliamKHo commented 6 years ago
screen shot 2017-11-25 at 5 52 21 pm

No ugly visual bugs though so that's good