OmniChatLib

Standalone ChatThrottleLib v50 replacement: 28x sustained live throughput (up to 25 pkt/s, 0.5s p50 latency), zero-alloc SoA pool, 3-plane ADDON/BNET/CHAT isolation, 2x AIMD wire rate, whisper/channel quarantine, 0 idle OnUpdate & Midnight safety.

OmniChatLib (LibOmniChat-1.0) — Standalone ChatThrottleLib v50 Drop-In Replacement & Multi-Plane Traffic Shaper

#8 in the Omni* Library Suite (OmniSync, OmniBase, OmniFlow, OmniHUD, OmniUI, OmniSearch, OmniMap, OmniChatLib): OmniChatLib (LibOmniChat-1.0) is a next-generation standalone ChatThrottleLib v50 drop-in replacement and multi-plane network traffic shaper engineered for Retail / Midnight (12.1.7), WoW: Forever (1.60.1), TBC Anniversary (2.5.6), Classic Era (1.15.9), and Mists / Cata / Wrath Classic. Built in strict Lua 5.1 with zero global leaks, standalone OmniChatLib delivers 28x+ higher sustained live-realm packet throughput, 17x lower median queue latency (0.50s p50), and 2.5x–5.7x faster Lua CPU while staying 100% silent and invisible on login (0 chat lines, 0 minimap buttons, 0 auto-LDB/Addon Compartment/Settings clutter, and 0 idle OnUpdate scripts) and shielding all Midnight 12.0+ Secret Values via SecretGuard.

Standalone-Only Ecosystem Usage (Zero Embedding)

  • Option A — Automatic Zero-Code Upgrade (_G.ChatThrottleLib v50): Every addon using ChatThrottleLib (including AceComm-3.0, WeakAuras, Details!, DBM, BigWigs, and guild/raid sync tools) automatically rides OmniChatLib once installed. Any pre-loaded ChatThrottleLib v24–v32 queues are migrated losslessly into OmniChatLib’s zero-allocation SoA slab pool, with deduplicated 1x Ace3 hook accounting and live external field reconciliation.
  • Option B — Direct Scoped API (LibStub("LibOmniChat-1.0")): Addon authors gain scoped client handles (NewClient) with in-place queue coalescing (SendCoalesced), lazy zero-copy chunked streaming (SendStream & SendBNetStream), and instant O(1) per-pipe or per-prefix queue cancellation (CancelPipe, CancelPrefix).
  • Required Dependency Policy (All Rights Reserved): OmniChatLib enforces a strict zero-embedding standalone policy — neither third-party addons nor companion addons may bundle LibOmniChat-1.0 files. Addon makers adopt it solely by listing standalone OmniChatLib as a Required Dependency on CurseForge (under Project/File Relations) and declaring ## Dependencies: OmniChatLib in their .toc.

Verified Live High-Population Realm Telemetry vs. Legacy ChatThrottleLib v32

Measured live on a populated realm under continuous high-density peer discovery, whisper probing, and concurrent GUILD / OmniSync CRDT mesh traffic:

Live Session Metric Legacy ChatThrottleLib v32 OmniChatLib v50 (Adaptive2x) Real-World Gain
Sustained Wire Packet Pace ~17 pkt/min avg (222 in 13m, choked to 2/min) 476 pkt/min avg (4,000 in 8m 24s; 1,058–1,500 pkt/min / 20.7–25.0 pkt/s live pace) ~28x higher avg · up to 500x+ vs. choked state
Throughput Stability After Min 2 -93% to -98% choke cliff (621 packets stuck queued) Zero cliff across 20.7 min (5,155+ unique targets probed, 0 disconnects) Eliminated 93%–98% queue stall cliff
Live Queue Drain Latency (queuedAgo) p50 = 8.50s · max = 11.00s p50 = 0.50s · p90 = 1.60s · max = 2.50s 17x lower median queue latency
Live Peer Discovery & Mesh Sync 53 peers in ~13m (4.1/min) 72 peers in 2m 50s (25.4/min; 126 live peers over 20.7m + concurrent BULK sync) 6.2x faster live peer discovery, 0 starvation

Controlled Head-to-Head Engine Benchmarks vs. ChatThrottleLib v32

