@pumpkin-plugins/distant-horizons-support-pumpkin API / session/capture / stepRequests
Function: stepRequests()
stepRequests(
state,peers,blocksBudget):boolean
Defined in: packages/distant-horizons-support-pumpkin/src/session/capture.ts:37
Advances queued LOD requests in rotating order: rejects requests that are no longer valid, answers from the cache (scheduling a background refresh for a stale entry), backs off from terrain that is not ready and steps at most one capture builder. cached_requests_per_tick bounds the cache and terrain checks. A request waits while another request captures its section, and a finished capture answers every request queued for that section.
Parameters
state
peers
blocksBudget
number
Block samples the builder may take this tick; 0 pauses capture sampling.
Returns
boolean
Whether a builder sampled terrain.