Skip to content

Hidden, muted test runs on BozoEngine master; native suites on the engine's float shortcuts - #107

Merged
boubou666 merged 3 commits into
mainfrom
claude/hidden-window-captures
Nov 23, 2026
Merged

boubou666 merged 3 commits into
mainfrom
claude/hidden-window-captures

Conversation

@boubou666

@boubou666 boubou666 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Engine

BozoEngine moves to master e15775a, 50 commits on from 6cf6faf. It brings:

  • Hidden windows (WindowOptions::hidden).
  • Float fast paths: the host's float arithmetic for ps2f and the VU0 four-field path.
  • The fix in BozoEngine #131. Those fast paths gave the smallest normal (0x00800000 / 0x80800000, no flags) for products just below 2^-126, where the PS2 gives ±0 with the underflow flags. TMB's native math suite found it.

Hidden, muted test runs

  • tmb:
    • --hidden runs without ever showing the window; captures read the game's offscreen picture.
    • --capture-scene takes the same picture in a shown window.
    • With --no-sound, nothing plays and --wav still records.
  • tmb-check --window --hidden: the pinned pixel captures, without a window.
  • README: the new options.

The window qualification routes (1P, 4P, movies) now run --hidden --no-sound:

Route Distinct captures WAV sound Pace
1P 5 yes 59.5 fps
4P 5 yes 58.8 fps
Movies 5 yes 59.8 fps

Hidden captures against visible ones:

  • Pixel-identical where both runs reach the same frame: 6 of the 15 pairs; 2 more differ by under 0.01 mean luma.
  • The others show the same scenes a few moments apart. Window runs are paced in real time, so they drift between runs.

Still needs a visible window or sound: presentation (window chrome, F2 panel, overlays) and the real-time audio device check (underruns).

Native suites

The engine's fast paths use the host's arithmetic. That has two side effects:

  • Generated code is exact only when the host rounds to nearest, which is how the game runs.
  • SSE leaves its sticky status flags set.

Six of the 11 suites varied MXCSR and required it unchanged. Changes, through tests/host_control.h:

  • Original leg: runs at the caller's word with rounding forced to nearest. FTZ and DAZ still vary.
  • Native-only leg: keeps the fully varied word.
  • Callers that run generated code on both sides: both legs use the nearest-rounding word.
  • MXCSR comparison: ignores the six status flags.

Checks

  • All 11 native suites pass.
  • Replays: 1P (9,500 frames) and 4P (8,500 frames) match the build before the fix on every recorded field, RAM and sound included.
  • Save-state round trips on 3222624: identical (1P menus, 1P match, 4P match).

🤖 Generated with Claude Code

boubou666 and others added 3 commits November 23, 2026 20:26
…e master 3222624

Not qualified yet: the bumped engine's 1P/4P headless replays and a 4P save-state
round trip match; the hidden window routes ran (the 4P one paced slowly, to recheck).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngine master's float shortcuts

- BozoEngine at claude/ps2f-mul-min-normal (7521b3e, BozoEngine #131 on master 3222624): hidden windows, and the
  fix for products that rounded up to the smallest normals in ps2f's and VU0's host shortcuts.
- tmb-check --window --hidden: the pinned pixel captures without showing the window (the offscreen picture).
- README: --hidden, --capture-scene; --no-sound keeps --wav.
- Native suites (tests/host_control.h): engine master's ps2f and VU0 shortcuts use the host's arithmetic, exact only
  when the host rounds to nearest (the game's word) and leaving SSE's sticky status flags. The original now runs at
  the caller's word rounding to nearest, native code still at the varied caller word (generated callers on both sides
  at nearest), and the control word is compared without the status flags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boubou666
boubou666 merged commit 153336a into main Nov 23, 2026
8 checks passed
@boubou666
boubou666 deleted the claude/hidden-window-captures branch November 23, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant