Browse Source

Change the kExecutionTime value to 15. In theory, this should give 60FPS rendering.

Julian Viereck 13 years ago
parent
commit
25cfebfd71
  1. 2
      src/canvas.js

2
src/canvas.js

@ -190,7 +190,7 @@ function addContextCurrentTransform(ctx) {
var CanvasGraphics = (function CanvasGraphicsClosure() { var CanvasGraphics = (function CanvasGraphicsClosure() {
// Defines the time the executeIRQueue is going to be executing // Defines the time the executeIRQueue is going to be executing
// before it stops and shedules a continue of execution. // before it stops and shedules a continue of execution.
var kExecutionTime = 50; var kExecutionTime = 15;
function CanvasGraphics(canvasCtx, objs, textLayer) { function CanvasGraphics(canvasCtx, objs, textLayer) {
this.ctx = canvasCtx; this.ctx = canvasCtx;

Loading…
Cancel
Save