dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 5 forks source link

debug vs release build #57

Closed kzjy closed 4 years ago

kzjy commented 4 years ago

When I run ./ray, the debug build performs as expected and the hit result is the same as brute force except faster. But when I try to run it on the release build, every single hit is different from the brute force. What are some possible places for the compiler to optimize out? And will we be graded on the debug or release build?

kzjy commented 4 years ago

Nevermind, it was a problem with uninitialized variable.