Browse Source

Update README.md

Garrett Johnson 3 years ago
parent
commit
d83584173d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -612,6 +612,14 @@ priorityCallback = null : ( itemA, itemB ) => Number
 
 
 Function to derive the job priority of the given item. Higher priority values get processed first.
 Function to derive the job priority of the given item. Higher priority values get processed first.
 
 
+### .schedulingCallback
+
+```js
+schedulingCallback = requestAnimationFrame : ( cb : Function ) => void
+```
+
+A function used for scheduling when to run jobs next so more work doesn't happen in a single frame than there is time for -- defaults to the next frame. This should be overriden in scenarios where requestAnimationFrame is not reliable, such as when running in WebXR.
+
 ## LRUCache
 ## LRUCache
 
 
 Utility class for the TilesRenderer to keep track of currently used items so rendered items will not be unloaded.
 Utility class for the TilesRenderer to keep track of currently used items so rendered items will not be unloaded.