Skip to main content

TextRenderer.AndroidTextRendererQueue

A private static class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Private helper for TextRenderer that spreads text mesh building on Android across frames, about 5 ms per frame.

Fields​

4 private and internal fields
MemberWhat it is
private const float allowanceTime budget per frame, 0.005 seconds.
private static EmptyBehaviour coroutineRunnerFallback object that runs the coroutine when AltaCoroutine isn't ready.
private static bool isRenderingTrue while the queue is being worked through.
private static readonly Queue<TextRenderer> queueItemsRenderers waiting to be built.

Methods​

MemberWhat it is
static bool EnterQueue(TextRenderer renderer)Starts processing if idle and returns true so the renderer builds now; otherwise queues it and returns false.
1 private and internal method
MemberWhat it is
private static IEnumerator UpdateQueue() (iterator)Coroutine that builds queued renderers, skipping disabled or empty ones, yielding when the frame budget runs out.