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.ChatThrottleLibv50): Every addon usingChatThrottleLib(includingAceComm-3.0, WeakAuras, Details!, DBM, BigWigs, and guild/raid sync tools) automatically rides OmniChatLib once installed. Any pre-loadedChatThrottleLibv24–v32 queues are migrated losslessly into OmniChatLib’s zero-allocation SoA slab pool, with deduplicated1xAce3hook 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 instantO(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 bundleLibOmniChat-1.0files. Addon makers adopt it solely by listing standalone OmniChatLib as a Required Dependency on CurseForge (under Project/File Relations) and declaring## Dependencies: OmniChatLibin 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
- Zero-Allocation SoA Slab Pool & O(1) Intrusive Pipes: Eliminates
O(N)table.remove()queue shifts, per-packetpipeNamestring concatenations, and closure allocations in hot paths, evicting drained/cancelled pipes immediately fromByNamelookup tables so downstream addons never see stale queue backpressure. - 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. - Closed-Loop AIMD 2x Wire Throughput & 3 Shaper Presets: Adaptive rate control driven by
Enum.SendAddonMessageResultscales cleanly to1,600–1,800 CPS(2xChatThrottleLib’s static800 CPScap) with zero server kicks acrossAdaptive2x,Conservative, andMaxThroughputpresets, while clamping safely on legacy boolean-only servers. - Per-Whisper & Per-Channel Micro-Quarantine + Zero-Token-Burn Drops: Isolates C-engine
WHISPERburst limits (0.25smicro-quarantine without latchingbChokingor wipingADDONtokens) andCHANNELthrottles independently soGUILD,GROUP, andRAIDqueues keep flowing at full speed, drops offline targets inO(1)viaCancelPipe, and avoids burning wire tokens on local client rejections (NotInGuild,NotInGroup,TargetRequired). - Weighted
4:2:1Byte-Fair DRR, Rotating Priority Cursor & Exact Deadline Wakeups: Byte-fair Deficit Round Robin acrossALERT/NORMAL/BULKpriorities with priority cursor rotation across throttle wakeups (preventingNORMAL/BULKstarvation), deduplicated1xAce3bypass accounting, and exact next-token timer deadlines (IdleOnUpdate = 0). - Alt-Tab Non-Choking, Hardware-Event Chat Safety & Midnight
12.0+Hardening: Prevents false framerate choking whenIsWindowFocused()isfalseor background FPS caps apply, preserves hardware-event execution for restrictedSAY/YELL/CHANNELchat calls, guards Secret Values across all inputs and hooks, and cleanly pauses/jittersAddOnMessageLockdownacross boss encounters. - 4-Tab Diagnostic & Benchmark Studio (
/ochat): Live tabs forTraffic Planes & AIMD,SoA Pool & DRR Pipes,CTL v50 & Ecosystem, andCTL 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 againstChatThrottleLibv32/ochat preset Adaptive2x | Conservative | MaxThroughput— Switch wire shaping policy/ochat stats— Print live lane rates, total/bypass bytes, client count &IdleOnUpdateaudit
License: All Rights Reserved (c) 2026 XyGoT — Standalone Distribution Only.