Benchmark Scenario ChatThrottleLib v32 OmniChatLib v50 Measured Improvement
Fast-Path Burst (10,000 msgs) 5.745 ms 2.236 ms 2.57x faster CPU
Deep Queue Enqueue + Drain (1,000 msgs) 3.224 ms / 439.03 KB 0.560 ms / 0.54 KB 5.76x faster CPU, 99.88% less RAM
Foreground Multi-Plane Wire Sim (60 FPS) 23.433s (2,812 wakeups) 4.775s (39 wakeups) 4.91x goodput, 72.10x fewer wakeups
Alt-Tabbed Multi-Plane Sim (8 FPS) >60s cap (7,200 wakeups) 4.775s (39 wakeups) 20.87x goodput, 184.62x fewer wakeups
Idle Frame / OnUpdate Overhead Continuous OnUpdate while queued 0 idle OnUpdate Zero-idle exact timer deadlines

Supported World of Warcraft Clients

Client Flavor TOC Interface(s) Engine Highlights
Retail / Midnight 12.x 120107, 120105, 120100, 120005, 120001, 120000 Closed-loop Enum.SendAddonMessageResult AIMD, SecretGuard (issecretvalue / canaccessvalue) & encounter AddOnMessageLockdown jittering
WoW Forever 1.60.1 16001 3-plane traffic isolation, per-whisper micro-quarantine, Hardcore & Self-Found ruleset awareness, and zero idle OnUpdate
TBC Anniversary 20506, 20505 Zero-alloc SoA slab pool, O(1) DRR pipes & lossless CTL v50 upgrade
Classic Era 11509, 11508 Safe wire clamping on boolean-only servers & hardware-event chat safety
Mists / Cata / Wrath Classic 50504, 50503, 40402, 38002, 30405 Multi-TOC flavor detection & unified LibOmniChat-1.0 API

Complete Feature List

  1. Zero-Allocation SoA Slab Pool & O(1) Intrusive Pipes: Eliminates O(N) table.remove() queue shifts, per-packet pipeName string concatenations, and closure allocations in hot paths, evicting drained/cancelled pipes immediately from ByName lookup tables so downstream addons never see stale queue backpressure.
  2. 3-Plane Traffic Isolation (ADDON, BNET, CHAT): Separates Battle.net (C_BattleNet.SendGameData), addon comms (SendAddonMessage / SendAddonMessageLogged), and player chat (SendChatMessage) into independent token buckets so 4 KB Battle.net transfers never stall guild or raid addon traffic.
  3. Closed-Loop AIMD 2x Wire Throughput & 3 Shaper Presets: Adaptive rate control driven by Enum.SendAddonMessageResult scales cleanly to 1,600–1,800 CPS (2x ChatThrottleLib’s static 800 CPS cap) with zero server kicks across Adaptive2x, Conservative, and MaxThroughput presets, while clamping safely on legacy boolean-only servers.
  4. Per-Whisper & Per-Channel Micro-Quarantine + Zero-Token-Burn Drops: Isolates C-engine WHISPER burst limits (0.25s micro-quarantine without latching bChoking or wiping ADDON tokens) and CHANNEL throttles independently so GUILD, GROUP, and RAID queues keep flowing at full speed, drops offline targets in O(1) via CancelPipe, and avoids burning wire tokens on local client rejections (NotInGuild, NotInGroup, TargetRequired).
  5. Weighted 4:2:1 Byte-Fair DRR, Rotating Priority Cursor & Exact Deadline Wakeups: Byte-fair Deficit Round Robin across ALERT / NORMAL / BULK priorities with priority cursor rotation across throttle wakeups (preventing NORMAL/BULK starvation), deduplicated 1x Ace3 bypass accounting, and exact next-token timer deadlines (IdleOnUpdate = 0).
  6. Alt-Tab Non-Choking, Hardware-Event Chat Safety & Midnight 12.0+ Hardening: Prevents false framerate choking when IsWindowFocused() is false or background FPS caps apply, preserves hardware-event execution for restricted SAY/YELL/CHANNEL chat calls, guards Secret Values across all inputs and hooks, and cleanly pauses/jitters AddOnMessageLockdown across boss encounters.
  7. 4-Tab Diagnostic & Benchmark Studio (/ochat): Live tabs for Traffic Planes & AIMD, SoA Pool & DRR Pipes, CTL v50 & Ecosystem, and CTL v32 Benchmark, staying completely silent and invisible until opened.

Quickstart (Required Dependency Policy)

