soulwire/sketch.js — pull request #25 by isaksky (2013-02-24 02:18:13+00:00)
Title: Added max_pixels option

Rendering can get a little slow if you're running a game fullscreen on a high resolution display, so I added an option to set the max_pixels you are willing to render. When set, sketch limits how high it sets the canvas and drawing context width and height to numbers so that the total number of pixels does not exceed this number. The scaling is then handled with .style.height and .style.width instead, so that stuff can still be fullscreen.

It is off by default.