
OpenCL particles test
1 month ago
a test using opencl and openframeworks.
5000 particles interact with each other and mouse cursor.
this runs easily at 30fps but snapz killed the framerate a little :)
this is running only on cpu and letting opencl do its thing. Its a lot faster than simply running it with "normal" code, but it definitely could run much faster on gpu.
source for this can be downloaded here: code.google.com/p/ruisource/
it includes a slightly modified version of the ofxOpenCL addon by Memo Akten.
:)
5000 particles interact with each other and mouse cursor.
this runs easily at 30fps but snapz killed the framerate a little :)
this is running only on cpu and letting opencl do its thing. Its a lot faster than simply running it with "normal" code, but it definitely could run much faster on gpu.
source for this can be downloaded here: code.google.com/p/ruisource/
it includes a slightly modified version of the ofxOpenCL addon by Memo Akten.
:)
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
I'm intrigued to know why the OpenCL code is running on the CPU, rather than the GPU. I'd have thought there wouldn't be any advantage to running the OpenCL kernel on the CPU, over something written in straight-up C or C++. It's impressively fast as it is though.
Great stuff,
a|x
im running it on cpu because my graphics card doesnt support opencl :)
but its still faster than running in plain c++. Opencl will multithread things and run it a lot faster.
It reminds me of Keiko Kimoto's works.
kimoto-k.com/imaginary_numbers/movie.html