W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] Canvas pixel manipulation and performance

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 29 Nov 2009 00:00:03 -0500
Message-ID: <4B11FFD3.3030500@mit.edu>
On 11/28/09 11:42 PM, Kenneth Russell wrote:
> From a technical standpoint, it would be feasible to use the
> "WebGLUnsignedIntArray" to access the Canvas's pixel data, and
> assemble RGBA pixels into integer values using just JavaScript logical
> operators.

I assume you meant JS bitwise operators?  Do we have any indication that 
this would be faster than four array property sets?  The bitwise ops in 
JS are not necessarily particulary fast.

Received on Saturday, 28 November 2009 21:00:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC