chore(preview service): use gl-egl over vulkan

This commit is contained in:
Iain Sproat
2025-04-08 18:05:24 +01:00
parent 5fc2d5c089
commit 1b18786281
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ RUN apt-get update && \
fonts-kacst=2.01+mry-15 \
fonts-freefont-ttf=20120503-10 \
libxss1=1:1.2.3-1 \
# libegl1 & libxext6 are required for hardware accelarated rendering to work (vulkan support)
# libegl1 & libxext6 are required for hardware accelarated rendering to work
libegl1=1.6.0-1 \
libxext6=2:1.3.4-1+b1 && \
# Clean up
+2 -7
View File
@@ -78,12 +78,7 @@ const server = app.listen(port, host, async () => {
logger.info({ port }, '📡 Started Preview Service server, listening on {port}')
appState = AppState.RUNNING
const gpuWithVulkanArgs = [
'--use-angle=vulkan',
'--enable-features=Vulkan',
'--disable-vulkan-surface',
'--enable-unsafe-webgpu'
]
const gpuArgs = ['--use-gl=angle', '--use-angle=gl-egl']
const launchBrowser = async (): Promise<Browser> => {
logger.debug('Starting browser')
@@ -99,7 +94,7 @@ const server = app.listen(port, host, async () => {
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-session-crashed-bubble',
...(GPU_ENABLED ? gpuWithVulkanArgs : [])
...(GPU_ENABLED ? gpuArgs : [])
],
protocolTimeout: PREVIEW_TIMEOUT,
// handle closing of the browser by the preview-service, not puppeteer