Created
June 18, 2022 02:53
-
-
Save joehonton/6d112bdfbd958203cf84beb1053ed851 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A large array of points awaiting projection | |
var queue = []; | |
// index into the array of the next item to compute | |
var lastIndex = 0; | |
var idleCallbackId = 0; | |
. . . | |
if (queue.length > 0 && idleCallbackId == 0) | |
idleCallbackId = requestIdleCallback(computeLayout); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment