My question is pretty simple, at what rate does DataStore budget replenishes and how long should I yield before checking if there is enough budget again?
Is there a formula I can use to calculate how long code should yield before retrying?
Every 1 minute seems absurdly long.I’m aware of this, it’s not what I’m asking of
local function getBudgetCount(requestType) return DataStoreService:GetRequestBudgetForRequestType(requestType) end local function waitForBudget(requestType) while getBudgetCount(requestType) == 0 do wait(1) -- how long should I yield here? end end