Explorar o código

Update README.md

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
d83584173d
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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.