Garrett Johnson преди 3 години
родител
ревизия
d83584173d
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  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.