cli: add switch to toggle gui's vertical synchronization
This commit is contained in:
parent
5b2a237a35
commit
7fdfb18c28
3 changed files with 9 additions and 3 deletions
|
|
@ -26,6 +26,10 @@ var start = function(readyApp) {
|
|||
var app = require('./electron-app')
|
||||
var address = typeof settings.read('guiOnly')=='string'? 'http://' + settings.read('guiOnly') : settings.read('appAddresses')[0]
|
||||
|
||||
if (settings.read('noVsync')) {
|
||||
app.commandLine.appendSwitch('--disable-gpu-vsync')
|
||||
}
|
||||
|
||||
if (app.isReady()) {
|
||||
return require('./electron-window')({address:address, shortcuts:true})
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue