Testing with Playwright - optimize CPU load

Hi there,

i am currently working on a Project which uses Babylonjs + React. In order to make e2e tests work, i want to use Playwright. The issue i am having is, that all works great as long as i run my tests on a GPU accerlerated machine. Once i run the tests on a CPU only machine (like for example a github action runner) everything gets so slow that most of the tests fail because of timeout problems, while the CPU load is extremely high.
Since i need babylon for some calculations which are then reflected in react components, i am not able to simple disable babylon completely.
I am now wondering if it would be possible to minimize the load on the cpu as much as possible to try to still use the playwright tests (to test the react-components which depend on babylon) but only render a minmal bablon scene.
I had the idea to only render the scene in a 1x1px canvas, but without any significant savings on cpu load by something like this:
limitDeviceRatio: isPlaywrightTest ? 0.001 : 1, // map.getPixelRatio(),

or this:

canvas.style.width = '1px'
canvas.style.height = '1px'
canvas.width = 1
canvas.height = 1

i know it might be not so easy to answer given my small amount of information here, but maybe someone has another idea how i would drastically reduce the cpu load when running babylonjs in an only cpu environment?

Thanks a lot for ideas!

cc @docEdub

We use browserstack for the playwright tests on the CI.

I was looking at that too, but could not figure out if that comes with gpu support or not.
Does it?

Thanks a lot!

Ya, it has GPU support