harness the GPU!
BlitzMax Forums/BlitzMax Programming/harness the GPU!
| ||
hi I have seen many programs online that claim to also use the GPU with the CPU for an amazing speed boost so has anyone ever done this in blitz max? is it even possible? |
| ||
You can probably do it if you have a wrapper for Cuda or OpenCL (when Snow Leopard is released), but it's iffy and you'd probably be wasting your time. |
| ||
I don't know why you'd say it's iffy? Lots of science people do GPGPU stuff. |
| ||
@IH - I think he's saying there's a chance I won't have any use for it but im pretty sure I will... so is Cuda for windows? and OpenCL for mac? ok ill do my research thanks |
| ||
what about instancing of geometry for opengl e.g. speedtree |
| ||
Here you are : http://www.mathematik.uni-dortmund.de/~goeddeke/gpgpu/tutorial.html :-) |
| ||
In the most recent version of my engine's editor, I calculated terrain editing on the GPU. When using a large tool radius that affects maybe 100,000 terrain points, it went from being unusably slow to being instantaneous. There are very few applications for this kind of hardware, but when you have one it makes it super fast. |
| ||
thanks brucey. ill look into that. :) |
| ||
cant u just use images as input for a shader giving you back the result as an image? of course this really hasnt the capacities of a cuda app, but nevertheless its a huge speedup in perf when processing really large sequences of data .. in my very own project i make frequent use of this.. will post some code in 2-3 month.. if anyone is interested in it. |