mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Prevent GPU throttling for hidden test windows
This commit is contained in:
@@ -29,6 +29,10 @@ class AtomWindow
|
||||
'web-preferences':
|
||||
'direct-write': true
|
||||
'subpixel-font-scaling': false
|
||||
|
||||
if @isSpec
|
||||
options['web-preferences']['page-visibility'] = true
|
||||
|
||||
# Don't set icon on Windows so the exe's ico will be used as window and
|
||||
# taskbar's icon. See https://github.com/atom/atom/issues/4811 for more.
|
||||
if process.platform is 'linux'
|
||||
|
||||
Reference in New Issue
Block a user