Reduce RAF fallback 300ms → 35ms
This commit is contained in:
parent
22cd46f6fc
commit
6ebd258fb1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user