From 6ebd258fb1b9b4a92d6b17460485a1105959ce0b Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 27 Oct 2023 12:49:52 +0200 Subject: [PATCH] =?UTF-8?q?Reduce=20RAF=20fallback=20300ms=20=E2=86=92=203?= =?UTF-8?q?5ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/schedulers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/schedulers.ts b/src/util/schedulers.ts index ee988e9e8..8a4e22ee1 100644 --- a/src/util/schedulers.ts +++ b/src/util/schedulers.ts @@ -104,7 +104,7 @@ export function rafPromise() { }); } -const FAST_RAF_TIMEOUT_FALLBACK_MS = 300; +const FAST_RAF_TIMEOUT_FALLBACK_MS = 35; // < 30 FPS let fastRafCallbacks: Set | undefined; let fastRafFallbackCallbacks: Set | undefined;