Those variables are being set in 'draw' function, which has a high cost. Move this initialisation to a function which is called once (e.g.: the function that initialise the other WebCL variables could be a better choice).
This behaviour must be fixed in the following demos: FluidDynamics, Ising, Mandelbrot, PathIntegrals and XY.
Those variables are being set in 'draw' function, which has a high cost. Move this initialisation to a function which is called once (e.g.: the function that initialise the other WebCL variables could be a better choice).
This behaviour must be fixed in the following demos: FluidDynamics, Ising, Mandelbrot, PathIntegrals and XY.