XSharp

Stag Final Climb and Gator Capsule parity baseline

The newer Stag calibration supersedes this Stag baseline with three physics corrections and separate autonomous/native-cadence measurements. Gator was not recalibrated in that milestone; the measurements below remain historical evidence.

Measured on 2026-11-07 in feature/physics, after the user set Gap Jumps aside. Both original movies were replayed completely in a private BizHawk 2.11 / BSNESv115+ instance from their embedded states. Read-only captures include state zero, every input, all low WRAM and RNG entry/context observations. XSharp then executed the intervals below in the production DX9 host with its X2 physics profile, normal ROM-loaded collision geometry and optional native object limits. Neither run passes complete parity.

Measured results

Measurement Stag Final Climb Gator Capsule
Movie inputs / original captured states 3,487 / 3,488 7,395 / 7,396
Original stage / checkpoint at comparison start 4 / 1 8 / 0
Compared movie-state interval 0–3,487 906–7,395
Inputs executed by XSharp 3,487 6,489
First player position difference 131 1,264
First stored player velocity difference 131 952
First camera position difference 141 908
First RNG seed / call-count difference 216 / 216 949 / 949
First player health difference 1,110 2,891
First mapped small-object difference 0 1,134
First mapped weapon difference 466 1,182
First native player-animation difference 131 1,264
20-update XSharp save-state replay Passed from 30 Passed from 910
Whole-scene parity Incomplete / divergent Incomplete / divergent

The matching player-motion prefix is states 0–130 for Stag. Gator matches player position and velocity on 906–951; position alone stays equal through 1263, despite earlier stored-speed differences. Later isolated matches do not repair the already divergent continuous trajectory. No percentage of complete scene fidelity can be certified from these player-only prefixes.

Gator begins in stage-entry substate 2. The adapter currently requires a standing player in normal gameplay with released controls. Its first eligible source state is 906. Inputs 0–905 are explicitly excluded from the XSharp comparison, not counted as a match or silently shifted. The original capture covers them. Porting the native entry/teleport sequence is separate pending work.

First differences and bounded interpretation

Stag, 131: after rising along the right wall and reaching the platform, the original is in state/substate 04/02, with VX=376, VY=0. XSharp remains in GOING_UP for this update, reports floor contact and retains VX=885, VY=-128 in native velocity units. Its position differs by dx=509, dy=-128 subpixels (approximately +1.9883 and -0.5 pixels). At 132 the stored velocities agree again, but the position error remains. This localizes a contact/transition discrepancy; the exact original instruction path has not yet been traced for this case.

Stag, 216: the original logic counter remains 229, its seed stays 6892 and there are zero RNG entries. XSharp advances once to seed 20540. The original joypad-lag flag is still zero. Repeated native logic counters also occur at 254, 763, 768, 1276, 1323, 1328, 2041 and 2616. The autonomous run does not consume this counter as timing instructions. Identifying the particular native task causing each stall remains pending; previous graphics CPU/NMI components are not yet a fully connected engine scheduler.

Gator, 908: camera X is 1282 in the original and 1280 in XSharp, with equal Y. The original alternates X by two pixels in this opening clip. The effective initial limits are X=1024..1280, Y=512..1040; loading checkpoint 0 alone leaves different limits. One initial import removes that setup error, but it does not implement this stage-specific camera behavior. Its responsible controller/code path still needs investigation.

Gator, 949: the original makes two RNG calls; XSharp makes one. The extra entry has direct page $1518, stacked return PC $03:EAB0 (before RTL increment) and seed-before 63978. The original $1518 pool has dispatch 16 in this part of the recording; these observations identify a context, not a completed semantic translation of that controller.

Gator, 952: position still agrees, but native state/substate is 10/00, with stored VX=885. XSharp remains in GOING_UP and stores zero horizontal speed. It enters WALL_JUMP at 954. Values refer to 1/256 pixel units; comparing only rendered position would miss this difference. No physics correction is claimed by this baseline milestone.

Initialization and coverage

The host loads the source stage/checkpoint, warms up 420 ordinary updates and aligns player position/subpixels, standing state, facing, health, released input, camera position/effective limits, seed, graphics set and supported animation / weapon / slot storage once at the explicit start frame. It then supplies the original inputs continuously, one engine update per input. No reference cadence, positions, velocities, seeds or camera values drive later simulation.

Requested camera-bound interpolation and unsupported native actor controllers are not imported. Stag already contains two native dust objects missing from the XSharp initial scene. Both recordings also contain pool/dispatch types without class-specific audits. Neither recording has a compared Scriver/Aclanda state: the enemy audit’s zero comparisons must not be read as enemy parity passing. The reports inventory unmapped native objects. Pixels/audio are not compared.

An earlier local diagnostic omitted effective camera-limit import. Its Gator camera diverged at 907 and player speed at 911 because of the stale checkpoint setup. It is superseded by the reports below and is not the physics baseline.

Reproduction and preserved evidence

Source hashes, full sync settings, frame-zero indexing and raw measurement hashes:

Capture each original with tools/parity/capture_bizhawk_movie.py, --scene-memory --trace-rng --timeout 600, the named movie and documented X2 USA ROM/core. Build tools/XSharp.MovieParity/XSharp.MovieParity.csproj, then run:

.\XSharp.MovieParity.exe 'C:\movies\Stag Final Climb.bk2' 'C:\roms\X2-USA.sfc' `
  'C:\research\stag-original\frames.csv' 'C:\research\stag-xsharp' --verify-state-at 30
.\XSharp.MovieParity.exe 'C:\movies\Gator Capsule.bk2' 'C:\roms\X2-USA.sfc' `
  'C:\research\gator-original\frames.csv' 'C:\research\gator-xsharp' `
  --start-frame 906 --verify-state-at 910

Each output must be absent or empty. Exit 2 means completed and divergent or incomplete. Full raw measurements, comparison CSVs, entity timelines and tool source are preserved in the local portable evidence ZIPs identified by MegaEDXCore/Research/mmx2-progress.json; use the exporter/verification procedure in the research register. Native emulator save states and ROMs are not committed or included in those ZIPs; measured low WRAM is included.

Validation also includes 20-update deterministic XSharp restoration in each continuous run, nine invalid-clip/initialization rejection cases before device creation, seven evidence-export tests, and revision/width/camera-limit regression tests. These validate tooling and reproducibility, not the unresolved gameplay differences listed above.