
In this example, a point set is used to render the N-Body simulation. The vertex buffer containing the points has not been shared with OpenCL. Even though the body positions have to be copied from the OpenCL buffer to the OpenGL vertex buffer each frame, this particular example consisting of 16,384 bodies still runs at approximately 26 fps on a GeForce 8800GT. This demo also includes an interface to experiment with different initial conditions, time scales and damping forces. |