This checkout had no git history at all, so this one commit carries the whole
of the Everwood work as a single import on top of chairmanpow/benilla-octo's
`main` (706cd71). The two trees have genuinely diverged — each has files the
other does not — so this is a fork point, not a catch-up.
Today's work, which is the reason a baseline exists at all:
- Booth previews no longer cast world shadows (`NO_BOOTH_SHADOW`). Portrait
characters were entering the sun's shadow cascades, so every skinned-rig
shadow specialization compiled live mid-frame; the hitch detector logged
"main thread blocked 1316 ms" beside a `compiled LIVE` warning. This was
the Fashion/Tmog stutter.
- Per-pane dress-up: each `DressUpModel` pane assembles and stages its own
tried-on look instead of every pane mirroring the live player.
- Item template cache is append-only JSONL written on the IO pool, replacing
an 11.6 MB whole-map JSON rewrite on the main thread every 10 s.
- `WOW_SYSTEM_TIMING` rebuilt per-thread: it took 2 mutexes per system enter
and 4 per exit, costing 15 ms a frame (590 fps -> 60) and corrupting the
measurements it was taken to produce.
- The visibility-churn sweep moved to its own `WOW_FLASH_CHURN` switch, so a
frame-cost reading no longer pays 2.7 ms a frame for it.
Local state (`benilla-config/`, `logs/`, `target/`) is excluded by the
existing .gitignore; the account credential it holds is not in this commit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgstFWtn1RxEJ5kVrpgYwn
28 lines
1.7 KiB
Lua
28 lines
1.7 KiB
Lua
-- benilla's own: tolerate the server's AIO blocks this client has no feature for.
|
|
--
|
|
-- AIO dispatches a server block by name through `AIO_BLOCKHANDLES`, and an unregistered name is
|
|
-- an `error()` (`AIO.lua:547-549`). That is the right shape — except **pfUI replaces the global
|
|
-- `error` with one that prints to chat and returns** (`pfUI.lua:453-460`, which it does to feed
|
|
-- `seterrorhandler`). A non-raising `error` turns AIO's clean abort into a fall-through: the
|
|
-- next line calls the handler it just failed to find, so the player sees two errors, the real
|
|
-- one being `attempt to call local 'handledata' (a nil value)` at `AIO.lua:558`.
|
|
--
|
|
-- That is pfUI's bug and it would bite the reference client the same way; what changed here is
|
|
-- only that benilla now loads AIO at all (for the calendar). So the blocks this client does not
|
|
-- implement are registered as no-ops, which is what "no handler" was always supposed to mean.
|
|
--
|
|
-- `OctoRadio`: the realm's radio is driven entirely from the client — a station click sends
|
|
-- `.radio <n>` as a SAY command and the server answers with `SMSG_PLAY_MUSIC`
|
|
-- (`OctoRadioPlaceholder.lua`'s own header says so, and that file contains no AIO call at all).
|
|
-- Whatever this block carries is therefore supplementary to a feature that already works, so
|
|
-- dropping it costs nothing visible. Logged once so a block that turns out to matter is still
|
|
-- findable.
|
|
if AIO and AIO.RegisterEvent and not AIO_SERVER then
|
|
local ignored = { "OctoRadio" }
|
|
for _, name in ipairs(ignored) do
|
|
AIO.RegisterEvent(name, function()
|
|
-- Nothing: the block is for a feature this client does not implement.
|
|
end)
|
|
end
|
|
end
|