RequestScheduler

external object RequestScheduler(source)

The request scheduler is used to track and constrain the number of active requests in order to prioritize incoming requests. The ability to retain control over the number of requests in CesiumJS is important because due to events such as changes in the camera position, a lot of new requests may be generated and a lot of in-flight requests may become redundant. The request scheduler manually constrains the number of requests so that newer requests wait in a shorter queue and don't have to compete for bandwidth with requests that have expired.

See also

Properties

Link copied to clipboard

The maximum number of simultaneous active requests. Un-throttled requests do not observe this limit.

Link copied to clipboard

The maximum number of simultaneous active requests per server. Un-throttled requests or servers specifically listed in requestsByServer do not observe this limit.

Link copied to clipboard

A per server key list of overrides to use for throttling instead of maximumRequestsPerServer. Useful when streaming data from a known HTTP/2 or HTTP/3 server.

Link copied to clipboard

Specifies if the request scheduler should throttle incoming requests, or let the browser queue requests under its control.