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
44 lines
1.6 KiB
Rust
44 lines
1.6 KiB
Rust
//! Contains definitions from `lualib.h`.
|
|
|
|
use std::os::raw::{c_char, c_int};
|
|
|
|
use super::lua::lua_State;
|
|
|
|
pub const LUA_COLIBNAME: *const c_char = cstr!("coroutine");
|
|
pub const LUA_TABLIBNAME: *const c_char = cstr!("table");
|
|
pub const LUA_IOLIBNAME: *const c_char = cstr!("io");
|
|
pub const LUA_OSLIBNAME: *const c_char = cstr!("os");
|
|
pub const LUA_STRLIBNAME: *const c_char = cstr!("string");
|
|
pub const LUA_MATHLIBNAME: *const c_char = cstr!("math");
|
|
pub const LUA_DBLIBNAME: *const c_char = cstr!("debug");
|
|
pub const LUA_LOADLIBNAME: *const c_char = cstr!("package");
|
|
|
|
#[cfg(feature = "luajit")]
|
|
pub const LUA_BITLIBNAME: *const c_char = cstr!("bit");
|
|
#[cfg(feature = "luajit")]
|
|
pub const LUA_JITLIBNAME: *const c_char = cstr!("jit");
|
|
#[cfg(feature = "luajit")]
|
|
pub const LUA_FFILIBNAME: *const c_char = cstr!("ffi");
|
|
|
|
#[cfg_attr(all(windows, raw_dylib), link(name = "lua51", kind = "raw-dylib"))]
|
|
unsafe extern "C-unwind" {
|
|
pub fn luaopen_base(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_table(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_io(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_os(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_string(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_math(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_debug(L: *mut lua_State) -> c_int;
|
|
pub fn luaopen_package(L: *mut lua_State) -> c_int;
|
|
|
|
#[cfg(feature = "luajit")]
|
|
pub fn luaopen_bit(L: *mut lua_State) -> c_int;
|
|
#[cfg(feature = "luajit")]
|
|
pub fn luaopen_jit(L: *mut lua_State) -> c_int;
|
|
#[cfg(feature = "luajit")]
|
|
pub fn luaopen_ffi(L: *mut lua_State) -> c_int;
|
|
|
|
// open all builtin libraries
|
|
pub fn luaL_openlibs(L: *mut lua_State);
|
|
}
|