function Bitmap( width, height, $container ) {
  this._width = width;
  this._height = height;
  this._$canvas = document.createElement( 'canvas' );
  this._$canvas.width = width;
  this._$canvas.height = height;
  $container.appendChild( this._$canvas );
  this._ctx = this._$canvas.getContext('2d');
  this._imageInfo = this._ctx.createImageData( this._$canvas.width, this._$canvas.height );
}

Bitmap.prototype.clear = function() {
  var imgData = new ImageData(  new Uint8ClampedArray( this._width * this._height * 4 ),
                                this._width,
                                this._height );
  this._ctx.putImageData(imgData,0,0);
}

Bitmap.prototype.putPixel = function( val, x, y ){
  var col = new Uint8ClampedArray(4);
  col[0] = val[0];
  col[1] = val[1];
  col[2] = val[2];
  col[3] = val[3];
  var imgData = new ImageData(col,1,1);

  this._ctx.putImageData(imgData, x, y);
}

console.log("Loaded bitmap shim.");

@@ -391,80 +391,33 @@
  );%0A
-%7D%0A%0ABitmap.prototype.clear = function() %7B%0A  var imgData = new Image
+  this._frameBuffer
 Data
-(
  
+=
  new
@@ -472,102 +472,250 @@
  4 )
-,%0A                                this._width,%0A                                this._height );
+;%0A  this._frameBuffer = new ImageData(  this._frameBufferData, this._width, this._height );%0A  this._tempPixelData = new Uint8ClampedArray(4);%0A  this._tempPixel = new ImageData(this._tempPixelData,1,1);%0A%7D%0A%0ABitmap.prototype.clear = function() %7B
 %0A  t
@@ -736,23 +736,33 @@
 ageData(
-imgData
+this._frameBuffer
 ,0,0);%0A%7D
@@ -817,163 +817,150 @@
 y )%7B
-%0A
   
-var col = new Uint8ClampedArray(4);%0A  col%5B0%5D = val%5B0%5D;%0A  col%5B1%5D = val%5B1%5D;%0A  col%5B2%5D = val%5B2%5D;%0A  col%5B3%5D = val%5B3%5D;%0A  var imgData = new ImageData(col,1,1);%0A
+%0A  this._tempPixelData%5B0%5D = val%5B0%5D;%0A  this._tempPixelData%5B1%5D = val%5B1%5D;%0A  this._tempPixelData%5B2%5D = val%5B2%5D;%0A  this._tempPixelData%5B3%5D = val%5B3%5D;
 %0A  t
@@ -985,15 +985,23 @@
 ata(
-imgData
+this._tempPixel
 , x,

Remove extra allocations.