256^3 rendering at 15FPS WITHOUT THE TRAVERSAL ALGORITHM! This thing's gonna FLY!
This commit is contained in:
@@ -706,7 +706,11 @@ bool CLCaster::compile_kernel(std::string kernel_source, bool is_path, std::stri
|
||||
|
||||
// Try and build the program
|
||||
// "-cl-finite-math-only -cl-fast-relaxed-math -cl-unsafe-math-optimizations"
|
||||
error = clBuildProgram(program, 1, &device_id, "-cl-finite-math-only -cl-fast-relaxed-math -cl-unsafe-math-optimizations", NULL, NULL);
|
||||
|
||||
// need a ref to the oct dimensions
|
||||
//std::string oct_dimensions = std::to_string(map->getDimensions().x);
|
||||
std::string build_string = "-DOCTDIM=256 -cl-finite-math-only -cl-fast-relaxed-math -cl-unsafe-math-optimizations";
|
||||
error = clBuildProgram(program, 1, &device_id, build_string.c_str(), NULL, NULL);
|
||||
|
||||
// Check to see if it error'd out
|
||||
if (cl_assert(error)) {
|
||||
|
||||
Reference in New Issue
Block a user