🎨 UI Widget Cache
Hooks 4 UI widget methods at the C function level — skips redundant engine calls when addons set the same value that's already displayed.
| Hook | What It Caches | Skip Rate |
|---|---|---|
FontString:SetText
| FNV-1a text hash | 60-80% |
StatusBar:SetValue
| Float value bits | 50-70% |
StatusBar:SetMinMaxValues
| Combined min+max | 40-60% |
StatusBar:SetStatusBarColor
| Combined RGBA | 50-70% |
How it works
- All function addresses auto-discovered at startup by scanning WoW's method tables
- Verified by matching 10+ neighboring method names (GetText, SetFont, SetStatusBarTexture, etc.)
- Zero hardcoded UI addresses — no IDA Pro needed
- 100% taint-free — hooks C functions directly, invisible to Lua taint tracker
Where you'll feel it
- 🏰 Dalaran with 100+ players — thousands of SetText calls/sec from nameplates
- ⚔️ 25-man raids — health bars, unit frames, damage meters constantly updating
- 📊 Heavy addon setups — Skada, DBM, WeakAuras, ElvUI all call these methods every frame
Bugfix
- Fix Error #132 on /logout — removed combat log entry pool and RestoreLuaAllocator on Lua state change
Example log output
[UICache] Hooks: 4/4 active
[UICache] Cache: 8192 slots, FNV-1a + float-bits hash
[UICache] Taint: SAFE (C-level hooks, invisible to Lua)
[UICache] [ OK ] ACTIVE
...
[UICache] Shutdown:
[UICache] SetText skipped: 14832 passed: 3847 (79.4% skip)
[UICache] SetValue skipped: 8291 passed: 2103 (79.8% skip)
[UICache] SetMinMax skipped: 1247 passed: 891 (58.3% skip)
[UICache] SetBarColor skipped: 3104 passed: 1456 (68.1% skip)
[UICache] TOTAL skipped: 27474 passed: 8297 (76.8% skip)
Install
Same as before — copy wow_optimize.dll + version.dll to WoW folder.
Compatibility
- ✅ Works with LuaBoost (ThrashGuard is redundant but harmless — disable with
/lb tg toggle) - ✅ Works with DXVK
- ✅ Works with LAA patch