From 6dd61c39ee527caafb5fc1e392ae170033162271 Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Thu, 26 Sep 2024 10:45:23 -0500 Subject: [PATCH] try with settimeout --- perf/efps/runTest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf/efps/runTest.ts b/perf/efps/runTest.ts index 2b45684636a..8367048a5cd 100644 --- a/perf/efps/runTest.ts +++ b/perf/efps/runTest.ts @@ -136,9 +136,9 @@ export async function runTest({ last = current if (done) return - requestAnimationFrame(handleFrame) + setTimeout(handleFrame, 0) } - requestAnimationFrame(handleFrame) + setTimeout(handleFrame, 0) await new Promise((resolve) => { window.document.addEventListener('__finish', resolve, {once: true})