Reduce RAF fallback 300ms → 35ms

This commit is contained in:
Alexander Zinchuk 2023-10-27 12:49:52 +02:00
parent 22cd46f6fc
commit 6ebd258fb1

View File

@ -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<NoneToVoidFunction> | undefined;
let fastRafFallbackCallbacks: Set<NoneToVoidFunction> | undefined;