Skip to content

Commit

Permalink
fix: remove lowLatency
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 1, 2020
1 parent e512a37 commit 4b05971
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/canvas-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ module.exports = class CanvasLayer {
this.canvas = document.createElement('canvas')

const desynchronized = process.platform !== "linux"
const lowLatency = desynchronized

/**
* The onscreen canvas context.
* @type {CanvasRenderingContext2D}
*/
this.context = this.canvas.getContext('2d', { desynchronized: desynchronized, lowLatency: lowLatency })
this.context = this.canvas.getContext('2d', { desynchronized })
this.canvas.webkitImageSmoothingEnabled = false
this.context.imageSmoothingEnabled = false

Expand All @@ -33,7 +32,7 @@ module.exports = class CanvasLayer {
* @type {CanvasRenderingContext2D}
* @access private
*/
this.offscreenContext = this.offscreenCanvas.getContext('2d', { desynchronized: desynchronized, lowLatency: lowLatency })
this.offscreenContext = this.offscreenCanvas.getContext('2d', { desynchronized })
this.offscreenCanvas.webkitImageSmoothingEnabled = false
this.offscreenContext.imageSmoothingEnabled = false
}
Expand Down

1 comment on commit 4b05971

@aminya
Copy link
Collaborator Author

@aminya aminya commented on 4b05971 Dec 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #731

Please sign in to comment.