by Athas · 10y ago · 0 comments
[1]: http://futhark-lang.org/blog/2016-04-15-futhark-and-pyopencl...
I'd like to be able to write physics simulations that are visualized in 3d without having to copy the points in and out of futharks memory (killing the performance)
https://www.youtube.com/watch?v=lnOmy1ly6M0&list=PLCN-Ml6vUJ...
All simulation and rendering is done in Futhark, with Python+Pygame for gluing things together. All the particle information stays on the GPU at all times. The only thing being copied back to the CPU is the rendered bitmap, which is then immediately moved back with a Pygame blit operation...