Skip to content

Commit

Permalink
Turn off webgl on puppeteer loading, see phetsims/aqua#174
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Apr 28, 2023
1 parent 862e581 commit f7439ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion js/build-server/parseScreenNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ const puppeteerLoad = require( '../common/puppeteerLoad' );
*/
const parseScreenNamesFromSimulation = async ( simName, locales ) => {

const browser = await puppeteer.launch();
const browser = await puppeteer.launch( {
args: [
'--disable-gpu'
]
} );

const returnObject = {};

Expand Down
8 changes: 6 additions & 2 deletions js/common/puppeteerLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ const winston = require( 'winston' );
*/
module.exports = async function( url, options ) {

options = _.extend( {
options = _.merge( {

// See https://github.com/puppeteer/puppeteer/blob/v14.1.1/docs/api.md#puppeteerlaunchoptions
launchOptions: {},
launchOptions: {
args: [
'--disable-gpu'
]
},

browser: null, // {puppeteer.Browser|null} - If provided, we'll use a persistent browser

Expand Down

0 comments on commit f7439ca

Please sign in to comment.