fix canvas issue when gpu is disabled
This commit is contained in:
parent
6061995605
commit
97ab1a7b15
4 changed files with 10 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ class Canvas extends Widget {
|
|||
this.canvas = DOM.get(this.container, 'canvas')[0]
|
||||
|
||||
this.ctx = this.canvas.getContext('2d',{
|
||||
desynchronized: true,
|
||||
desynchronized: ELECTRON_NOGPU ? false : true,
|
||||
lowLatency: true,
|
||||
alpha: true,
|
||||
preserveDrawingBuffer: true // avoid flickering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue