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?
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?