]> git.parisson.com Git - pdf.js.git/commitdiff
Change the kExecutionTime value to 15. In theory, this should give 60FPS rendering.
authorJulian Viereck <julian.viereck@gmail.com>
Fri, 16 Mar 2012 14:08:50 +0000 (15:08 +0100)
committerJulian Viereck <julian.viereck@gmail.com>
Fri, 16 Mar 2012 14:08:50 +0000 (15:08 +0100)
src/canvas.js

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