I've put together a demo of one of the existing WebGL demos (the nvidia vertex buffer object) running with web workers and transferrable typed arrays. This highlights the performance benefits of both using web workers to offload computation from the main JS thread and using transferrable typed arrays to transfer, rather than copy, typed arrays.
Transferrable typed arrays are implemented in the latest Chrome builds behind the webkit vendor prefix for postMessage (webkitPostMessage). The demo tries to fall back gracefully to using standard postMessage without transferrables if a version with transferrables is not available.
Because I adapted the existing demo, and that demo itself has been adapted a few times over the years, the code style is a little mixed. I'm happy to unify it if necessary.
An `svn diff` patch to the demo repository is attached. Comments welcome.
Created attachment 89 [details]
WebGL demo with web workers and transferrable typed arrays
For code review, uploaded a changelist to http://codereview.appspot.com/5504121/ (as per discussion with kbr).