Prevent GPU throttling for hidden test windows

This commit is contained in:
Nathan Sobo
2015-10-05 15:26:25 -06:00
parent dcb1d8296f
commit d34968b750

View File

@@ -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'