Commit b17d7a7
#2010 Draw the Spell Cache editor on first open, not at addon load
SpellCache.lua's setup ended with SelectTab on the first cache tab, which
fires GUIDrawSpellCacheEditor and builds two EditBoxes plus labels for
EVERY cached spell -- at load time, for a frame that starts hidden. The
cache only grows (imports merge the exporter's whole cache, the
translator caches every name it resolves, nothing prunes), so long-time
users paid seconds of frozen client inside the on-demand
LoadAddOn("GSE_GUI") that opening any first GSE window triggers.
Measured: 3.8s of a 4.4s blocked frame.
Defer the initial tab draw to the frame's first OnShow: the window pays
its own cost when actually opened, and loading the GUI stops stalling
the client.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d5dfe3d commit b17d7a7
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
235 | 248 | | |
236 | 249 | | |
237 | 250 | | |
| |||
0 commit comments