Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tools/compat-testing/tests/performance.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,13 @@ test.describe('Performance metrics', () => {
description: String(roundedFps),
});

// The game should sustain at least 24 FPS on any supported browser.
// Headless environments may cap at 60 or run lower; 24 is a safe floor.
expect(fps).toBeGreaterThanOrEqual(24);
// Local: at least 24 FPS on any supported browser.
// CI headless WebGL is software-rendered (SwiftShader / llvmpipe) and
// cannot hit 24fps reliably; relax to 5fps under CI=1 so we still catch
// catastrophic regressions (canvas not rendering at all → fps ≈ 0)
// without flaking on the runner's GPU.
const minFps = process.env.CI ? 5 : 24;
expect(fps).toBeGreaterThanOrEqual(minFps);
});

test('memory usage', async ({ page, browserName }, testInfo) => {
Expand Down
Loading