Skip to content

Commit 27828bc

Browse files
committed
remove hard coded 5ms on scheduleDeferredCallback
1 parent 8e70469 commit 27828bc

File tree

2 files changed

+893
-59
lines changed

2 files changed

+893
-59
lines changed

packages/react-ape/renderer/reactApeFrameScheduling.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ let scheduledCallback: (() => mixed) | null = null;
1616
let frameDeadline: number = 0;
1717

1818
function setTimeoutCallback() {
19-
// TODO (bvaughn) Hard-coded 5ms unblocks initial async testing.
2019
// React API probably changing to boolean rather than time remaining.
2120
// Longer-term plan is to rewrite this using shared memory,
2221
// And just return the value of the bit as the boolean.
23-
frameDeadline = now() + 5;
22+
frameDeadline = now();
2423

2524
const callback = scheduledCallback;
2625
scheduledCallback = null;

0 commit comments

Comments
 (0)