#96: TRACE THE CLOCK ORIGIN -- the pod ran at 28 fps (byte-proven); myomer heat re-bracketed to 14 Hz effective
epilectrik: "the issue seems to be related to a tick rate that advances the
heat accumulation... i need to trace out what the clock origin was." Traced.
THE CLOCK ORIGIN [T1]: the DOS binary keeps its engine frame rate in the
global DAT_0052140c, set once at startup:
0x401ace: mov [0x52140c], 0x41E00000 = 28.0f (nominal)
0x401ada: mov [0x52140c], 0x4191A6E0 = 18.2065f (BIOS-tick fallback)
The DOS main pushes it straight into the ApplicationManager ctor (0x401189:
push [0x52140c]), and ~90 sites across the image fmul/fdiv by it -- it is THE
per-frame<->per-second conversion scalar of the whole 1995 engine. The engine
executes every interesting master every frame and every executable subsystem
every entity tick (UPDATE.cpp / ENTITY.cpp, T0 -- no throttle at any layer),
so subsystem Performance cadence == this rate: the pod's myomer tick was
NOMINALLY 28 Hz. My previous 30 Hz reference (the i860 BOARD frame) was
wrong by 7%, not the 2x the veterans hear.
THE RESIDUAL IS EFFECTIVE RATE, NOT NOMINAL: Oracle, on the halved build,
still asks "If you could please halve the myomer heat rate again. We will
bracket to something reasonable." A 486 host missing beats halves the real
Performance cadence without changing any constant -- and the 18.2 fallback
existing at all says slow paths were expected. Statics cannot settle the
in-pod effective rate, so his bracket is the right instrument:
effective default = 28 [T1 nominal] x 0.5 [T3 testimony calib] = 14 Hz
BT_MYO_HZ=<hz> still overrides absolutely for bracketing
the resolved rate now logs under BT_MYO_LOG, tier tags inline
Measured (Owens, seek 4, flat out): peak T 1007 -> ~640, degradation never
reached -- the halving Oracle requested, delivered as one auditable knob
instead of a silent constant edit.
KB: decomp-reference.md gains the DAT_0052140c section (~90 consumer sites --
whenever the decomp shows an unexplained mul/div by _DAT_0052140c it is
per-second<->per-frame at 28); btl4main.cpp's "30 = pod authentic" pacer note
corrected (30 kept deliberately for display smoothness, the divergence now
documented). Candidate follow-up recorded: the frame-rate-dependent particle
trail density (rendering.md) should normalize against the same 28, which may
bear on Ronin's smoke-density report (#114).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c791fae0f8
commit
c28555bdc9
@@ -757,22 +757,41 @@ void Myomers::MyomersDriveHeat(Scalar time_slice)
|
||||
// cruising; at the pod's documented 30Hz board frame that is ~54s.
|
||||
//
|
||||
// So the term is rescaled to the reference frame rate: multiply by
|
||||
// dt * kPodFrameHz, which is 1.0 exactly when dt == 1/30 and makes the heat
|
||||
// identical on every machine. This is the ONE deliberate divergence from a
|
||||
// verbatim transcription of @004b8d18, and it exists because the binary's
|
||||
// value depends on a constant our port does not have.
|
||||
// dt * hz, making the heat identical on every machine. This is the ONE
|
||||
// deliberate divergence from a verbatim transcription of @004b8d18, and it
|
||||
// exists because the binary's per-tick value depends on the pod's frame
|
||||
// rate, which our port does not run at.
|
||||
//
|
||||
// ⚠ 30Hz is the i860 board frame ([T1], rendering.md) -- the HOST simulation
|
||||
// rate is not separately established, so treat this as the reference, not as
|
||||
// proven. BT_MYO_HZ overrides it without a rebuild so the pod veterans can
|
||||
// calibrate it by feel.
|
||||
static const Scalar kPodFrameHz = 30.0f;
|
||||
// THE CLOCK ORIGIN, traced 2026-08-02 (was the open question here):
|
||||
// the DOS binary keeps its engine frame rate in the global DAT_0052140c,
|
||||
// set once at startup --
|
||||
// 0x401ace: mov [0x52140c], 0x41E00000 = 28.0f (nominal)
|
||||
// 0x401ada: mov [0x52140c], 0x4191A6E0 = 18.2065f (BIOS-tick fallback)
|
||||
// -- and consumed by ~90 fmul/fdiv sites across the image as THE
|
||||
// per-frame<->per-second conversion. The DOS main passes it straight into
|
||||
// the ApplicationManager ctor (0x401189: push [0x52140c]). So the pod's
|
||||
// nominal Performance cadence was 28 Hz, byte-proven. [T1]
|
||||
//
|
||||
// CALIBRATION FACTOR 0.5, testimony (Oracle, 2026-08-02): at the byte rate
|
||||
// the veterans still report ~2x too much myomer heat -- "If you could
|
||||
// please halve the myomer heat rate again. We will bracket to something
|
||||
// reasonable." The plausible physical story is the pod's EFFECTIVE rate
|
||||
// under load (a 486 host missing beats; the 18.2 fallback existing at all
|
||||
// says slow paths were expected), which statics cannot settle. Effective
|
||||
// default therefore 28 * 0.5 = 14 Hz, explicitly marked testimony-
|
||||
// calibrated [T3]; BT_MYO_HZ=<hz> overrides absolutely for bracketing.
|
||||
static const Scalar kPodFrameHz = 28.0f; // byte-proven nominal [T1]
|
||||
static const Scalar kSeekHeatCalib = 0.5f; // Oracle bracket 2026-08-02 [T3]
|
||||
static Scalar s_hz = -1.0f;
|
||||
if (s_hz < 0.0f)
|
||||
{
|
||||
const char *hv = getenv("BT_MYO_HZ");
|
||||
s_hz = (hv && *hv) ? (Scalar)atof(hv) : kPodFrameHz;
|
||||
if (s_hz <= 0.0f) s_hz = kPodFrameHz;
|
||||
s_hz = (hv && *hv) ? (Scalar)atof(hv) : (kPodFrameHz * kSeekHeatCalib);
|
||||
if (s_hz <= 0.0f) s_hz = kPodFrameHz * kSeekHeatCalib;
|
||||
if (getenv("BT_MYO_LOG"))
|
||||
DEBUG_STREAM << "[myoheat] kinetic-term reference rate: " << s_hz
|
||||
<< " Hz (pod nominal 28 [T1] x calib " << kSeekHeatCalib
|
||||
<< " [T3]" << (hv ? ", ENV OVERRIDE" : "") << ")" << std::endl;
|
||||
}
|
||||
|
||||
Scalar termClimb = velComplement * vy * mass * gravity * time_slice;
|
||||
|
||||
Reference in New Issue
Block a user