OmniSync (LibOmniSync-1.0) — Next-Gen Player-to-Player Syncing Library & Telemetry Studio
OmniSync (LibOmniSync-1.0) is a zero-dependency LibStub library with a standalone Telemetry Studio (/os) built for World of Warcraft Forever 1.60.1, Retail (11.x / 12.0+ Midnight), and Classic. Only Fishing Buddy Forever and XyGoT’s other addons may bundle the library. Other addons can list the standalone OmniSync addon as a dependency (## Dependencies: OmniSync).
Traditional addon communication libraries (AceComm-3.0 + AceSerializer-3.0 + LibDeflate / Chomp + ChatThrottleLib) rely on full-table dumps, fixed backoff, Base64 encoding, and same-realm/same-faction assumptions — causing login disconnect storms, /reload lag spikes, silent message loss on portals, broken state when players aren’t online simultaneously, and errors during Midnight encounter combat blackouts. OmniSync replaces legacy broadcast loops with modern distributed-systems primitives engineered specifically around WoW’s 255-byte addon MTU, server rate limits, and Secret Value sandbox.
Measured Improvement Over Legacy Sync Libraries
Bottom Line: In verbatim head-to-head benchmarks against on-diskCallbackHandler-1.0+ChatThrottleLib v32+AceComm-3.0 r14+AceSerializer-3.0 r5+LibDeflate 1.0.2-release, OmniSync delivers 94.6%–99.89% less steady-state &/reloadbandwidth, 37.5%–82.2% less partial-diff reconciliation traffic, 71%–77% less 11-peer guild cold-start traffic with full CRDT conflict merging, 1.4×–2.5× faster codec round-trips (-27.7%nativeC_EncodingUtilwire size), 10/10 lossless packet-loss recovery (whereAceComm-3.0silently hands10/10receivers corrupted data), 4.0× faster incrementalSavedVariablespersistence, 0 idleOnUpdateticks, and 0/100 Midnight secret crashes.
| Sync Scenario / Capability | Legacy Stack (AceComm-3.0 + CTL + AceSerializer + LibDeflate) |
OmniSync (LibOmniSync-1.0) |
Improvement |
|---|---|---|---|
| Steady-State Guild Check-In (12 peers, 160 rows) | 2,649 B full (11 pkts, 33.3 ms) / 644 B {id=ts} map (3 pkts, 8.0 ms) |
35 B rolling XOR + 9D partition CRC beacon (1 pkt, 2.0 ms, 46.9 KB alloc) |
-94.6% to -98.7% bytes · 4.0×–16.6× faster · up to 104× less GC churn |
/reload or Relog Resync (12 peers, 160 unchanged rows) |
30,559 B 11-peer reply (122 pkts, 385.5 ms, 14.7 MB alloc) / 2,769 B 1-leader (12 pkts, 35.0 ms) |
34 B digest confirmation (1 pkt, 2.0 ms, 47.0 KB alloc, 0 rows resent) |
-98.8% to -99.89% bytes · up to 192× faster CPU & 313× less alloc |
| Partial Update Reconciliation (500 items, 4 mutated/new) | 7,335 B full dump (29 pkts) / 2,088 B {id=ts} handshake (10 pkts) |
1,306 B via 1-packet IBLT peel (8 pkts, 319.2 KB alloc) |
-37.5% to -82.2% bytes · 2.8×–7.8× less GC churn |
| New-Member Cold-Start Catch-Up (12 peers, 0 → 160 rows) | 29,808 B uncoordinated 11-peer guild reply (122 pkts) / 2,718 B custom 1-leader stateless dump (no merge) |
6,791 B (Deflate, 3.25s) / 8,675 B (OmniLZ, 4.75s) with per-key HLC CRDT history |
-70.9% to -77.2% bytes vs 11-peer guild · conflict-free CRDT merge |
| Codec Speed & Wire Encoding (160 rows × 20 + 4 KB blob) | 140.9 ms (2,638 B wire; +0.78% pipe-unsafe AddonChannel, +33.35% ForPrint, +53.52% ChatChannel) |
101.2 ms (OmniLZ, 2,695 B) / 55.9 ms (Deflate, 1,908 B); Safe250 (+2.34% pipe-free) & basE91 (+22.97%) |
1.39×–2.52× faster · -27.7% native wire size · 100% pipe-free |
| 20% Packet Loss / Portal Zoning (10 guildmates, 160 rows) | 0/10 valid (10/10 fired OnCommReceived with silently corrupted/truncated data!) |
10/10 (100%) lossless recovery in 0.20s (3,313 B / 19 pkts via LT Fountain) |
100% lossless recovery vs silent corruption |
SavedVariables Persistence (100 writes / 500 rows) |
187.6 ms (52.7 KB full string serialization per save) |
46.7 ms incremental BindSavedVariables slot save |
4.0× faster persistence CPU |
| Idle Footprint & Startup RAM | 224.1 KB RAM (4 _G globals, 0 idle OnUpdate) |
398.8 KB RAM (2 _G globals, 0 idle OnUpdate; 0.67% frame wakeups @ 15s beacon, 1.5ms/frame slicer) |
0 idle OnUpdate · 50% fewer _G globals |
| Offline-to-Offline Sync | Impossible without an external desktop app | Serverless Dead-Drops (C_Club, Guild Bank, Notes, OS1!...) |
Zero-overlap convergence |
| Cross-Faction / Cross-Realm | Manual whisper/BNet bridge boilerplate | Built-in 7-Plane Wormhole Mesh Relay (meshRelay = true) |
1-line automatic bridging |
| Midnight (12.0+) Combat Lockdown | 100/100 uncaught OnEvent crashes / taints on Secret Values |
0/100 crashes (SecretGuard + Encounter Lockdown coalescing) |
Zero taint · Zero lost state |
| Anti-Spoofing & Integrity | None (any peer can forge or poison state) | 48-Bit Keyed MAC “Trusted Rings” + flood/bomb guards | Cryptographic state auth |
| Cross-Realm / Ruleset / Self-Found | Leaks Hardcore → PvE state; 0 delivered when Self-Found blocks whispers |
9D Boundary Isolation Firewall (0 cross-ruleset leaks) + 100% Self-Found multicast fallback |
Zero partition poison · Self-Found safe |
Real-World Impact by Addon Category
- Guild Ledgers, Loot Councils, RP Profiles & Rosters (82%–99.89% less resync overhead): Eliminates login/
/reloadfloods across 12+ peer guilds (34 Bdigest checks vs30.6 KBguild floods), reconciles 4-key updates on 500-row stores in1,306 Bvia 1-packet IBLT diffs, flushesSavedVariables4.0× faster, and adds 48-bit MAC authority plus offline Dead-Drops. - World Buffs, Rare Spawns, Keystones & Gathering (94.6%–98.7% less steady-state chatter): Trickle wire-snoop suppression keeps 12-peer guild check-ins down to a single
35 Bbeacon whileLatticeMapkeeps the freshest timestamp automatically. - Auction House, Economy & Crafting Addons (100% lossless multicast): Synchronize item prices or craftable recipe catalogs cleanly with 1.39×–2.52× faster serialization, -37.5% to -82.2% incremental sync bytes via IBLT, and zero pipes (
|) across realms or Forever/Classic clients. - Raid Notes, Profile/Aura Sharing & Combat Comms (10/10 recovery under 20% packet loss): Rateless LT Fountain multicast achieves 100% intact delivery across 10 guildmates under 20% packet drops where
AceComm-3.0silently delivers truncated garbage to all 10 receivers, whileSecretGuardprevents 100/100 Midnight secret event crashes. - Cross-Faction & Cross-Realm Communities: Automatically bridges state across faction and server boundaries (Alliance ↔ Battle.net Friend ↔ Horde Guild ↔ Instance Group) via hop-bounded Wormhole Mesh Relay.
- Distributed Counters & Real-Time RPCs: Track shared multi-player counts without lost updates (
PNCounter), maintain deterministic bounded event feeds (DeltaLog), and fire low-latency ephemeral signals (SendRPC) prioritized ahead of bulk transfers.
Complete Feature List
- O(d) Single-Packet Set Reconciliation (IBLT + O(1) Rolling XOR Digests + 16-Bucket Bisection): Maintains an O(1) incremental 12-byte Rolling XOR State Digest per namespace, reconciles diverging stores in a single
≤ 255 B16-cell Invertible Bloom Lookup Table packet (128cells over Battle.net), and falls back seamlessly to 16-bucket Merkle bisection for full cold-start syncs. - Self-Describing Systematic LT + Incremental GF(2) Rateless Fountain Erasure Coding: Splits bulk multicast payloads into self-describing droplets carrying
(transferID, K, seq, innerType, compMode)and solves missing blocks on the fly via incremental GF(2) Gauss-Jordan elimination under packet loss. Stalled receivers request specific source blocks with bounded retries when both peers run 1.0.3 or later. - IETF Trickle Timer + Outbound Wire-Snoop Queue Cancellation: Uses randomized listen-before-talk jitter on multicast scopes and automatically prunes redundant
DIGEST_BEACON,IBLT_SKETCH,BUCKET_DIGESTS, and unstarted multicastFULLPUSH/BUCKETPUSHframes before wire emission whenever another peer is overheard answering first. - 5 Built-In Conflict-Free Replicated Data Types (CRDTs) + Hybrid Logical Clocks (HLC):
LWWMap(Last-Write-Wins key-value map with tombstones),LatticeMap(MAX_NUMBER,MIN_NUMBER,FRESHEST_BY_FIELD, or custom semilattice),ORSet(Add-Wins Observed-Remove Set),PNCounter(distributed+/-counter), and bounded causalDeltaLog, plus 1-line incrementalBindSavedVariablesslot persistence across/reloadand relogs. - 7-Plane Omni-Transport Mesh Router & Cross-Faction Wormhole Relay: Routes seamlessly across
BN_GAME_DATA(4,078 BBattle.net frames),INSTANCE_CHAT/RAID/PARTY,GUILD/OFFICER,WHISPER/SendAddonMessageLogged, chat-filtered stealthCHANNEL(zero visible chat spam),DEAD_DROP, andCLIPBOARD, with hop-TTL relay and 512-entry LRU frame deduplication. - Serverless Persistent Dead-Drops (C_Club, Guild Bank, Guild Notes & OS1!...): Built-in markers (
[OS1:<ns>:OS1!... /OS1]) preserve existing human notes while letting offline peers converge cleanly when logging in hours or days later. - Dual-Engine Codec (OmniPack + C_EncodingUtil Deflate / OmniLZ + Safe250 & basE91): Deterministic schema-indexed + dynamic string-interned binary serializer (
OmniPack) with cached schema lookups, 4-byte unrolledBit.CRC32, capability-negotiated native C++C_EncodingUtilDeflate or universal pure-LuaOmniLZ, low-overheadSafe250(+2.34%), and pipe/quote-freebasE91(+22.97%). - WoW 16001 / Midnight SecretGuard Taint Firewall & Encounter Lockdown Coalescing: Recursively strips or rejects
issecretvalue/issecrettable/canaccessvaluecombat values, cycles, and excessive table depth without taint errors, and coalesces outbound mutations in-place duringENCOUNTER_START/AddOnMessageLockdownbefore jittered post-encounter flush. - AIMD Congestion Control + Cooperative ChatThrottleLib Bridge + 4-Tier DRR + 1.5ms CPU Slicer: Dynamically adapts transmission rate from
Enum.SendAddonMessageResult, shares global socket credits whenChatThrottleLibis present, applies a 6-second 10% post-portal disconnect shield, runs with0idleOnUpdatecalls, and caps background coroutine serialization work to1.5ms/tick. - Anti-Poisoning Security & 48-Bit Keyed MAC (“Trusted Rings”): Rejects decompression bombs,
+60sfuture clock-drift spoofing, per-peer rate floods, and unauthenticated frames via constant-timeVerifyMAC48when a namespace configuressecretKey. - Safe-By-Default 9-Dimension Player Isolation Firewall (MINOR 8): Automatically segregates peers,
OS1!Dead-Drops, Guild Bank markers, and shared account-wideSavedVariablesacross Version & Schema, Client Flavor (Retail / Forever / Titan Wrath / Classic flavors), Live / PTR / Beta, Region, Season / Timerunning Remix, WoW Forever All-Rulesets & Challenge Flags (PvE,PvP,RP,RP PvP,Hardcore,Self-Found, with restricted-whisper multicast fallbacks), Connected-Realm Clusters, Native Faction (Mercenary-safe), and optional War Mode, plus seamlessv1.0.3–v1.0.5liveLibStubupgrades andSavedVariablesmigration. - Standalone Telemetry Studio (/os, /omnisync) & Developer Instrumentation: Live Mesh & Peers Radar, CRDT Inspector, Protocol Telemetry + 8-Peer Stress Benchmark, Dead-Drop Lab, real-time TX/RX/Chaos wire hooks (
RegisterWireHook), inbound chaos drop testing (SetChaosDropRate), and self-loopback wire probe (RunLoopbackProbe).
Quickstart (Using Standalone OmniSync as a Dependency)
-- Add "## Dependencies: OmniSync" to your addon's .toc
local OmniSync = LibStub("LibOmniSync-1.0")
-- Safe by default (isolation = "STRICT"): keeps Version, Schema, Flavor, Live/PTR, Region,
-- Season/Timerunning, Ruleset, Self-Found, Connected Realms, and Faction cleanly separated.
local prices = OmniSync:CreateNamespace("MyAddon:Prices", {
crdt = "LatticeMap",
mergeFn = "FRESHEST_BY_FIELD",
tsField = "seenAt",
schema = { "minBuyout", "market", "seenAt", "qty" },
scopes = { "GROUP", "GUILD", "BNET" },
meshRelay = true,
-- Optional cross-boundary opt-ins: allowCrossFaction = true, allowCrossRealm = true, ...
})
-- Query current ruleset & 9-dimension isolation profile
local ruleset = OmniSync:GetRuleset()
local profile = OmniSync:GetIsolationProfile()
-- Run after your addon's SavedVariables load.
MyAddonDB.syncCache = MyAddonDB.syncCache or {}
prices:BindSavedVariables(MyAddonDB.syncCache)
prices:Set(19019, { minBuyout = 425000, market = 500000, seenAt = GetServerTime(), qty = 3 })
Standalone Studio Slash Commands
/osor/omnisync— Toggle the OmniSync Telemetry Studio/os sync— Broadcast immediate IBLT state digest beacons/os bench— Run the in-game 8-peer compression, IBLT, Fountain & Trickle benchmark/os probe— Execute a live wire loopback RTT probe/os stats— Print TX/RX, Trickle suppression & Fountain recovery counters