RateLimiter
A class in Alta.Coroutines, Alta.Utilities.
Simple real-time rate limiter: construct it with a ticks-per-second target, then call IsRateLimited each frame. Used by QuestMarker.
- Listed in Other Alta assemblies
- Documented in Threads, coroutines and the timeline, Alta assemblies
Constructors
| Member | What it is |
|---|---|
RateLimiter(float targetTickRate) | Creates a RateLimiter from targetTickRate. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
bool IsRateLimited() | Returns true until the next tick is due; when it returns false it schedules the next tick. Never limits if the rate is zero or less. |
Used in
Members of other types that take, return or hold a RateLimiter: