Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualic0de

Posted 27 December 2012 - 11:43 PM

I wrote a terrain raycaster that runs entirely on the CPU but not nearly as fast as i want it to considering Comanche did it back in 1992. A large bottleneck in my code is the fact that bilinear filtering is done on the CPU. One reason I thought I should move my raycaster to OpenCL is because the algorithm is extremely parallelizable beyond the cabilities of multicore cpus. The renderer shoots off a ray for every column of pixels and then checks the hieght of every fragment it hits rendering heights as so. So I have two main questions:

1. Can I use OpenCL to access the dedicated filtering hardware?
2. Is it feasible to use OpenCL for my raycaster?

attached is a screenshot of my raycaster.

#1ic0de

Posted 27 December 2012 - 11:38 PM

I wrote a terrain raycaster that runs entirely on the CPU but not nearly as fast as i want it to considering Comanche did it back in 1992. A large bottleneck in my code is the fact that bilinear filtering is done on the CPU. One reason I thought I should move my raycaster to OpenCL is because the algorithm is extremely parallelizable beyond the cabilities of multicore cpus. The renderer shoots off a ray for every column of pixels and then checks the hieght of every fragment it hits rendering heights as so. So I have two main questions:

1. Can I use OpenCL to access the dedicated filtering hardware?
2. Is it feasible to use OpenCL for my raycaster?

PARTNERS