POV-Ray : Newsgroups : povray.off-topic : Suggestion: OpenCL : Re: Suggestion: OpenCL Server Time
5 Sep 2024 17:11:54 EDT (-0400)
  Re: Suggestion: OpenCL  
From: scott
Date: 18 Aug 2009 03:04:26
Message: <4a8a527a@news.povray.org>
>> I was thinking more about how to store the scene on the GPU efficiently, 
>> if you just have a triangle list it is relatively simple.
>
> Again, depends on whether you're writing a shader, or using a GPGPU 
> system.

It still runs on the same hardware though, which is highly optimised for 
graphics operations, you need to be aware of this no matter how you shape 
your code.

> But they don't allow recursion.

Yes that was what I said earlier, for something like raytracing to unlimited 
depths I think the CPU needs to step in every so often to process the 
current set of rays (ie kill and spawn rays where appropriate).

Of course if you want to limit yourself to a fixed depth (ie a max trace 
level of 8 or whatever) then you can "unroll" the recursion so it works on 
the GPU.  Might not be as efficient as letting the CPU do it though.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.