uebquite / webcl-demos

Web Demos for WebKit-WebCL
3 stars 4 forks source link

Improve the way that globalWorkSize and localWorkSize are being initialised in some demos #92

Closed acosta closed 11 years ago

acosta commented 11 years ago

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.

acosta commented 11 years ago

@m2marcelo, could you do that?

m2marcelo commented 11 years ago

Sure, I'm on it.

m2marcelo commented 11 years ago

r https://github.com/uebquite/webcl-demos/commit/5a86a808f3e42520c880fa473d0788be7fecde1d ?

m2marcelo commented 11 years ago

Done with https://github.com/uebquite/webcl-demos/commit/bafc741807378cd7fcd1be76233da7c966b8e613

acosta commented 11 years ago

Done. Commit: https://github.com/uebquite/webcl-demos/commit/45181db123054e137f870399e2c270f2e9e99d41