Skip to content

Commit

Permalink
Merge pull request #5524 from fkaelberer/increaseSMaskChunkSizeTo1M
Browse files Browse the repository at this point in the history
Increases chunk size in SMask composition to 1M pixels
  • Loading branch information
yurydelendik committed Dec 5, 2014
2 parents cddb870 + 7d698a4 commit a3df129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
}

// processing image in chunks to save memory
var PIXELS_TO_PROCESS = 65536;
var PIXELS_TO_PROCESS = 1048576;
var chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width));
for (var row = 0; row < height; row += chunkSize) {
var chunkHeight = Math.min(chunkSize, height - row);
Expand Down

0 comments on commit a3df129

Please sign in to comment.