canvas: no desynchronized canvas by default
This commit is contained in:
parent
493fbe1d28
commit
b9901ab8c5
1 changed files with 2 additions and 4 deletions
|
|
@ -12,10 +12,8 @@ class Canvas extends Widget {
|
|||
this.canvas = DOM.get(this.container, 'canvas')[0]
|
||||
|
||||
this.ctx = this.canvas.getContext('2d',{
|
||||
desynchronized: ELECTRON_NOGPU ? false : true,
|
||||
lowLatency: true,
|
||||
alpha: true,
|
||||
preserveDrawingBuffer: true // avoid flickering
|
||||
desynchronized: !ELECTRON_NOGPU && ENV.desyncCanvas ? true : false,
|
||||
alpha: true
|
||||
})
|
||||
|
||||
this.height = undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue