γ It delay fps plane: xy xt yt
GPU based Monte-Carlo simulation of the 4 Path Integrals for free particles (n = 1024). it is the number of MC iterations per frame. The thermostat algorithm and linear congruential random number generator are used. To simplify visualization paths are clamped to (0,1) interval. Really it is just closed random walks on torus.

This script uses synchronization events (in a cycle) something like this

   var evB = new WebCLEvent()
   cmdQueue.enqueueNDRangeKernel(kPath, 2, null, [4,n], [4,8], [evA], evB);
   evA = new WebCLEvent()
   cmdQueue.enqueueNDRangeKernel(kPath, 2, null, [4,n], [4,8], [evB], evA);
But is not faster than "slow" script with "cmdQueue.finish()" :(
WebCL Demos     updated 24 Sep 2014