-- 1. Add "## Dependencies: OmniChatLib" to your addon's .toc (never bundle LibOmniChat-1.0)
local OmniChat = LibStub("LibOmniChat-1.0")
local client = OmniChat:NewClient("MyAddon")

-- Standard CTL-compatible addon & Battle.net sends
client:SendAddonMessage("NORMAL", "MyPrefix", payload, "RAID")
client:BNSendGameData("NORMAL", "MyPrefix", bnetPayload, "WHISPER", gameAccountID)

-- In-place queue coalescing (rapid state updates collapse to 1 packet while throttled)
client:SendCoalesced("NORMAL", "MyPrefix", statePayload, "PARTY", nil, "state:hp")

-- Lazy zero-copy chunked stream (no upfront string.sub table spike)
client:SendStream("BULK", "MyPrefix", largePayload, "GUILD", nil, 255)
client:SendBNetStream("BULK", "MyPrefix", largeBNetBlob, gameAccountID, 4078)

Slash Commands

  • /ochat, /omnichat, or /ocl — Toggle the 4-tab OmniChatLib Diagnostic & Benchmark Studio
  • /ochat lanes, /ochat pipes, /ochat compat, /ochat benchmark — Open a specific Studio tab directly
  • /ochat bench — Run live head-to-head benchmarks against ChatThrottleLib v32
  • /ochat preset Adaptive2x | Conservative | MaxThroughput — Switch wire shaping policy
  • /ochat stats — Print live lane rates, total/bypass bytes, client count & IdleOnUpdate audit

License: All Rights Reserved (c) 2026 XyGoT — Standalone Distribution Only.

OmniChatLib Team

profile avatar
Owner
Forgeborn tier icon
  • 1
    Followers
  • 14
    Projects
  • 117.1K
    Downloads
Donate

More from XyGoTView all

  • OmniFlow project image

    OmniFlow

    Drop-in replacement for AceTimer-3.0, AceEvent-3.0, AceBucket-3.0 & LibAsync: O(1) pooled timing wheel (-99.6% GC churn), 40x fewer raid Lua wakeups via C++ RegisterUnitEvent, adaptive ZeroSpike coroutines, Midnight SecretGuard & 0 idle CPU.

    • 4.8K
    • December 6, 2026
  • OmniSync project image

    OmniSync

    Zero-dependency player-to-player state syncing library & studio: CRDTs, 1-packet IBLT reconciliation, rateless Fountain multicast, Trickle suppression, Dead-Drops & BNet mesh.

    • 9.3K
    • December 6, 2026
  • Fishing Buddy Forever project image

    Fishing Buddy Forever

    Fishing Buddy Forever - The actively maintained, modernized Fishing Buddy overhaul featuring double-click Easy Cast, smart auto-luring, one-click outfit swapping, and live catch tracking—updated fast for every patch.

    • 64.6K
    • December 6, 2026
  • Smartbite project image

    Smartbite

    Smart food buff selector for WoW Forever - auto-picks the best bag food for your Class, Spec, Role & Activity while saving Raid BiS.

    • 141
    • December 6, 2026
  • OmniFlow project image

    OmniFlow

    Drop-in replacement for AceTimer-3.0, AceEvent-3.0, AceBucket-3.0 & LibAsync: O(1) pooled timing wheel (-99.6% GC churn), 40x fewer raid Lua wakeups via C++ RegisterUnitEvent, adaptive ZeroSpike coroutines, Midnight SecretGuard & 0 idle CPU.

    • 4.8K
    • December 6, 2026
  • OmniSync project image

    OmniSync

    Zero-dependency player-to-player state syncing library & studio: CRDTs, 1-packet IBLT reconciliation, rateless Fountain multicast, Trickle suppression, Dead-Drops & BNet mesh.

    • 9.3K
    • December 6, 2026
  • Fishing Buddy Forever project image

    Fishing Buddy Forever

    Fishing Buddy Forever - The actively maintained, modernized Fishing Buddy overhaul featuring double-click Easy Cast, smart auto-luring, one-click outfit swapping, and live catch tracking—updated fast for every patch.

    • 64.6K
    • December 6, 2026
  • Smartbite project image

    Smartbite

    Smart food buff selector for WoW Forever - auto-picks the best bag food for your Class, Spec, Role & Activity while saving Raid BiS.

    • 141
    • December 6, 2026