diff --git a/Directory.Build.props b/Directory.Build.props
index 5c90bf9..d57e84f 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,7 +1,7 @@
- 0.1.0-preview.343.1
+ 0.1.0-preview.349.1
true
diff --git a/IplResources/README.md b/IplResources/README.md
index 8aeec7b..6a9e124 100644
--- a/IplResources/README.md
+++ b/IplResources/README.md
@@ -18,8 +18,9 @@ authored notes and tails. The three movement identities map to
`SystemFirmware.ReadConsole` reads the configured console ROM through EXI.
On a real GameCube, that ROM is built in: no IPL file needs to be installed.
-Build B03 consumes public NuGet SDK/runtime `0.1.0-preview.343.1`, published
-after [SDK PR #180](https://github.com/capz/DolphinDotNet/pull/180).
+Build B03 introduced public NuGet SDK/runtime `0.1.0-preview.343.1`, published
+after [SDK PR #180](https://github.com/capz/DolphinDotNet/pull/180). The repository
+now consumes `0.1.0-preview.349.1`.
The SDK uses continuous DMA for each 1 KiB ROM page, following libogc's ROM
transfer method. The demo shows the actual published SDK version below the title,
starts with Startup selected, and displays load errors across two lines.
@@ -67,7 +68,7 @@ running IPL because they start at a deterministic sequence phase.
The `ipl-resources-dol` CI artifact contains `IplResources-early-ipl.dol`.
Its dedicated native build group makes this download available while the
other sample builds finish. Confirm `IPL RESOURCES B03` and SDK
-`0.1.0-preview.343.1` on screen when testing it.
+the repository's pinned SDK version on screen when testing it.
```sh
dotnet build IplResources/IplResources.sln -c Release
diff --git a/README.md b/README.md
index f4c4a5e..74e960f 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# DolphinDotNet Samples
-Run commands from the repository root. These are independent NuGet consumers of [`DolphinDotNet.Sdk`](https://www.nuget.org/packages/DolphinDotNet.Sdk/) and [`DolphinDotNet.GameCube`](https://www.nuget.org/packages/DolphinDotNet.GameCube/). Both are pinned to preview `0.1.0-preview.343.1` in `global.json` and `Directory.Build.props`; the `DolphinDotNet.Core` dependency is resolved transitively. No checkout of the compiler/runtime repository is required. All examples target .NET 8 for compilation;
+Run commands from the repository root. These are independent NuGet consumers of [`DolphinDotNet.Sdk`](https://www.nuget.org/packages/DolphinDotNet.Sdk/) and [`DolphinDotNet.GameCube`](https://www.nuget.org/packages/DolphinDotNet.GameCube/). Both are pinned to preview `0.1.0-preview.349.1` in `global.json` and `Directory.Build.props`; the `DolphinDotNet.Core` dependency is resolved transitively. No checkout of the compiler/runtime repository is required. All examples target .NET 8 for compilation;
the GameCube runs generated native code, using only the supported AOT API subset.
| Sample | Demonstrates | Setup / result |
diff --git a/VideoMode/Design/native-cube-aa/README.md b/VideoMode/Design/native-cube-aa/README.md
new file mode 100644
index 0000000..2ff1eb3
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/README.md
@@ -0,0 +1,150 @@
+# Cube antialiasing with full-resolution flat UI
+
+The DOL requests native framebuffer AA while the 3D cube is visible at 240/480
+output. Flat menus, editors and storage browsers use the ordinary full-height
+EFB. The SDK does not support this AA mode at 576 output, so those modes stay
+off. At 480, cube AA uses a 242-line RGB565/Z16 EFB with unchanged 640×480 VI
+output; text attached to the cube still shares that reduced resolution. The
+recorded source requests AA by default on eligible cube pages, with an explicit
+build-property opt-out.
+
+**Dolphin 2503 at MSAA=1 does not emulate GameCube's native three-sample
+coverage.** Its [FramebufferManager](https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/FramebufferManager.cpp#L117-L129)
+uses the user-selected multisample count ([allocation](https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/FramebufferManager.cpp#L153-L163));
+[BP sample-location writes](https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/BPStructs.cpp#L460-L470)
+are stored without applying the GC pattern. Its [copy-filter implementation](https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/TextureCacheBase.cpp#L2133-L2142)
+also collapses seven coefficients into three rows. These screenshots validate
+GX configuration, 242-line/copy-filter output, page switches and mipmapped
+appearance in this emulator. They do not demonstrate actual GC sample
+coverage, its edge-quality benefit, or physical hardware performance.
+
+
+The three environment-reflection banks retain nine mip levels with trilinear
+minification and explicit LOD 0–8. LOD0 remains the authored image. Each chain
+occupies 349632 native bytes: 262464 additional bytes across the three banks.
+Startup generation uses 256-byte source scratch and the existing 64-byte tile;
+it adds no per-frame mip generation, upload or draw. This enables filtered
+reflection minification. These combined changes do not isolate its visual or
+performance contribution.
+
+## Native verification
+
+All thirteen native XFB PNGs are completed normal GameCube DOL output from
+cloud-local Dolphin 2503 / OpenGL / Mesa / Xvfb. Each frame is paused after
+GX_CopyDisp/GX_DrawDone before VIDEO_WaitVSync. Mode bytes 24/25 record field
+rendering and AA. XFBs use BT.601 YUYV422→RGB conversion only. Matching
+`*-window.png` files preserve the complete 640×480 X11 client losslessly.
+Neither series is cropped, resized, composed or generated. The presented
+window additionally reflects Dolphin's VI aspect and deinterlacing.
+
+Emulator MSAA=1, SSAA=false, no postshader and ForceProgressive=false keep
+configuration readback explicit; the coverage-emulation limit above remains. This run uses DSP LLE/JIT with Dolphin's bundled free DSP ROM,
+DSPThread=false, NoAudioOutput and requested LP_NUM_THREADS=2. HLE does not
+recognize this AESND microcode and forces AX; the earlier incomplete screenshot
+attempt is excluded. No original IPL/audio playback is qualified here.
+
+| Capture | XFB pixels | EFB rows | GX AA | VI scan bits |
+| --- | ---: | ---: | --- | ---: |
+| [01-options-cube-blur-off](native/01-options-cube-blur-off-xfb.png) | 640×480 | 242 | On | 0 |
+| [02-options-flat](native/02-options-flat-xfb.png) | 640×480 | 480 | Off | 0 |
+| [03-options-cube-blur-high](native/03-options-cube-blur-high-xfb.png) | 640×480 | 242 | On | 0 |
+| [04-rotating-corner-high](native/04-rotating-corner-high-xfb.png) | 640×480 | 242 | On | 0 |
+| [05-video-480i-high](native/05-video-480i-high-xfb.png) | 640×480 | 242 | On | 0 |
+| [06-video-480p-high](native/06-video-480p-high-xfb.png) | 640×480 | 242 | On | 2 |
+| [07-576p-preview-high](native/07-576p-preview-high-xfb.png) | 640×576 | 480 | Off | 2 |
+| [08-rollback-480p-high](native/08-rollback-480p-high-xfb.png) | 640×480 | 242 | On | 2 |
+| [09-video-576p-high](native/09-video-576p-high-xfb.png) | 640×576 | 480 | Off | 2 |
+| [10-video-576i-high](native/10-video-576i-high-xfb.png) | 640×576 | 480 | Off | 0 |
+| [11-video-240p-high](native/11-video-240p-high-xfb.png) | 320×240 | 240 | On | 1 |
+| [12-safe-480i-high](native/12-safe-480i-high-xfb.png) | 640×480 | 242 | On | 0 |
+| [13-video-detail-crisp](native/13-video-detail-crisp-xfb.png) | 640×480 | 480 | Off | 0 |
+
+The sequence covers blur Off/High, flat Options, a rotating corner, 480i/p,
+576p preview/B rollback, kept 576i/p, 240p, safe 480i and the grouped Video
+editor. Static front captures disable idle motion; the corner temporarily
+restores Subtle and follows the existing icon-hiding transition rule. The
+profile restores Subtle. [Events](native/events.json) retain all source/PNG
+hashes and actual native frame counters. All mode assertions passed.
+
+These images establish the native mode and page policy, not native GC sample
+coverage, an exact mockup match or physical-console appearance. Cube labels/footer can remain softer;
+flat-page readback explicitly shows AA off and a full 480-line EFB. Narrow
+corner reflections may still show stair-stepping or shimmer.
+
+## Comparison and timing limits
+
+`baseline-partial/` retains 6 completed AA-off buffers and window captures:
+[Off](baseline-partial/01-options-cube-blur-off-xfb.png),
+[flat Options](baseline-partial/02-options-flat-xfb.png), and
+[High blur](baseline-partial/03-options-cube-blur-high-xfb.png), the turning corner and Video
+480i/p. Their real frame counters and AA-off/EFB480 readbacks are retained in
+[baseline events](baseline-partial/events.json). The run ended before its later
+modes and profile; it does not establish a complete baseline matrix or a paired
+timing window. The baseline also predates page-aware AA and reflection mips.
+
+The final normal Video cube uses High blur, Subtle motion and Medium UI volume
+with no supplied original IPL. One VSync-enabled window contains 30 warmup
+frames and 96 uninterrupted samples without capture/debugger stops or app
+storage writes. These are Dolphin guest-clock timings, not physical rendering
+cost or active mixer qualification. LLE further limits comparison with HLE.
+
+| Frame ms | Active ms | Prepare ms | Submit ms | Draws / triangles |
+| ---: | ---: | ---: | ---: | ---: |
+| 16.681 | 4.525 | 0.788 | 3.680 | 103 / 45234 |
+
+Active time excludes retrace wait; copy scopes include earlier GPU work. The
+post-window arena is 2289296 of 8388608
+bytes with 0 collections, neither peak nor live usage.
+Original rows are under `profile-high-subtle-medium/`. The complete earlier
+AA-off quiet profile in `prior-context/` uses another SDK/copy setup, HLE,
+progressive forcing and IplEdgeAA; it is not a paired AA or mipmap-cost test.
+
+## Source build and dependency
+
+This candidate uses a published SDK/runtime/compiler package. DOL SHA-256:
+`87a789a2c90deaa4d84af9d5543cf6649e6f6be68130e7e511671ebe0d84a3e2`. Managed API package: `0.1.0-preview.349.1`; fixed native
+SDK/compiler/templates: `09eac4b1040ee8824a37d48c686f7e0f745c6c5f`. The Samples base is
+`4e7cfecb66186af61194341832128b7eb9431abe` plus [samples-runtime.patch](samples-runtime.patch), including
+any additional runtime-source changes. The page-policy/mipmap code and package
+pin are already part of the recorded source commit. This does not establish
+later project defaults or package changes.
+
+The [SDK fix](https://github.com/capz/DolphinDotNet/pull/182) sizes XFB storage
+for the GX library's quantized copy extent. Pinned 480-AA copies write 483 rows
+although VI requests 480. The [GPU guard test](https://github.com/capz/DolphinDotNet/blob/cbf25510df832466f785cf3977b8dbc0078beede/docs/framebuffer-copy-bounds.md)
+measured 3840 bytes overwritten with legacy allocation and zero outside
+protected buffers. Use source/package content containing this fix for AA.
+
+Apply the runtime patch at the recorded Samples base, then compile:
+
+```sh
+dotnet build VideoMode/VideoMode.csproj -c Release -p:DndBuildNative=true -p:DndBuildBackend=Docker -p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true -p:IplHardwareAntialiasing=true -p:IplAaCopyBoundsValidated=true
+```
+
+The Cloud build used managed compilation with `DndBuildNative=false`.
+The compiler came from the named published SDK package. The resulting DLL was bundled with `--bundle` and
+`--sample-controls`, then the unchanged generated Makefile ran with `make -j2`.
+Pinned devkitPPC/libogc2 tools ran locally from /tmp to avoid Docker VFS space
+exhaustion. Generated C and app state were not patched.
+[Provenance](provenance.json) records source/binary hashes, build logs, policy
+and the [capture helper patch](capture-tools.patch), recorded with zero
+context; apply it with `git apply --unidiff-zero capture-tools.patch`.
+Those helper hashes and
+patches are a packaging-time snapshot, not an exact hash of the module loaded
+at process start. `NativeFrames` loaded around 22:59:09 UTC; an error-only
+`failure_snapshot` counter-read guard was added at 23:01:14 UTC while the run
+was active. The successful run did not use that guard, and its normal capture
+and profiling paths were unchanged.
+
+With matching DOL/ELF files and a configured Linux/Xvfb environment:
+
+```sh
+python3 ci/review_performance_overlay.py --dol /path/VideoMode.dol \
+ --sdk /path/to/DolphinDotNet --logs /path/to/fresh-review \
+ --native-boundaries --native-aa-review --aa-expected on \
+ --native-aa-profile --quick-input --profile-seconds 90
+```
+
+Raw DOL/ELF/YUV/PPM and logs remain in task artifacts outside git. No firmware,
+original audio or recording is bundled with this evidence. The full-frame-AA
+prototype is retained outside git as superseded evidence.
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-window.png
new file mode 100644
index 0000000..2093541
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-xfb.png
new file mode 100644
index 0000000..13e7e24
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/01-options-cube-blur-off-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-window.png
new file mode 100644
index 0000000..c52bdd5
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-xfb.png
new file mode 100644
index 0000000..ed6d57e
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/02-options-flat-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-window.png
new file mode 100644
index 0000000..d9a84f1
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-xfb.png
new file mode 100644
index 0000000..7add6b9
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/03-options-cube-blur-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-window.png
new file mode 100644
index 0000000..ce17cb4
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-xfb.png
new file mode 100644
index 0000000..9d7ec57
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/04-rotating-corner-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-window.png
new file mode 100644
index 0000000..3f25eea
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-xfb.png
new file mode 100644
index 0000000..9a66bd9
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/05-video-480i-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-window.png b/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-window.png
new file mode 100644
index 0000000..ef5169d
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-xfb.png b/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-xfb.png
new file mode 100644
index 0000000..77aa1c7
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/baseline-partial/06-video-480p-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/baseline-partial/events.json b/VideoMode/Design/native-cube-aa/baseline-partial/events.json
new file mode 100644
index 0000000..1c842ac
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/baseline-partial/events.json
@@ -0,0 +1,170 @@
+[
+ {
+ "capture": "01-options-cube-blur-off",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 401,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/01-options-cube-blur-off-xfb.yuv",
+ "xfb_sha256": "d21c97bdb0b8a3281d623c47983b4dbf152b74b9c8cd07f047a1ff872c9ea70a",
+ "xfb_png_sha256": "394c1b675d285e4e460fbb0875bbf7be3dbeb67def8e544af23730203abfb667",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/01-options-cube-blur-off.ppm",
+ "window_source_sha256": "c2d7f46836f09394df344093e2cb9cd3369146f39f1fe3a1dfd8ec2753780c49",
+ "window_png_sha256": "eb7010f980788127e03668df234924181e9cb90cef2143383d7609403b1b3ddc",
+ "window_rgb_sha256": "786bbbbd328fefe0acf396e6869df2ddfdff661306af1bbddfe2305fd0e1b60b",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ },
+ {
+ "capture": "02-options-flat",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 419,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/02-options-flat-xfb.yuv",
+ "xfb_sha256": "d235cad0bf36f6caec296c2b771e4d43b1780bf655ab2086d5cd5df197158671",
+ "xfb_png_sha256": "aceb12dc93668a65794f69e350930be2c906312496d7d056e86cb02801715084",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/02-options-flat.ppm",
+ "window_source_sha256": "047376b298ec02b55adf231a92298e29b057d426bee3e08a0a203864d3029df0",
+ "window_png_sha256": "c341b66ca70ae7da8acdb8cbee3a034fcfad887a76299203c79aa8a723b3787f",
+ "window_rgb_sha256": "57b7849794e90949e763aa36a10fe4c3a540be79761ad565451fbf75e90e95c0",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ },
+ {
+ "capture": "03-options-cube-blur-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 527,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/03-options-cube-blur-high-xfb.yuv",
+ "xfb_sha256": "8efe50e8f35c6f6e48ca51f8af8136f98c63b0028539d3bae3232a01f1dd2306",
+ "xfb_png_sha256": "a9a4bfcadb41013bb08b73367ce7957e08bacad98320769601af221101756fa6",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/03-options-cube-blur-high.ppm",
+ "window_source_sha256": "e6ac29e45289dbf0f46bb76ddea6d7584811037a58f91f793706f30797ea1a5e",
+ "window_png_sha256": "65ddbaaf873684ab0a447f18712db953d6b0e3a5fb1a381394337f95a3dd3214",
+ "window_rgb_sha256": "966d5e03a1128c81827707498d49706e5137cfd65934b9d2f46fb6444503ac39",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ },
+ {
+ "capture": "04-rotating-corner-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 689,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/04-rotating-corner-high-xfb.yuv",
+ "xfb_sha256": "341b40b3d2fd01c67a9944060a2b2808e27535b98561dc95da14b705c6faec0a",
+ "xfb_png_sha256": "c558abf50c2ff1331b3ab3a5d49f4cd8135057cbf48c0d92b9e5b3d8454cb808",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/04-rotating-corner-high.ppm",
+ "window_source_sha256": "c1686b5ca3221a4a5b6775d4748b20aa40287702bcef4a992443a90cfe041651",
+ "window_png_sha256": "d45de0b478edfeb78b9f8257cbd311920b83854ddf5f3a0a86ae91fb71194b23",
+ "window_rgb_sha256": "35154c9c75209565d38565870e1acf111c1d36746f96cb967c7f48b7ca7348fd",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ },
+ {
+ "capture": "05-video-480i-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1038,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/05-video-480i-high-xfb.yuv",
+ "xfb_sha256": "3b48c9a224f00bf16079fd93f0b586edc81f5d6406ad37a9f0223d4319b4953a",
+ "xfb_png_sha256": "1b12cf117b6b77a62d6219283a2fb8b8b6b10b006bf1cb0b05d73018bdaa7752",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/05-video-480i-high.ppm",
+ "window_source_sha256": "82508db0f4a02947ed37fff8f41817e90a9fcdac317f096479ae28f514071b53",
+ "window_png_sha256": "16f51acf844bcf069ffebec3ce00a74af2aeaf9bd8e95ca162012778dded5dc8",
+ "window_rgb_sha256": "640b044c249e2745a1e4d57dcc43de7a32f43b87badfaf6a968755234cccb25a",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ },
+ {
+ "capture": "06-video-480p-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1156,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 2,
+ "vi_scan_bits": 2,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/off-review/06-video-480p-high-xfb.yuv",
+ "xfb_sha256": "9e03ddbf9d86a6efc5f652ad52f618492a86239b166e8bbb57e89e5cb29c64b3",
+ "xfb_png_sha256": "52a227a6c8578b269a3630d8603be5f3c25c115788b2fd794c21a008ffcafb61",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/off-review/06-video-480p-high.ppm",
+ "window_source_sha256": "8b837c29ddd93120a2d94ae4592469f71ca3a171cbc7bd2a90cca3b8c8389b73",
+ "window_png_sha256": "8dfc00f1bfeada615551e8edd025cd47555c7372218082785f356296dcadd961",
+ "window_rgb_sha256": "42afe3682bebf95e1d5a8f0779c6a4ab6268c6c73b44847b3b98df629202290b",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition",
+ "status": "Completed baseline capture; overall run ended before remaining modes/profile"
+ }
+]
diff --git a/VideoMode/Design/native-cube-aa/capture-tool-snapshot.json b/VideoMode/Design/native-cube-aa/capture-tool-snapshot.json
new file mode 100644
index 0000000..02324a8
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/capture-tool-snapshot.json
@@ -0,0 +1,10 @@
+{
+ "base": "4e7cfecb66186af61194341832128b7eb9431abe",
+ "packaging_head": "61ad31690029802c0c646605d785ea3ae8bcf5d1",
+ "files_sha256": {
+ "ci/review_performance_overlay.py": "8afec803ba1e44c5c98ebf0123f4485578778e5df05fa8418502442c4138b39b",
+ "ci/native_frame_boundary.py": "880ce90aa4f8b41c1264a9f6d4af0a93965d4ea0110a2045fb56766ce974b0da",
+ "ci/profile_interactive_rim.py": "d3d82385fb2a8b56a8fa9a82a8122c29f075349fb16f4733c05d51427f65b379",
+ "ci/decode_native_xfb.py": "1a560cbb4ba252a8ca05d335b619161eb54e54058cc3a9d4755b55260aa6358a"
+ }
+}
diff --git a/VideoMode/Design/native-cube-aa/capture-tools.patch b/VideoMode/Design/native-cube-aa/capture-tools.patch
new file mode 100644
index 0000000..9bb4abc
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/capture-tools.patch
@@ -0,0 +1,51 @@
+diff --git a/ci/native_frame_boundary.py b/ci/native_frame_boundary.py
+index 194eae8..d09ba78 100644
+--- a/ci/native_frame_boundary.py
++++ b/ci/native_frame_boundary.py
+@@ -112,2 +112,4 @@ class NativeFrames:
+- # Never interrupt the guest inside a GX FIFO primitive. Run freely,
+- # then install a breakpoint at the completed presentation boundary.
++ # Run without a breakpoint, then consume the rearm acceptance and
++ # actual stop together. Another Continue after rearming could resume
++ # past an already queued stop and leave later reads unsynchronized.
++ before=self.count
+@@ -117,4 +119,2 @@ class NativeFrames:
+- assert self.request(self.connection,f'Z0,{self.address:x},4')=='OK'
+- reply=self.request(self.connection,'c',45)
+- if self.parse_stop_pc(reply)!=self.address:raise RuntimeError('Unexpected native presentation stop: '+reply)
+- self.count=self.read_serial()
++ self.pause_at_boundary()
++ if self.count<=before:raise RuntimeError('Native presentation counter did not advance')
+@@ -122,0 +123,17 @@ class NativeFrames:
++ def pause_at_boundary(self):
++ """Rearm after an uninterrupted run, consuming both OK and its stop.
++
++ The guest is already running. Do not issue another Continue or use the
++ generic request helper, which discards unsolicited stop notifications.
++ """
++ self.send(self.connection,f'Z0,{self.address:x},4')
++ accepted=stopped=False;deadline=time.monotonic()+45
++ while not(accepted and stopped):
++ reply=self.reply(self.connection,deadline)
++ if reply=='OK':accepted=True
++ elif reply.startswith('T05'):
++ if self.parse_stop_pc(reply)!=self.address:raise RuntimeError('Unexpected native presentation stop: '+reply)
++ stopped=True
++ elif reply!='':raise RuntimeError('Unexpected boundary breakpoint reply: '+reply)
++ self.count=self.read_serial()
++
+@@ -182 +199,5 @@ class NativeFrames:
+- result={'stop':stop,'pc':symbol(self.parse_stop_pc(stop)),'stack':[]}
++ result={'stop':stop,'pc':symbol(self.parse_stop_pc(stop)),'stack':[],
++ 'last_boundary_serial':self.count}
++ try:result['stopped_frame_serial']=self.read_serial()
++ except Exception as error:
++ result['counter_error']=str(error);return result
+diff --git a/ci/profile_interactive_rim.py b/ci/profile_interactive_rim.py
+index 5472ec6..86b68cc 100644
+--- a/ci/profile_interactive_rim.py
++++ b/ci/profile_interactive_rim.py
+@@ -38,2 +38 @@ def collect(frames, dol, root, press, release, observation_seconds=30, expected_
+- assert frames.request(conn, f'Z0,{frames.address:x},4') == 'OK'
+- frames.request(conn, 'c', 45)
++ frames.pause_at_boundary()
diff --git a/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-window.png b/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-window.png
new file mode 100644
index 0000000..b890605
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-xfb.png b/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-xfb.png
new file mode 100644
index 0000000..6787745
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/01-options-cube-blur-off-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/02-options-flat-window.png b/VideoMode/Design/native-cube-aa/native/02-options-flat-window.png
new file mode 100644
index 0000000..c52bdd5
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/02-options-flat-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/02-options-flat-xfb.png b/VideoMode/Design/native-cube-aa/native/02-options-flat-xfb.png
new file mode 100644
index 0000000..ed6d57e
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/02-options-flat-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-window.png b/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-window.png
new file mode 100644
index 0000000..2b7b0d2
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-xfb.png b/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-xfb.png
new file mode 100644
index 0000000..897f6e6
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/03-options-cube-blur-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-window.png b/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-window.png
new file mode 100644
index 0000000..f0933f8
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-xfb.png b/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-xfb.png
new file mode 100644
index 0000000..ea8dc65
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/04-rotating-corner-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/05-video-480i-high-window.png b/VideoMode/Design/native-cube-aa/native/05-video-480i-high-window.png
new file mode 100644
index 0000000..c329673
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/05-video-480i-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/05-video-480i-high-xfb.png b/VideoMode/Design/native-cube-aa/native/05-video-480i-high-xfb.png
new file mode 100644
index 0000000..acb4aca
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/05-video-480i-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/06-video-480p-high-window.png b/VideoMode/Design/native-cube-aa/native/06-video-480p-high-window.png
new file mode 100644
index 0000000..2af6579
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/06-video-480p-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/06-video-480p-high-xfb.png b/VideoMode/Design/native-cube-aa/native/06-video-480p-high-xfb.png
new file mode 100644
index 0000000..a8de65b
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/06-video-480p-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-window.png b/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-window.png
new file mode 100644
index 0000000..8876c8e
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-xfb.png b/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-xfb.png
new file mode 100644
index 0000000..422752b
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/07-576p-preview-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-window.png b/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-window.png
new file mode 100644
index 0000000..f93a74d
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-xfb.png b/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-xfb.png
new file mode 100644
index 0000000..9fb5024
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/08-rollback-480p-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/09-video-576p-high-window.png b/VideoMode/Design/native-cube-aa/native/09-video-576p-high-window.png
new file mode 100644
index 0000000..9a68978
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/09-video-576p-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/09-video-576p-high-xfb.png b/VideoMode/Design/native-cube-aa/native/09-video-576p-high-xfb.png
new file mode 100644
index 0000000..eeb4427
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/09-video-576p-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/10-video-576i-high-window.png b/VideoMode/Design/native-cube-aa/native/10-video-576i-high-window.png
new file mode 100644
index 0000000..05091d8
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/10-video-576i-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/10-video-576i-high-xfb.png b/VideoMode/Design/native-cube-aa/native/10-video-576i-high-xfb.png
new file mode 100644
index 0000000..879640d
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/10-video-576i-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/11-video-240p-high-window.png b/VideoMode/Design/native-cube-aa/native/11-video-240p-high-window.png
new file mode 100644
index 0000000..f3baf51
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/11-video-240p-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/11-video-240p-high-xfb.png b/VideoMode/Design/native-cube-aa/native/11-video-240p-high-xfb.png
new file mode 100644
index 0000000..aecc24b
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/11-video-240p-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-window.png b/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-window.png
new file mode 100644
index 0000000..8f3a3af
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-xfb.png b/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-xfb.png
new file mode 100644
index 0000000..acb4aca
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/12-safe-480i-high-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-window.png b/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-window.png
new file mode 100644
index 0000000..1d67b2e
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-window.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-xfb.png b/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-xfb.png
new file mode 100644
index 0000000..6bb1fa3
Binary files /dev/null and b/VideoMode/Design/native-cube-aa/native/13-video-detail-crisp-xfb.png differ
diff --git a/VideoMode/Design/native-cube-aa/native/events.json b/VideoMode/Design/native-cube-aa/native/events.json
new file mode 100644
index 0000000..0dbedf6
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/native/events.json
@@ -0,0 +1,353 @@
+[
+ {
+ "capture": "01-options-cube-blur-off",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 405,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/01-options-cube-blur-off-xfb.yuv",
+ "xfb_sha256": "785994b7de62b6c72ea900ec190055c63658d314fb2cf33e5b5c5d648c994195",
+ "xfb_png_sha256": "a083294c7665a00c4258597395755a9a2f161321a57c47022b243866c1cd27ca",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/01-options-cube-blur-off.ppm",
+ "window_source_sha256": "c00491dad0d52541de5ca1e854c3ae4155838f44e23fb394b4091fc1d879387c",
+ "window_png_sha256": "f22c3463094c5cf15fd55f91016c32ce1ab71d13dd5be3f3396cdf0252ca579b",
+ "window_rgb_sha256": "597f070f918894525328951cc23313db5647d1a8c0c3a6eb3b8c01c234fd7a5f",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "02-options-flat",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 424,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/02-options-flat-xfb.yuv",
+ "xfb_sha256": "d235cad0bf36f6caec296c2b771e4d43b1780bf655ab2086d5cd5df197158671",
+ "xfb_png_sha256": "aceb12dc93668a65794f69e350930be2c906312496d7d056e86cb02801715084",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/02-options-flat.ppm",
+ "window_source_sha256": "047376b298ec02b55adf231a92298e29b057d426bee3e08a0a203864d3029df0",
+ "window_png_sha256": "c341b66ca70ae7da8acdb8cbee3a034fcfad887a76299203c79aa8a723b3787f",
+ "window_rgb_sha256": "57b7849794e90949e763aa36a10fe4c3a540be79761ad565451fbf75e90e95c0",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "03-options-cube-blur-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 535,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/03-options-cube-blur-high-xfb.yuv",
+ "xfb_sha256": "26f9a39597ed87f368d3eea794349f8723cd4e20c5cd51968075dc7c7980e19d",
+ "xfb_png_sha256": "04f8f7a1190b5893008399279c8f8c487fa17d877063b245fbdf50fe498d9f40",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/03-options-cube-blur-high.ppm",
+ "window_source_sha256": "592a635a89a5f7f2fecec5996bacfed54bcbd70806ad89c604222b7a3c07cf5d",
+ "window_png_sha256": "7b1585ef4677440e71aef3b10c5332f924015ac5af7589de2369a4cbb0cfb55a",
+ "window_rgb_sha256": "61a653d4d7216b88a25cfa450112cda4a3683bf89d9bcd9089be9e1030336af1",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "04-rotating-corner-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 701,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/04-rotating-corner-high-xfb.yuv",
+ "xfb_sha256": "b208aea749eee80b996b1a40e125d021e7dc9e1a04a3170a3efd5e65cebf2ad7",
+ "xfb_png_sha256": "951674d8a7daf37b1d355b093de7850b87e49fc95863b46ba2a19fba1643254b",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/04-rotating-corner-high.ppm",
+ "window_source_sha256": "8133cc0bfa6d4e8e41ee7be30238527f0e2c58e5cfda861fa4945da44cc8c21f",
+ "window_png_sha256": "7f0957194988b20473afdf6b5a8078c5e0167c363f95163c5e685c492e622a35",
+ "window_rgb_sha256": "73378de53b70f1931c8ec2a4fe08f540879c483d8baf5b81acf044e62d642b03",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "05-video-480i-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1044,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/05-video-480i-high-xfb.yuv",
+ "xfb_sha256": "a98f0ca5243e050ae20e70596020d826afb9656cd9709697c01db44ea07b8654",
+ "xfb_png_sha256": "0b8f7c9afec396493019bbbf7b0b033030339d553d5f0cadee3fdb238a175248",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/05-video-480i-high.ppm",
+ "window_source_sha256": "48bedba4f14156d5a29b8cdc4c375e596dff29c149c32f0a86eda3a285dadcd1",
+ "window_png_sha256": "6a39c5825b8dc30bf7cd1f974feb3b1290c4a59fab4b2bd5a9fb8c47e445e9d7",
+ "window_rgb_sha256": "bf4ffd0990860c24e3ce11149f2c21a0b8c477637e882f820d7e35845bfbc892",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "06-video-480p-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1159,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 2,
+ "vi_scan_bits": 2,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/06-video-480p-high-xfb.yuv",
+ "xfb_sha256": "37c40ba8b7831e1bf09a9b270b668fde8beec6755c4db87332eaf33215983089",
+ "xfb_png_sha256": "b6aa294a3774749a3bc51b37879c5b266d0add683a445761ca5e3b414cdc749e",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/06-video-480p-high.ppm",
+ "window_source_sha256": "245721856e5f37814e0d6b3da9bfcb05fd145fc0640648a4f8cc1deeb651460a",
+ "window_png_sha256": "9aabeeaa424cc8483a93d55c7e50df69201dc3a40a1aac8c299f022fa643cc3f",
+ "window_rgb_sha256": "770c5d121c37197fe40c5d7036a6495bed9efa5bed1a3e208d987ad2d81c712b",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "07-576p-preview-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1236,
+ "xfb": {
+ "width": 640,
+ "height": 576,
+ "efb_height": 480,
+ "vi_tv_mode": 6,
+ "vi_scan_bits": 2,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/07-576p-preview-high-xfb.yuv",
+ "xfb_sha256": "122db5972f1de5a0d7ab897ca1ebf59bca99874843cde87b459b09ba3db6641a",
+ "xfb_png_sha256": "a05a667486eee673b946a11b0167ff1302b93b133c1c52e107cb93b841de65c3",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/07-576p-preview-high.ppm",
+ "window_source_sha256": "ce31c8e1add1efd2f8ce532573a26121a565cf119f025246a6ca011f83c7191d",
+ "window_png_sha256": "f7c0004cde2916bb1c86d63e853b70bd6c9eb791f1dd098f7f6a786246529785",
+ "window_rgb_sha256": "2b628afd3fd38a82a5a61c30767c72bca510d56d5589519906a696add07cf9df",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "08-rollback-480p-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1256,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 22,
+ "vi_scan_bits": 2,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/08-rollback-480p-high-xfb.yuv",
+ "xfb_sha256": "a4500b44e1c64236bc1d3585e241eca0a27ae1d9076660cf7ce40633f814dd14",
+ "xfb_png_sha256": "72ded297ec8a73bf0a7dc48c7943cd8271d63963c2a52e4ad550565da36490de",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/08-rollback-480p-high.ppm",
+ "window_source_sha256": "2aee0db3ecae10b53d0045fe0654c6fabe396437be100cf4391cb6e05e3919a4",
+ "window_png_sha256": "fc64f3c899a6e14665a221c3852b175eff3da61cd37dec25b593505168cc081a",
+ "window_rgb_sha256": "171053b89785a6f367240a5363473664de2b07d25d60717a37c3c7c2becca287",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "09-video-576p-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1351,
+ "xfb": {
+ "width": 640,
+ "height": 576,
+ "efb_height": 480,
+ "vi_tv_mode": 6,
+ "vi_scan_bits": 2,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/09-video-576p-high-xfb.yuv",
+ "xfb_sha256": "61ccba6a09706bb4d15ea7489f57cefaab0976c7bfc0e5ae356cddba786ce142",
+ "xfb_png_sha256": "a504607eb1e2fd69a0fac457670704588e02f13ad4043a668d9381bbd0f75df4",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/09-video-576p-high.ppm",
+ "window_source_sha256": "61b817ceacbf8422af278c81bd1b5cdbdc2a2a5eeea9c7a1787e839b836fd91b",
+ "window_png_sha256": "babea9d0d0f1112accb3654aa1b64014e6c6e95ff13e48ce3c059f97aba0eb96",
+ "window_rgb_sha256": "6150d6cd8730114165939bb8e6168db856ce7b698387a6cb82645816db30eecb",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "10-video-576i-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1463,
+ "xfb": {
+ "width": 640,
+ "height": 576,
+ "efb_height": 480,
+ "vi_tv_mode": 4,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/10-video-576i-high-xfb.yuv",
+ "xfb_sha256": "779fa28bd87cd7f186db44405075f2d3dfeefc25c2cd7197d858f8055d65e382",
+ "xfb_png_sha256": "dc1b49ad2abd173fcf314c635959244439d2704ed1ae12c8468b005b61110208",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/10-video-576i-high.ppm",
+ "window_source_sha256": "578c60d45e81ddcc510d692b711ffd8fd8b47874b3972fb0cdc1efa7a4624e02",
+ "window_png_sha256": "1f79479b54fbe145aaf87b59bed299950fab6d3212b5d4b5773c79e05f6f63d3",
+ "window_rgb_sha256": "41db727061eb66136facba7f0248c3a866a9e06d5e753573122500c8df2e21d7",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "11-video-240p-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1618,
+ "xfb": {
+ "width": 320,
+ "height": 240,
+ "efb_height": 240,
+ "vi_tv_mode": 21,
+ "vi_scan_bits": 1,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/11-video-240p-high-xfb.yuv",
+ "xfb_sha256": "a38fed9428b17ae0dec52e313a580232ef9962c225b73ae99feeade22e5b8f21",
+ "xfb_png_sha256": "b3d68d59c99b262f1b2d53402fa7f0135dbad1086e07e9b7918a2933661d129d",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/11-video-240p-high.ppm",
+ "window_source_sha256": "c32065ee069d7dc1bd3f72bced7d21c87ecce9a60ce3cd30891af1149a145dd4",
+ "window_png_sha256": "9f60218d6529bb2945db40579dd27205b2086710dcf7be90ceb4f5d9b7460533",
+ "window_rgb_sha256": "4a216650a701b47c80ac858e1c3616dfa40d338e69540ecf9ddbfa5e94def901",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "12-safe-480i-high",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1664,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 242,
+ "vi_tv_mode": 20,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": true,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/12-safe-480i-high-xfb.yuv",
+ "xfb_sha256": "a98f0ca5243e050ae20e70596020d826afb9656cd9709697c01db44ea07b8654",
+ "xfb_png_sha256": "0b8f7c9afec396493019bbbf7b0b033030339d553d5f0cadee3fdb238a175248",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/12-safe-480i-high.ppm",
+ "window_source_sha256": "203ce685f142675b6a69722f580831c5d230cd35d85e1d79d955f892802ce65c",
+ "window_png_sha256": "33393305d2b1e68d0c0a2c7ff4f333cd12940dad847edbf4d7dfe848627d8288",
+ "window_rgb_sha256": "824675ac889732f2b94d8481e05becb66405e0355894d61dc8b03a567409322e",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ },
+ {
+ "capture": "13-video-detail-crisp",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 1684,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 20,
+ "vi_scan_bits": 0,
+ "field_rendering": false,
+ "hardware_aa": false,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/13-video-detail-crisp-xfb.yuv",
+ "xfb_sha256": "0a042981fa349e1a3459cc8ae12cf2709fffd16cbf80fac4a848f82739bcef73",
+ "xfb_png_sha256": "a3d8b4ad0126856cb9fab7c3a6b46828b52d90a2c7063ce2a8b831853e716247",
+ "xfb_conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window_source": "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/13-video-detail-crisp.ppm",
+ "window_source_sha256": "d39bacb5029e4a339dd23bddb6a1f4f7f58f7d2d81d59d44d9becee191f31911",
+ "window_png_sha256": "6ee96d0e628c95add17b7fc46df6e0be7edf72fc518b54f163345d6f81ee1f6c",
+ "window_rgb_sha256": "2fdd426a60cbe6d0f537dc2bd89bea45a4df583f0b7c39219d994e3a71ff553d",
+ "window_conversion": "P6 RGB8 to PNG losslessly; complete 640x480 client; no crop/resize/composition"
+ }
+]
diff --git a/VideoMode/Design/native-cube-aa/prior-context/frames.csv b/VideoMode/Design/native-cube-aa/prior-context/frames.csv
new file mode 100644
index 0000000..f192c05
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/prior-context/frames.csv
@@ -0,0 +1,97 @@
+frame_us,prepare_us,submit_us,end_us,gpu_wait_us,retrace_us,capture_us,blur_us,draws,triangles,begin_copy_us,gate_us,width,height,scan,face,editing
+16681,782,3677,12190,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12169,2478,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2478,151,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12186,4,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16682,781,3676,12191,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
+16682,780,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16678,783,3677,12186,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3676,12189,8,12168,2481,149,103,45234,3,0,640,480,1,1,0
+16679,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12189,8,12168,2480,153,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12169,2478,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12190,8,12169,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2480,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2479,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12187,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12190,4,12172,2479,149,103,45234,3,0,640,480,1,1,0
+16683,780,3678,12190,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16678,782,3677,12187,8,12167,2480,152,103,45234,3,0,640,480,1,1,0
+16683,781,3674,12191,8,12170,2479,150,103,45234,3,0,640,480,1,1,0
+16679,781,3678,12186,8,12166,2480,149,103,45234,3,0,640,480,1,1,0
+16684,781,3676,12189,8,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16679,783,3674,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16683,780,3677,12180,8,12160,2481,149,103,45234,3,0,640,480,1,1,0
+16678,782,3676,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16684,782,3675,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16678,781,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12189,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16679,783,3676,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3677,12188,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,4,12171,2480,149,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3677,12188,8,12167,2480,152,103,45234,3,0,640,480,1,1,0
+16678,780,3676,12188,8,12168,2478,151,103,45234,3,0,640,480,1,1,0
+16683,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16679,781,3675,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16680,780,3677,12188,8,12168,2478,150,103,45234,3,0,640,480,1,1,0
+16679,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,4,12172,2479,152,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12169,2480,152,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2481,149,103,45234,3,0,640,480,1,1,0
+16683,780,3676,12191,8,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16678,782,3677,12187,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16683,781,3677,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16679,781,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16684,781,3677,12188,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12188,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16681,780,3674,12191,8,12170,2479,150,103,45234,3,0,640,480,1,1,0
+16678,781,3678,12186,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3678,12187,8,12167,2481,150,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12189,4,12171,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12186,8,12166,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3676,12189,8,12169,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16684,781,3677,12187,8,12167,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16678,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,149,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2477,151,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,4,12170,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12187,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16681,780,3676,12190,8,12169,2478,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12180,8,12159,2481,149,103,45234,3,0,640,480,1,1,0
+16682,782,3676,12190,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16680,781,3676,12188,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
diff --git a/VideoMode/Design/native-cube-aa/prior-context/profile.json b/VideoMode/Design/native-cube-aa/prior-context/profile.json
new file mode 100644
index 0000000..a0e9d32
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/prior-context/profile.json
@@ -0,0 +1,31 @@
+{
+ "scope": "Dolphin guest clock; normal interactive Video face, idle motion enabled; not hardware",
+ "samples": 96,
+ "warmup": 30,
+ "vsync": true,
+ "interrupted_during_sampling": false,
+ "observation_seconds": 90,
+ "dol_sha256": "8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c",
+ "mean_us": {
+ "frame_us": 16680.84375,
+ "prepare_us": 781.4166666666666,
+ "submit_us": 3676.4166666666665,
+ "end_us": 12188.0625,
+ "gpu_wait_us": 7.75,
+ "retrace_us": 12167.625,
+ "capture_us": 2479.7916666666665,
+ "blur_us": 150.20833333333334,
+ "draws": 103,
+ "triangles": 45234,
+ "begin_copy_us": 3,
+ "gate_us": 0
+ },
+ "frame_p95_us": 16683,
+ "active_mean_us": 4513.21875,
+ "managed_heap": {
+ "capacity_bytes": 8388608,
+ "arena_used_bytes": 2254320,
+ "collections": 0,
+ "scope": "post-window arena; not peak or live bytes"
+ }
+}
diff --git a/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/frames.csv b/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/frames.csv
new file mode 100644
index 0000000..ac5f19d
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/frames.csv
@@ -0,0 +1,97 @@
+frame_us,prepare_us,submit_us,end_us,gpu_wait_us,retrace_us,capture_us,blur_us,draws,triangles,begin_copy_us,gate_us,width,height,scan,face,editing
+16683,796,3687,12165,9,12145,2478,151,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,9,12167,2479,151,103,45234,3,0,640,242,1,1,0
+16681,810,3676,12160,9,12139,2479,153,103,45234,3,0,640,242,1,1,0
+16681,791,3682,12173,8,12152,2478,151,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,8,12168,2478,150,103,45234,3,0,640,242,1,1,0
+16681,806,3676,12164,9,12143,2478,151,103,45234,3,0,640,242,1,1,0
+16681,779,3683,12182,5,12165,2479,151,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,9,12167,2480,150,103,45234,3,0,640,242,1,1,0
+16681,793,3676,12177,8,12156,2480,150,103,45234,3,0,640,242,1,1,0
+16679,779,3679,12186,8,12165,2479,149,103,45234,3,0,640,242,1,1,0
+16684,781,3676,12188,8,12168,2478,150,103,45234,3,0,640,242,1,1,0
+16679,791,3678,12177,9,12156,2479,150,103,45234,3,0,640,242,1,1,0
+16683,779,3686,12179,8,12159,2480,150,103,45234,3,0,640,242,1,1,0
+16678,781,3676,12187,9,12167,2464,150,103,45234,3,0,640,242,1,1,0
+16681,786,3680,12179,9,12157,2481,149,103,45234,3,0,640,242,1,1,0
+16681,780,3681,12185,9,12165,2479,150,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12187,8,12167,2468,150,103,45234,3,0,640,242,1,1,0
+16681,809,3681,12156,8,12135,2480,150,103,45234,3,0,640,242,1,1,0
+16681,781,3679,12184,8,12164,2480,154,103,45234,3,0,640,242,1,1,0
+16681,781,3680,12184,8,12164,2480,150,103,45234,3,0,640,242,1,1,0
+16681,809,3683,12153,9,12133,2480,151,103,45234,3,0,640,242,1,1,0
+16681,780,3675,12189,8,12168,2479,151,103,45234,3,0,640,242,1,1,0
+16681,810,3675,12159,5,12142,2479,150,103,45234,3,0,640,242,1,1,0
+16681,804,3685,12157,9,12136,2477,150,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,8,12167,2480,150,103,45234,3,0,640,242,1,1,0
+16684,809,3676,12160,9,12139,2479,150,103,45234,3,0,640,242,1,1,0
+16679,782,3685,12164,9,12143,2478,151,103,45234,3,0,640,242,1,1,0
+16683,780,3676,12189,8,12168,2479,151,103,45234,3,0,640,242,1,1,0
+16678,807,3676,12161,9,12141,2479,150,103,45234,3,0,640,242,1,1,0
+16683,781,3680,12187,9,12164,2479,150,103,45234,3,0,640,242,1,1,0
+16679,782,3676,12181,8,12160,2480,150,103,45234,3,0,640,242,1,1,0
+16681,802,3704,12138,9,12118,2478,151,103,45234,3,0,640,242,1,1,0
+16681,781,3684,12180,8,12159,2479,151,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,8,12167,2480,150,103,45234,3,0,640,242,1,1,0
+16681,796,3704,12144,8,12123,2477,150,103,45234,3,0,640,242,1,1,0
+16681,781,3682,12183,8,12162,2480,150,103,45234,3,0,640,242,1,1,0
+16682,780,3676,12189,9,12167,2456,149,103,45234,3,0,640,242,1,1,0
+16677,786,3681,12178,9,12157,2478,149,103,45234,3,0,640,242,1,1,0
+16683,781,3681,12183,5,12166,2480,156,103,45234,3,0,640,242,1,1,0
+16679,781,3676,12188,9,12167,2459,171,103,45234,3,0,640,242,1,1,0
+16684,808,3684,12152,9,12132,2479,151,103,45234,3,0,640,242,1,1,0
+16679,782,3676,12188,9,12167,2480,149,103,45234,3,0,640,242,1,1,0
+16681,790,3677,12178,9,12158,2480,152,103,45234,3,0,640,242,1,1,0
+16681,808,3681,12156,9,12136,2478,151,103,45234,3,0,640,242,1,1,0
+16681,782,3677,12188,9,12167,2479,150,103,45234,3,0,640,242,1,1,0
+16681,785,3676,12184,9,12164,2480,151,103,45234,3,0,640,242,1,1,0
+16681,780,3681,12159,9,12139,2479,151,103,45234,3,0,640,242,1,1,0
+16681,781,3675,12189,8,12168,2480,149,103,45234,3,0,640,242,1,1,0
+16681,795,3675,12174,8,12153,2479,151,103,45234,3,0,640,242,1,1,0
+16681,779,3686,12179,9,12159,2478,152,103,45234,3,0,640,242,1,1,0
+16681,782,3676,12188,8,12167,2479,151,103,45234,3,0,640,242,1,1,0
+16681,800,3674,12170,8,12149,2480,150,103,45234,3,0,640,242,1,1,0
+16681,780,3684,12181,8,12161,2479,150,103,45234,3,0,640,242,1,1,0
+16681,781,3675,12189,8,12168,2479,150,103,45234,3,0,640,242,1,1,0
+16679,803,3703,12138,5,12121,2480,150,103,45234,3,0,640,242,1,1,0
+16681,779,3682,12184,9,12163,2480,149,103,45234,3,0,640,242,1,1,0
+16679,781,3676,12189,8,12168,2451,150,103,45234,3,0,640,242,1,1,0
+16683,798,3683,12165,9,12144,2479,150,103,45234,3,0,640,242,1,1,0
+16678,780,3688,12177,9,12156,2481,151,103,45234,3,0,640,242,1,1,0
+16683,781,3676,12188,9,12167,2455,175,103,45234,3,0,640,242,1,1,0
+16679,794,3679,12171,8,12150,2480,150,103,45234,3,0,640,242,1,1,0
+16684,780,3682,12182,8,12162,2487,150,103,45234,3,0,640,242,1,1,0
+16679,782,3696,12167,9,12146,2480,149,103,45234,3,0,640,242,1,1,0
+16683,809,3682,12155,9,12134,2480,150,103,45234,3,0,640,242,1,1,0
+16678,781,3676,12188,9,12168,2479,150,103,45234,3,0,640,242,1,1,0
+16683,797,3675,12175,8,12152,2478,150,103,45234,3,0,640,242,1,1,0
+16679,809,3685,12150,9,12129,2480,150,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12187,9,12167,2480,150,103,45234,3,0,640,242,1,1,0
+16681,792,3676,12178,8,12157,2479,151,103,45234,3,0,640,242,1,1,0
+16681,781,3680,12183,8,12162,2479,151,103,45234,3,0,640,242,1,1,0
+16681,782,3676,12188,5,12171,2477,150,103,45234,3,0,640,242,1,1,0
+16681,810,3676,12160,9,12138,2479,150,103,45234,3,0,640,242,1,1,0
+16681,781,3684,12180,8,12160,2480,150,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12187,9,12167,2480,151,103,45234,3,0,640,242,1,1,0
+16681,809,3684,12152,9,12131,2478,150,103,45234,3,0,640,242,1,1,0
+16681,781,3681,12182,8,12161,2480,150,103,45234,3,0,640,242,1,1,0
+16681,780,3676,12188,8,12168,2478,150,103,45234,3,0,640,242,1,1,0
+16681,802,3681,12161,9,12140,2479,150,103,45234,3,0,640,242,1,1,0
+16681,780,3685,12179,9,12158,2480,150,103,45234,3,0,640,242,1,1,0
+16682,781,3676,12189,8,12168,2468,150,103,45234,3,0,640,242,1,1,0
+16681,798,3683,12164,9,12143,2478,150,103,45234,3,0,640,242,1,1,0
+16681,781,3681,12183,9,12163,2480,154,103,45234,3,0,640,242,1,1,0
+16681,781,3677,12186,8,12166,2456,150,103,45234,3,0,640,242,1,1,0
+16681,795,3685,12166,8,12145,2478,150,103,45234,3,0,640,242,1,1,0
+16681,780,3676,12188,9,12168,2480,150,103,45234,3,0,640,242,1,1,0
+16681,803,3673,12168,9,12148,2479,151,103,45234,3,0,640,242,1,1,0
+16681,790,3684,12172,5,12155,2477,152,103,45234,3,0,640,242,1,1,0
+16679,781,3675,12188,9,12167,2479,150,103,45234,3,0,640,242,1,1,0
+16685,798,3676,12173,9,12151,2478,151,103,45234,3,0,640,242,1,1,0
+16677,780,3683,12177,9,12156,2478,152,103,45234,3,0,640,242,1,1,0
+16681,781,3677,12181,8,12160,2479,151,103,45234,3,0,640,242,1,1,0
+16681,794,3676,12175,8,12155,2480,150,103,45234,3,0,640,242,1,1,0
+16681,779,3682,12183,8,12162,2479,151,103,45234,3,0,640,242,1,1,0
+16681,781,3676,12188,8,12168,2480,150,103,45234,3,0,640,242,1,1,0
+16681,790,3677,12178,8,12158,2479,150,103,45234,3,0,640,242,1,1,0
+16681,780,3682,12185,9,12164,2479,150,103,45234,3,0,640,242,1,1,0
diff --git a/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/profile.json b/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/profile.json
new file mode 100644
index 0000000..c7e84c8
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/profile-high-subtle-medium/profile.json
@@ -0,0 +1,31 @@
+{
+ "scope": "Dolphin guest clock; normal interactive Video face, idle motion enabled; not hardware",
+ "samples": 96,
+ "warmup": 30,
+ "vsync": true,
+ "interrupted_during_sampling": false,
+ "observation_seconds": 90,
+ "dol_sha256": "87a789a2c90deaa4d84af9d5543cf6649e6f6be68130e7e511671ebe0d84a3e2",
+ "mean_us": {
+ "frame_us": 16680.916666666668,
+ "prepare_us": 788.34375,
+ "submit_us": 3679.96875,
+ "end_us": 12176.135416666666,
+ "gpu_wait_us": 8.322916666666666,
+ "retrace_us": 12155.635416666666,
+ "capture_us": 2477.5833333333335,
+ "blur_us": 150.91666666666666,
+ "draws": 103,
+ "triangles": 45234,
+ "begin_copy_us": 3,
+ "gate_us": 0
+ },
+ "frame_p95_us": 16684,
+ "active_mean_us": 4525.28125,
+ "managed_heap": {
+ "capacity_bytes": 8388608,
+ "arena_used_bytes": 2289296,
+ "collections": 0,
+ "scope": "post-window arena; not peak or live bytes"
+ }
+}
diff --git a/VideoMode/Design/native-cube-aa/provenance.json b/VideoMode/Design/native-cube-aa/provenance.json
new file mode 100644
index 0000000..6a32c41
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/provenance.json
@@ -0,0 +1,230 @@
+{
+ "samples_base_commit": "4e7cfecb66186af61194341832128b7eb9431abe",
+ "samples_runtime_patch": "samples-runtime.patch",
+ "runtime_worktree_files_sha256": {},
+ "samples_base_files_sha256": {
+ "Common/SampleDownload.cs": "f5dda0ae13da88975448d0e7c096416f4075ee38cf3cec9caaad72136d9803dd",
+ "Common/SampleFeedback.cs": "75fd89cc3177818a04487ec58dbd48c8314b8449528439ba2a0364a3515ec530",
+ "Common/SampleInput.cs": "d9e2d613be538e59f7d18e18bf20a565a8971e6fb68901f5f7a8ef59c4409680",
+ "Common/SampleRecord.cs": "f191f03179d29735c89feab297415fc7510b21b764e6f919b0892c0512ea0427",
+ "Common/SampleText.cs": "d8c4a062c4263118b8c533f399fdf74debbb2284d100ddcaa5e667327a470478",
+ "Directory.Build.props": "654d2e3215be3707954f4c5e47b621c011d211fd7a33664ae1fcc9d85e42091c",
+ "VideoMode/Assets/IplFontData.g.cs": "8e363d96197db50e24f0cae41263099676b64f407b2164542364a97fe499b1c6",
+ "VideoMode/Assets/IplGlossData.g.cs": "421d9df52bf4e6e2c317e3aba354d34e085fdd2b69fdcb4221b30a654db1f7f6",
+ "VideoMode/CachedFooter.cs": "36f8d13f0a13cbc39552850013e71e71b52c99d38b8b3b0a8b1db3f9105d0d00",
+ "VideoMode/CachedFooterText.cs": "df0ab382fce631f9883cf0043542cecbccb3ee50bd4bb6e4a10bdf2544bd73ae",
+ "VideoMode/DolphinGraphics.targets": "dce2fde298c2740959281fc5a4d2ea7fd74495453338ca1a59436e828013cb40",
+ "VideoMode/GameCubeCanvas.cs": "6146ddd773cb3c9e9a99e2e637c7f8bff7e6f627a60e7d0ca4a740c5a81b5754",
+ "VideoMode/GameCubeStorageCanvas.cs": "011c25715199824d93cf58501e600d701f9754cf1c67bc21c04e48f98721254c",
+ "VideoMode/IndexedIcons.cs": "13c08cfdea3f9ba2d1037a67747ee32ecc16181fdebdc119e6c3dfc96c507aa1",
+ "VideoMode/IndexedRims.cs": "7ef2e47da8392eb55a1e7a8d65cf3be2d9d745797fe7539481d3dc67c0d7dde3",
+ "VideoMode/InnerGlassBlur.cs": "f946cd2ba2a826a3d0988ba674bcde00f033854e1d9c02e1cc5126c53f80a913",
+ "VideoMode/IplAntialiasingPolicy.cs": "02045a3e44f907927720c1a44de6852d5839d7a4785a32ff964871ff7f4079bf",
+ "VideoMode/IplBrowser.cs": "5aa0143b0ef8d1c51959f538f74ddaab036b2a0181c78e1cf95c62e20551008e",
+ "VideoMode/IplBrowserFixture.cs": "8ab80d11a5f9ba37b0818370fb8f010b695900d95985d9f4a91969eb00ec7022",
+ "VideoMode/IplBrowserRenderer.cs": "f22e42afbd32b3fbb7997e3dd6eecfd3c38f6f1be3d78b8a9b849ad49c83ef25",
+ "VideoMode/IplCamera.cs": "c9b75d1cc6e9d2cc82e817152b6bdc0041589d8fa747763ff69487bc98c3e265",
+ "VideoMode/IplCardOperations.cs": "8e212722781826efd07adfad2c2fb65a7623e1daa067eb046af27db377b10041",
+ "VideoMode/IplCubeMotion.cs": "4d1005887f65b8978cadd287c7542665e6ea41f63b0f12639126c83d16de897e",
+ "VideoMode/IplDetailLayout.cs": "a4412bea4e44033cc71ae5124730b7db1295ed9391fadcd8928e0073681a8f42",
+ "VideoMode/IplEnvironmentMipmaps.cs": "f7d8a0ad33fdcaa85ebf2fbf228b3f519f3c989e6700a516258743c895018461",
+ "VideoMode/IplFlatMenuRenderer.cs": "405bea001f237596bd7c33a8e3a41acb0e39469bdf8087f2837b9ea34932ddb9",
+ "VideoMode/IplFrameProfiler.cs": "be86a88e7ade0da318ec8465c0364d9440d099a8182c3fcfae1cebb9b57fe62b",
+ "VideoMode/IplGlassBlur.cs": "b6db0b6e857ba16bcb71c03a55068af1f7bbe7117e3317cf343c2e37871aeacf",
+ "VideoMode/IplGlassEnvironment.cs": "e009681a408e2dfa4f995af93516bb221b867786cf10fbadd00117eeee12ddad",
+ "VideoMode/IplGlassOptics.cs": "7f12079bc7dbb3d866abf1a049d581289775acb9d46bc2e413cdccf46c4e13c9",
+ "VideoMode/IplGlossEffect.g.cs": "bec2ec54c3c9fb6be60547077f981ea169ad5a570ea95d3db12fc79709cc43d6",
+ "VideoMode/IplHardwareReporter.cs": "55c1678afc6868230385c39c578e77740bcc9464e43eb78207456d3ee8aecdd9",
+ "VideoMode/IplIconLayout.cs": "126de31e6d3490f9639fa64bc276e84cb914338c67ddc1dd93a9986694fbdf74",
+ "VideoMode/IplLibrary.cs": "5747a1fe654bdbc75ebe5aba1916badb4df18b468dce387a9680ee726a40eb78",
+ "VideoMode/IplLighting.cs": "946052988b6a615fe1d08675461fbc975e1742f9a7a0b6d4344ecc69a2c13351",
+ "VideoMode/IplNativeBrowser.cs": "295f879c0a7c7a20d7779f1ff0ee08dde098dfde8f148124671d3287e09c2150",
+ "VideoMode/IplNativeCards.cs": "f7847a5a95efd8ea9de078d3b639b4c54e9c6acec672875e55b48bd2bda778d6",
+ "VideoMode/IplNumberCacheState.cs": "4ce652944a55a3c61755abf97ef8867559a2ec15101e5f4334fbd15a95ae7fde",
+ "VideoMode/IplOverlayLayout.cs": "000bc1a832da5dee702194d8704e8c2716266d74bd5a1e262c4dca1850968da4",
+ "VideoMode/IplPerformanceOverlay.cs": "d82c5c89267610042d0b79ce2035e37d136d8483d79207076ac0464e100e65dc",
+ "VideoMode/IplPerformanceStats.cs": "21e03eb3423c40cf6ec717b5bf4e976692a2844a3fc88c1601c54355b5470eb9",
+ "VideoMode/IplPreferences.cs": "7b9d4860c26b880a9371c2d8e3560f0f9468798cbadded9f10146580f8abc255",
+ "VideoMode/IplPreferencesStore.cs": "e1484c70a3310a53ce45122aa1a8af67be47259ff7ae8523fab0fdc5926bc817",
+ "VideoMode/IplRenderer.cs": "e1d90cf3207b0bde4839a287d0dbc90eb757a1a562d2999b57a71191861a937e",
+ "VideoMode/IplRimCommands.cs": "5abc951cb076bff1913bee5446df08b08cee3d6b4c2922ef7d72a58b87793211",
+ "VideoMode/IplSdDirectory.cs": "6c76dd16ffcadf055901f978bf1ef21bffe962f3635e8b180e3a261fbe194a0f",
+ "VideoMode/IplSdPage.cs": "6d90c2821df45734adff70dc772409883cc975e29091d16c9f189e71fa321ef1",
+ "VideoMode/IplSealedGlassGeometry.cs": "0a1bf7a57ed574b2d63507ef8df80157c70b76416ac7d19dd40b4e7b4fb3f208",
+ "VideoMode/IplSelectorPose.cs": "03fdcc0c0e0cf7bdd0f051bb6b758bb740da150996be1f7aa0fdb530b958bd0a",
+ "VideoMode/IplShell.cs": "9c001b72073885620fae13bba712db5c091cb754f5cc5c7594a49b9bdf3e83c0",
+ "VideoMode/IplStorageBrowser.cs": "b7dfb45247e4fda2122038c9147d72e3d4ccbbee9141f13562f53018869f4601",
+ "VideoMode/IplStorageIcons.cs": "cd6339ee356cc9354bbd4e924e190fb6c3898e10be0e510d788c60da38e9dc2c",
+ "VideoMode/IplStorageLayout.cs": "7ea05e872cfc2f6f47447c257b4c72dd9ae701837442ac9cfdc669598929a2da",
+ "VideoMode/IplStorageRenderer.cs": "6eb9fcb943b63099e8e55acb12699e0b67767f8f60259104a80e69624fc2bde5",
+ "VideoMode/IplSwiss.cs": "d81cda883919ae40cb0fbce893334512bcd2b48a32b6051000f42dbeb9ef5941",
+ "VideoMode/IplUiAudio.cs": "00e6c6b6acd3eae594e3f20d9cb74b53c0c962965b2a0c046cbfd28c6a472bba",
+ "VideoMode/IplUiAudioPolicy.cs": "8eb06536ad30fca6c72a16c6b66b5d57aeb14f9cb0e610a1eca3e419589534fc",
+ "VideoMode/IplUiSounds.cs": "4ce627245adcd665631937c1bb8771ca0d407068292cad1f1494d3a23d80da91",
+ "VideoMode/Program.cs": "efb1a205a386e9980fa9175a49cc5b494fb3786208181ad9ab459343e9d9b5c2",
+ "VideoMode/Properties/launchSettings.json": "4ad3d50f24ebf07625c7c6f49f73872b920243bd071f47092b1fe85966036bdb",
+ "VideoMode/SealedGlassShell.cs": "729e7776eaba6872aa1ceffd562d88a9638670d4381837540620a865efb67a7f",
+ "VideoMode/VideoMode.csproj": "d12638d9dc5a25aeb5ba07e9da74e75e20c662846f80b9a68476bf29c6eae346",
+ "VideoMode/VideoModeMenu.cs": "482b9f8608221bfb50ece204103c08b309f002c2158422234121fd026461df01",
+ "VideoMode/VideoModeScanReview.cs": "5de753da126431b6b7a09d6d3ca584c23e4a49a016c51d6674989b6918a1c9ad",
+ "VideoMode/gloss.dndfx.json": "ecc00f5e357da9c36099d8a879f7561249ca8e57b26182c63fd45e7c9e1316fa",
+ "global.json": "5d2475da5ecc453c3b8a3434eb8e6ed9917150d36f4d2640dea9a29d67a4c78b"
+ },
+ "sdk_api_package": "0.1.0-preview.349.1",
+ "sdk_api_commit": "09eac4b1040ee8824a37d48c686f7e0f745c6c5f",
+ "sdk_native_commit": "09eac4b1040ee8824a37d48c686f7e0f745c6c5f",
+ "sdk_native_files_sha256": {
+ "include/dnd_framebuffer_gx.inc": "55ef54883274b223869dab9eb1cc49d6385b46e35676eb3657f78fb8ee8e62fe",
+ "include/dnd_display_gx.inc": "ef02624e036d0dc792b6c23a4e0dbb875b742df0fea79ba4b826aad6ad4aca21",
+ "source/graphics_gx.c": "d08e967af32caa1aba9cf5a51a8d8cc34339308b3a97bb7bedaa1ad33b561681"
+ },
+ "sdk_fix_pr": "https://github.com/capz/DolphinDotNet/pull/182",
+ "toolchain": "ghcr.io/extremscorner/libogc2@sha256:13bb658d3f18903816617223f5d7c6f776d3db3ea806aae67f8d35a7a69d4c85",
+ "aa_dol": {
+ "file": "/workspace/artifacts/cube-aa/on-packaged-349/VideoMode.dol",
+ "bytes": 3688224,
+ "sha256": "87a789a2c90deaa4d84af9d5543cf6649e6f6be68130e7e511671ebe0d84a3e2"
+ },
+ "aa_elf": {
+ "file": "/workspace/artifacts/cube-aa/on-packaged-349/VideoMode.elf",
+ "bytes": 22948580,
+ "sha256": "639485d2b4dd19eff42cddbbb77690a9833f63ce0438d66ff0e85d37bcf75d69"
+ },
+ "partial_baseline_dol": {
+ "file": "/workspace/artifacts/cube-aa/off/VideoMode.dol",
+ "bytes": 3670560,
+ "sha256": "8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c"
+ },
+ "published_package_provenance": {
+ "dolphindotnet.sdk": {
+ "version": "0.1.0-preview.349.1",
+ "repository_commit": "09eac4b1040ee8824a37d48c686f7e0f745c6c5f",
+ "nuspec_sha256": "8dff954f1522cfb86e033fb3e885bd90736b214033dd0a9854b6f2199912722d",
+ "nupkg_sha512": "QQym1zqXRCJZs3HIn7vojQ5X1Nln1OwuY8cbgScJhJRUVShSyZWZKGk0/XY0IwUEplB6Tk57DgUxkCRz/pswVQ=="
+ },
+ "dolphindotnet.gamecube": {
+ "version": "0.1.0-preview.349.1",
+ "repository_commit": "09eac4b1040ee8824a37d48c686f7e0f745c6c5f",
+ "nuspec_sha256": "6ed1b23543e810431c6b5bf74052baee3f0e2b304ab7b33a1253f7bccb3daf3e",
+ "nupkg_sha512": "5nn87JokNrEwQldjz/tV4WIYl+bIiX/2/5J3MBM28ku1K8arMIV5NtOhsqQPNpfAUl1wL/nFIKD9JxpHcRQTTQ=="
+ },
+ "dolphindotnet.core": {
+ "version": "0.1.0-preview.349.1",
+ "repository_commit": "09eac4b1040ee8824a37d48c686f7e0f745c6c5f",
+ "nuspec_sha256": "ac8d16bfc5320401a739e1b5c3610a70d2f9b3b50fa2c39c62e5c8be0841782d",
+ "nupkg_sha512": "C0SG85n6UClDzqW8Z1vBYcHquncoUVzBE/qky7h6WGaPj/ix2tWoZ1DEUns2dCpHNiR4w5wM8Kiqn4QNqu1fuw=="
+ },
+ "compiler": {
+ "file": "/workspace/.nuget/packages/dolphindotnet.sdk/0.1.0-preview.349.1/tools/compiler/DolphinDotNet.Compiler.dll",
+ "bytes": 661504,
+ "sha256": "77ca912416772f3488a520e3881c8c141404872890c64f1e752c5ddbed4792d8"
+ }
+ },
+ "build_kind": "published-package",
+ "build_properties": "-p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true -p:IplHardwareAntialiasing=true -p:IplAaCopyBoundsValidated=true",
+ "capture_helpers": "capture-tool-snapshot.json",
+ "capture": {
+ "emulator": "Dolphin 2503 / OpenGL / Mesa / Xvfb",
+ "native_xfb": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "window": "Unscaled lossless full-client PPM to PNG",
+ "emulator_msaa": 1,
+ "ssaa": false,
+ "postprocessing": "None",
+ "force_progressive": false,
+ "dsp": "LLE/JIT, bundled free DSP ROM, no output",
+ "raster_workers_requested": 2,
+ "native_events": 13,
+ "partial_baseline_events": 6,
+ "mode_flags": "GX mode bytes24/25 read as field_rendering/hardware_aa"
+ },
+ "coverage_emulation": {
+ "emulator_msaa_samples": 1,
+ "native_gc_three_sample_coverage_verified": false,
+ "sample_locations": "Dolphin2503 stores BP sample locations without applying the GC coverage pattern",
+ "copy_filter": "Dolphin collapses seven coefficients into three rows",
+ "physical_performance_verified": false,
+ "sources": [
+ "https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/FramebufferManager.cpp#L117-L129",
+ "https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/FramebufferManager.cpp#L153-L163",
+ "https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/BPStructs.cpp#L460-L470",
+ "https://github.com/dolphin-emu/dolphin/blob/2503/Source/Core/VideoCommon/TextureCacheBase.cpp#L2133-L2142"
+ ]
+ },
+ "profile": {
+ "folder": "profile-high-subtle-medium",
+ "scope": "One strict96 guest-clock configuration/copy-filter/mipmap window; not native GC coverage or hardware qualification"
+ },
+ "limits": [
+ "Baseline has completed mode/readback events, but later modes and paired timing window are unavailable",
+ "Cube-side text shares the shorter AA EFB; flat pages use full height",
+ "MSAA1 Dolphin does not emulate native GC three-sample coverage or establish its visual/performance benefit",
+ "Narrow reflection shimmer may remain",
+ "No original IPL supplied and NoAudioOutput selected; audible effects and mixer load unqualified"
+ ],
+ "log_files_sha256": {
+ "/tmp/cube-aa-349-managed.log": "18f1ce5b9e02cf45365bf30f123fd049d0f712dd11b6297a182a6f1bb49dc3c5",
+ "/tmp/cube-aa-349-bundle.log": "3effc9c5b038b049850ee7c484b23d083338b0eccfd60554d3e01d235a13eca9",
+ "/tmp/cube-aa-349-native.log": "f7ea93b9f6a94f120a2163aac05751266f513a510c63f3058b93cc059c67b15c",
+ "/workspace/artifacts/cube-aa/packaged-349-rearmed-review/emulator.log": "2314540e729d2afaee758ceea7ddbb6fb34c0da151c55f78bf60eef89b616012"
+ },
+ "packaged_files_sha256": {
+ "README.md": "6c9d646c56f946156bd2fac3b4e524c3e0ee94cd9981a691bf37ffeee8f18fb1",
+ "baseline-partial/01-options-cube-blur-off-window.png": "eb7010f980788127e03668df234924181e9cb90cef2143383d7609403b1b3ddc",
+ "baseline-partial/01-options-cube-blur-off-xfb.png": "394c1b675d285e4e460fbb0875bbf7be3dbeb67def8e544af23730203abfb667",
+ "baseline-partial/02-options-flat-window.png": "c341b66ca70ae7da8acdb8cbee3a034fcfad887a76299203c79aa8a723b3787f",
+ "baseline-partial/02-options-flat-xfb.png": "aceb12dc93668a65794f69e350930be2c906312496d7d056e86cb02801715084",
+ "baseline-partial/03-options-cube-blur-high-window.png": "65ddbaaf873684ab0a447f18712db953d6b0e3a5fb1a381394337f95a3dd3214",
+ "baseline-partial/03-options-cube-blur-high-xfb.png": "a9a4bfcadb41013bb08b73367ce7957e08bacad98320769601af221101756fa6",
+ "baseline-partial/04-rotating-corner-high-window.png": "d45de0b478edfeb78b9f8257cbd311920b83854ddf5f3a0a86ae91fb71194b23",
+ "baseline-partial/04-rotating-corner-high-xfb.png": "c558abf50c2ff1331b3ab3a5d49f4cd8135057cbf48c0d92b9e5b3d8454cb808",
+ "baseline-partial/05-video-480i-high-window.png": "16f51acf844bcf069ffebec3ce00a74af2aeaf9bd8e95ca162012778dded5dc8",
+ "baseline-partial/05-video-480i-high-xfb.png": "1b12cf117b6b77a62d6219283a2fb8b8b6b10b006bf1cb0b05d73018bdaa7752",
+ "baseline-partial/06-video-480p-high-window.png": "8dfc00f1bfeada615551e8edd025cd47555c7372218082785f356296dcadd961",
+ "baseline-partial/06-video-480p-high-xfb.png": "52a227a6c8578b269a3630d8603be5f3c25c115788b2fd794c21a008ffcafb61",
+ "baseline-partial/events.json": "607c1e9340049cfd374cef559a79ebf803aefcdf94d3914a529e25ad81dfc6e4",
+ "capture-tool-snapshot.json": "1eef09cdcd5b3c35fa2e2cb19f6d28d6973958f9d4b39b73e18740013d53fa79",
+ "capture-tools.patch": "d8f675d2307ab7858aedbc6b6256d76edba14dbc55c1cf24681be3f62bd2f955",
+ "native/01-options-cube-blur-off-window.png": "f22c3463094c5cf15fd55f91016c32ce1ab71d13dd5be3f3396cdf0252ca579b",
+ "native/01-options-cube-blur-off-xfb.png": "a083294c7665a00c4258597395755a9a2f161321a57c47022b243866c1cd27ca",
+ "native/02-options-flat-window.png": "c341b66ca70ae7da8acdb8cbee3a034fcfad887a76299203c79aa8a723b3787f",
+ "native/02-options-flat-xfb.png": "aceb12dc93668a65794f69e350930be2c906312496d7d056e86cb02801715084",
+ "native/03-options-cube-blur-high-window.png": "7b1585ef4677440e71aef3b10c5332f924015ac5af7589de2369a4cbb0cfb55a",
+ "native/03-options-cube-blur-high-xfb.png": "04f8f7a1190b5893008399279c8f8c487fa17d877063b245fbdf50fe498d9f40",
+ "native/04-rotating-corner-high-window.png": "7f0957194988b20473afdf6b5a8078c5e0167c363f95163c5e685c492e622a35",
+ "native/04-rotating-corner-high-xfb.png": "951674d8a7daf37b1d355b093de7850b87e49fc95863b46ba2a19fba1643254b",
+ "native/05-video-480i-high-window.png": "6a39c5825b8dc30bf7cd1f974feb3b1290c4a59fab4b2bd5a9fb8c47e445e9d7",
+ "native/05-video-480i-high-xfb.png": "0b8f7c9afec396493019bbbf7b0b033030339d553d5f0cadee3fdb238a175248",
+ "native/06-video-480p-high-window.png": "9aabeeaa424cc8483a93d55c7e50df69201dc3a40a1aac8c299f022fa643cc3f",
+ "native/06-video-480p-high-xfb.png": "b6aa294a3774749a3bc51b37879c5b266d0add683a445761ca5e3b414cdc749e",
+ "native/07-576p-preview-high-window.png": "f7c0004cde2916bb1c86d63e853b70bd6c9eb791f1dd098f7f6a786246529785",
+ "native/07-576p-preview-high-xfb.png": "a05a667486eee673b946a11b0167ff1302b93b133c1c52e107cb93b841de65c3",
+ "native/08-rollback-480p-high-window.png": "fc64f3c899a6e14665a221c3852b175eff3da61cd37dec25b593505168cc081a",
+ "native/08-rollback-480p-high-xfb.png": "72ded297ec8a73bf0a7dc48c7943cd8271d63963c2a52e4ad550565da36490de",
+ "native/09-video-576p-high-window.png": "babea9d0d0f1112accb3654aa1b64014e6c6e95ff13e48ce3c059f97aba0eb96",
+ "native/09-video-576p-high-xfb.png": "a504607eb1e2fd69a0fac457670704588e02f13ad4043a668d9381bbd0f75df4",
+ "native/10-video-576i-high-window.png": "1f79479b54fbe145aaf87b59bed299950fab6d3212b5d4b5773c79e05f6f63d3",
+ "native/10-video-576i-high-xfb.png": "dc1b49ad2abd173fcf314c635959244439d2704ed1ae12c8468b005b61110208",
+ "native/11-video-240p-high-window.png": "9f60218d6529bb2945db40579dd27205b2086710dcf7be90ceb4f5d9b7460533",
+ "native/11-video-240p-high-xfb.png": "b3d68d59c99b262f1b2d53402fa7f0135dbad1086e07e9b7918a2933661d129d",
+ "native/12-safe-480i-high-window.png": "33393305d2b1e68d0c0a2c7ff4f333cd12940dad847edbf4d7dfe848627d8288",
+ "native/12-safe-480i-high-xfb.png": "0b8f7c9afec396493019bbbf7b0b033030339d553d5f0cadee3fdb238a175248",
+ "native/13-video-detail-crisp-window.png": "6ee96d0e628c95add17b7fc46df6e0be7edf72fc518b54f163345d6f81ee1f6c",
+ "native/13-video-detail-crisp-xfb.png": "a3d8b4ad0126856cb9fab7c3a6b46828b52d90a2c7063ce2a8b831853e716247",
+ "native/events.json": "55f4d80ef50cde3d9ca4bb85432e25b99938126aeafd1573abfc92d325f3c033",
+ "prior-context/frames.csv": "b3c346dc2d793716740a1fbeb01108055ae212033e91ba4c90b60eadeef584ae",
+ "prior-context/profile.json": "4b1afe014f8f8b6a716c29bd6cd2b71ca10f9873c4057a236cd1d6a137f64166",
+ "profile-high-subtle-medium/frames.csv": "115f68374a94bd868ce7b3eba3a76667ff8c60bbe06350baa7d2d4b8e3a2a548",
+ "profile-high-subtle-medium/profile.json": "be5a9e7f6028d1f67b54d35ae909a39ef526e5363670a6abccbb81ea0b9e27c0",
+ "samples-runtime.patch": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "toolchain-provenance.json": "f7f6ae86a427d01f9f6c71160cb7131e827f84c16c9b50ba63aa3f9edd320de8"
+ },
+ "capture_helper_snapshot_scope": {
+ "kind": "packaging-time snapshot; not exact loaded-module source hash",
+ "native_frames_loaded_utc_approx": "2026-11-14T22:59:09Z",
+ "inflight_edit_utc": "2026-11-14T23:01:14Z",
+ "inflight_edit": "failure_snapshot counter-read error guard",
+ "successful_run_used_guard": false,
+ "normal_capture_and_profile_paths_changed": false
+ },
+ "capture_helper_patch_format": "git diff --unified=0; apply with git apply --unidiff-zero"
+}
diff --git a/VideoMode/Design/native-cube-aa/samples-runtime.patch b/VideoMode/Design/native-cube-aa/samples-runtime.patch
new file mode 100644
index 0000000..e69de29
diff --git a/VideoMode/Design/native-cube-aa/toolchain-provenance.json b/VideoMode/Design/native-cube-aa/toolchain-provenance.json
new file mode 100644
index 0000000..fa40f7c
--- /dev/null
+++ b/VideoMode/Design/native-cube-aa/toolchain-provenance.json
@@ -0,0 +1,51 @@
+{
+ "image": "ghcr.io/extremscorner/libogc2@sha256:13bb658d3f18903816617223f5d7c6f776d3db3ea806aae67f8d35a7a69d4c85",
+ "manifest": [
+ {
+ "Config": "blobs/sha256/ba9cd72a4bd027736197633b7510d269e07a2bf2894ef95018a2f2606d32b859",
+ "RepoTags": null,
+ "Layers": [
+ "blobs/sha256/7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e",
+ "blobs/sha256/d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087",
+ "blobs/sha256/d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022",
+ "blobs/sha256/b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915",
+ "blobs/sha256/47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1"
+ ],
+ "LayerSources": {
+ "sha256:47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 261555200,
+ "digest": "sha256:47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1"
+ },
+ "sha256:7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 77875200,
+ "digest": "sha256:7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e"
+ },
+ "sha256:b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 959693824,
+ "digest": "sha256:b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915"
+ },
+ "sha256:d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 50606592,
+ "digest": "sha256:d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022"
+ },
+ "sha256:d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 769807872,
+ "digest": "sha256:d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087"
+ }
+ }
+ }
+ ],
+ "selected_prefixes": [
+ "opt/devkitpro/devkitPPC",
+ "opt/devkitpro/libogc2",
+ "opt/devkitpro/tools",
+ "opt/devkitpro/portlibs/ppc",
+ "opt/devkitpro/portlibs/gamecube"
+ ],
+ "uncompressed_file_bytes": 728025228
+}
diff --git a/VideoMode/Design/ui-sounds/README.md b/VideoMode/Design/ui-sounds/README.md
new file mode 100644
index 0000000..a000aa1
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/README.md
@@ -0,0 +1,90 @@
+# Native UI-sound integration review
+
+The [action index](action-index.md) records the ten original IPL effects and
+their controller actions. UI Sounds adds Off / Low / Medium / Full, defaults to
+Medium, previews drafts and saves confirmed values. This review exercises its
+four-row Options layout, draft/commit/cancel paths and Storage navigation.
+
+## Native frames
+
+All eight images are completed GameCube DOL output from cloud-local Dolphin
+2503, OpenGL/Mesa software rendering and Xvfb. Each 614400-byte GX_CopyDisp XFB
+was read after GX_DrawDone at a completed presentation boundary. All frames
+are native 640x480 interlaced VI output. The only conversion is BT.601 YUYV422
+to RGB: no crop, resize, compositing or generated replacement. Source and PNG
+hashes and actual native frame counters are preserved in [events](native/events.json).
+
+- [01-options-cube-medium](native/01-options-cube-medium-xfb.png)
+- [02-options-ui-sounds-row](native/02-options-ui-sounds-row-xfb.png)
+- [03-ui-sounds-medium-editor](native/03-ui-sounds-medium-editor-xfb.png)
+- [04-ui-sounds-off-draft](native/04-ui-sounds-off-draft-xfb.png)
+- [05-ui-sounds-off-confirmed](native/05-ui-sounds-off-confirmed-xfb.png)
+- [06-ui-sounds-low-draft](native/06-ui-sounds-low-draft-xfb.png)
+- [07-ui-sounds-cancel-keeps-off](native/07-ui-sounds-cancel-keeps-off-xfb.png)
+- [08-storage-flat-actions](native/08-storage-flat-actions-xfb.png)
+
+Frame 03 visibly reports unavailable menu sounds; no original IPL is configured
+in this Cloud emulator. The replay uses NoAudioOutput, and Dolphin reports the
+unsupported AESND HLE ucode CRC `8d527c50` and forces AX. These captures verify
+graceful unavailability and normal interaction. They do **not** qualify audible
+output, the ten original effects, overlapping active voices or physical-console
+playback. The missing GC Loader SD also means session values can change while
+the app honestly reports that saving failed. Host fixtures cover persistence.
+
+## Quiet-case timing
+
+Both windows use the normal interactive Video cube with High blur, Subtle
+motion and VSync: 30 warmup frames followed by 96 uninterrupted samples. The
+current UI sound level is Medium, but IPL assets are unavailable and no effects
+are mixing. No capture/debugger stop or storage write interrupts sampling.
+These are Dolphin guest-clock measurements, not physical GameCube timings.
+
+| Build | Frame ms | Active ms | Prepare ms | Submit ms | Draws / triangles |
+| --- | ---: | ---: | ---: | ---: | ---: |
+| Previous SDK / High / Subtle | 16.681 | 4.508 | 0.781 | 3.675 | 103 / 45234 |
+| SDK 347 / High / Subtle / quiet audio | 16.681 | 4.513 | 0.781 | 3.676 | 103 / 45234 |
+
+The active-work difference is **+0.005 ms**.
+SDK and heap differences prevent isolating audio cost. Active time is frame
+time minus retrace wait; copy scopes include prior GPU work. Original rows and
+summaries are retained in `profile-high-subtle-medium/` and `baseline-high/`.
+The current post-window arena is 2254320 of 8388608
+bytes, with 0 collections. This is neither peak nor live usage.
+
+## Build and replay
+
+Normal runtime source: `82d6a4f00cbbf34cf394161709ce198a85ab3539`. SDK/runtime/compiler come from public
+NuGet `0.1.0-preview.347.1`, source `8f5870f68ec7f5eb1e8103c13af42ce082a3516f`. Optimized cached icons, selectors,
+grid, footer and numbers retain their defaults; shared glass, batched blur/text,
+retained tint, console and memory-card services are enabled explicitly. The
+final backend caps each effect at 2 MiB of native preparation scratch and the
+retained clip bank at 6 MiB, independently of the 8 MiB managed heap. The
+[budget audit](budget-audit.md) bounds the preparation scratch for every accepted
+SDK recipe; the actual sum of all ten supported-ROM clips remains unqualified.
+The retained cap is an intentional MEM1 ceiling with graceful cleanup on overflow:
+
+```sh
+dotnet build VideoMode/VideoMode.csproj -c Release -p:DndBuildNative=true -p:DndBuildBackend=Docker -p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true
+```
+
+The captured Cloud build ran the same optimized flags with
+`DndBuildNative=false`, then the published compiler
+`--bundle VideoMode/bin/Release/net8.0/VideoMode.dll VideoMode/obj/Release/net8.0/native --sample-controls`.
+Its unchanged generated Makefile was linked with `make -j2` using devkitPPC/libogc2
+binaries extracted from the exact pinned image into `/tmp/ui-sounds-toolchain`.
+This keeps the toolchain on `/tmp` because Docker's VFS copy exceeded workspace
+space during initial setup. The [toolchain record](toolchain-provenance.json)
+preserves the image and layers. No SDK, generated C or native runtime was patched.
+AOT and DOL/ELF checks passed.
+
+```sh
+python3 ci/review_performance_overlay.py --dol /path/to/VideoMode.dol \
+ --sdk /path/to/DolphinDotNet --logs /path/to/fresh-review \
+ --native-boundaries --ui-sounds-review --ui-sounds-profile \
+ --quick-input --profile-seconds 90
+```
+
+Use matching DOL/ELF files from the same build. DOL SHA-256:
+`8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c`. [Provenance](provenance.json) includes runtime, helper, build and
+frame hashes. Raw DOL/ELF/YUV/PPM and logs remain in task artifacts. No firmware
+or audio asset is included in this evidence.
diff --git a/VideoMode/Design/ui-sounds/action-index.md b/VideoMode/Design/ui-sounds/action-index.md
new file mode 100644
index 0000000..e9ca23b
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/action-index.md
@@ -0,0 +1,77 @@
+# System menu sound actions
+
+The glass-cube demo uses ten finite IPL effects exposed by published
+`DolphinDotNet.GameCube` / SDK `0.1.0-preview.347.1`. The mappings apply to Video,
+Calendar, Options and Storage. They describe accepted logical actions, rather
+than button presses or rendered frames.
+
+| User action | SDK `SystemMenuSound` |
+| --- | --- |
+| Turn from the center to a cube side, including R's Storage shortcut | `TurnSide` |
+| Return from a side to the center, using B or the opposite stick direction | `TurnCenter` |
+| Open a flat menu, storage browser, folder or file-information page | `Select` |
+| Leave a flat page/browser, close file information, or use L for a parent folder | `Back` |
+| Discard a value, cancel a dialog/transfer, revert a video preview, or report a failed action | `OptionCancel` |
+| Commit settings, preview/keep a video mode, confirm a card action, or finish a verified transfer | `OptionConfirm` |
+| Change a draft value, including time/date and UI sound volume | `OptionMove1` |
+| Select a field/segment, change memory-card slot or grid/list view, or request a refresh | `OptionMove2` |
+| Move between menu rows, files, saves or dialog choices | `OptionMove3` |
+| Open a value editor, save-actions menu, launch prompt or destructive-action dialog | `OptionSelect` |
+
+One shared cue queue selects at most one effect per input/update cycle. A failed
+nested action takes precedence over opening or confirmation sounds. Accepted
+copy/move requests and their later verified completion are separate events;
+typed operation results distinguish completion from ordinary media probes.
+Formatting retains both explicit confirmations. No separate error or
+memory-card-specific effect is invented: failures reuse `OptionCancel`.
+
+Ignored input, unchanged selections, redraws, focus animation, clock ticks,
+transfer percentages, artwork loads and background storage probes stay silent.
+An explicit refresh on the file grid can restart an in-progress scan and sounds
+once; transfer progress panels reject refresh and remain silent.
+Each accepted held-direction step can sound after the existing 380 ms delay
+and 130 ms repeat interval. Navigation/value effects share a 40 ms limiter;
+open, confirm and cancel effects bypass it. Six tracked voices allow overlap,
+reusing a free slot or stopping the oldest voice when full. New input received
+while loading or muted is discarded. There is no startup jingle or ambience.
+
+## Controls and resource lifetime
+
+Options > UI Sounds offers Off / Low / Medium / Full: gains 0 / 0.25 / 0.5 / 1.
+Medium is the default. A draft previews immediately, A commits, and B restores
+the saved session level. Preferences v4 preserves existing video, Stereo/Mono,
+Motion and Glass Blur values; v1–v3 settings adopt Medium. Stereo/Mono remains
+the independent console SRAM preference and does not imply AESND downmixing.
+
+Off stops active voices and defers the initial firmware read until sound is
+enabled. Otherwise preparation runs once on `Task.Run`: read the console IPL,
+select its qualified profile and prepare the ten effects. The firmware image
+and catalog are disposed before interactive playback; prepared native clips
+remain resident. Shutdown cancels pending preparation, awaits it, and disposes
+voices before clips. No ROM, PCM, replacement tone or recording is bundled or
+written to storage.
+
+Each effect has a 2 MiB native preparation-scratch budget and the retained bank
+is capped at 6 MiB of native audio memory. The [budget audit](budget-audit.md)
+bounds every SDK-accepted recipe's scratch charge below 2 MiB; the actual sum
+of all ten clips on a supported ROM remains unqualified here. The retained-bank
+limit is an intentional MEM1 ceiling, with partial clips disposed if exceeded.
+These limits are separate from the
+2 MiB firmware image and SDK-managed extraction data. Reaching `FirmwareImage` makes the SDK
+select an 8 MiB managed heap, replacing this demo's earlier 256 KiB assumption
+in audio-enabled builds. Playback performs no firmware reads or effect
+preparation in the frame loop; the SDK creates a small channel wrapper per
+played effect. Audio-disabled instrumentation retains its separate baseline.
+
+Profiles are qualified for early NTSC 1.0, NTSC 1.2 and PAL 1.2. A missing IPL,
+unsupported profile or failed preparation leaves navigation working and reports
+unavailable audio in the UI Sounds editor. The Cloud environment has no original
+IPL configured, so native validation there covers graceful unavailability and
+normal interaction; it does not establish audible playback on physical hardware.
+Host tests verify routing, repeat/no-op behavior, voice policy and settings
+migration. Physical listening and supported-ROM playback remain separate checks.
+
+The SDK [firmware resource guide](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/docs/system-firmware-resources.md)
+and [menu-audio qualification report](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/docs/system-menu-audio-research.md)
+describe the exposed assets and supported profiles. The finite effect list does
+not qualify `PressStart`, continuous ambience or bit-identical IPL DSP output.
diff --git a/VideoMode/Design/ui-sounds/baseline-high/frames.csv b/VideoMode/Design/ui-sounds/baseline-high/frames.csv
new file mode 100644
index 0000000..37f2eda
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/baseline-high/frames.csv
@@ -0,0 +1,97 @@
+frame_us,prepare_us,submit_us,end_us,gpu_wait_us,retrace_us,capture_us,blur_us,draws,triangles,begin_copy_us,gate_us,width,height,scan,face,editing
+16683,780,3675,12196,8,12175,2480,150,103,45234,3,0,640,480,1,1,0
+16679,778,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12194,8,12172,2480,151,103,45234,3,0,640,480,1,1,0
+16680,779,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12194,8,12172,2480,151,103,45234,3,0,640,480,1,1,0
+16681,780,3676,12195,8,12174,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12196,8,12174,2479,151,103,45234,3,0,640,480,1,1,0
+16683,779,3675,12195,8,12174,2479,150,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12192,8,12172,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,779,3675,12195,8,12174,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16684,781,3675,12194,8,12173,2480,153,103,45234,3,0,640,480,1,1,0
+16679,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,4,12177,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12195,8,12174,2479,150,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16678,781,3674,12195,8,12174,2481,151,103,45234,3,0,640,480,1,1,0
+16681,779,3676,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12195,8,12174,2480,150,103,45234,3,0,640,480,1,1,0
+16683,779,3677,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16678,780,3674,12194,8,12174,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12194,8,12172,2481,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12193,8,12172,2481,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12195,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12193,8,12172,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12187,8,12166,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3675,12193,8,12172,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12195,8,12174,2478,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16681,779,3674,12194,8,12173,2478,152,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12196,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16679,782,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3673,12197,8,12176,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,4,12177,2481,150,103,45234,3,0,640,480,1,1,0
+16684,779,3675,12194,8,12174,2479,149,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12193,8,12172,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12194,8,12173,2481,152,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12195,8,12174,2479,152,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,152,103,45234,3,0,640,480,1,1,0
+16683,781,3675,12194,8,12173,2480,152,103,45234,3,0,640,480,1,1,0
+16678,779,3675,12194,8,12174,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12172,2480,151,103,45234,3,0,640,480,1,1,0
+16681,779,3675,12194,8,12174,2478,151,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12196,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16679,781,3675,12193,8,12172,2481,150,103,45234,3,0,640,480,1,1,0
+16681,780,3676,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12195,8,12174,2480,152,103,45234,3,0,640,480,1,1,0
+16684,779,3677,12197,8,12173,2481,151,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12195,8,12174,2481,151,103,45234,3,0,640,480,1,1,0
+16681,779,3676,12194,8,12174,2480,150,103,45234,4,0,640,480,1,1,0
+16681,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16679,781,3675,12193,8,12172,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3674,12195,8,12174,2478,151,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12193,8,12173,2481,149,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12194,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16678,780,3675,12193,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,4,12177,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16684,779,3675,12194,8,12173,2479,149,103,45234,3,0,640,480,1,1,0
+16679,781,3675,12193,8,12172,2481,149,103,45234,3,0,640,480,1,1,0
+16682,781,3675,12195,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16680,780,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2480,150,103,45234,3,0,640,480,1,1,0
+16684,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0
+16678,780,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12194,8,12173,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12194,8,12173,2481,152,103,45234,3,0,640,480,1,1,0
+16681,780,3675,12196,8,12175,2479,152,103,45234,3,0,640,480,1,1,0
+16683,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0
+16678,781,3675,12193,8,12172,2479,151,103,45234,3,0,640,480,1,1,0
diff --git a/VideoMode/Design/ui-sounds/baseline-high/profile.json b/VideoMode/Design/ui-sounds/baseline-high/profile.json
new file mode 100644
index 0000000..1e34c3c
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/baseline-high/profile.json
@@ -0,0 +1,31 @@
+{
+ "scope": "Dolphin guest clock; normal interactive Video face, idle motion enabled; not hardware",
+ "samples": 96,
+ "warmup": 30,
+ "vsync": true,
+ "interrupted_during_sampling": false,
+ "observation_seconds": 90,
+ "dol_sha256": "2942fffaf07bd70a92a9aa3bc75273150e9ee0c690305f0ba3b6044c2e3bbd51",
+ "mean_us": {
+ "frame_us": 16680.895833333332,
+ "prepare_us": 780.5625,
+ "submit_us": 3675.0416666666665,
+ "end_us": 12193.96875,
+ "gpu_wait_us": 7.875,
+ "retrace_us": 12173.135416666666,
+ "capture_us": 2479.8229166666665,
+ "blur_us": 150.44791666666666,
+ "draws": 103,
+ "triangles": 45234,
+ "begin_copy_us": 3.0104166666666665,
+ "gate_us": 0
+ },
+ "frame_p95_us": 16684,
+ "active_mean_us": 4507.760416666667,
+ "managed_heap": {
+ "capacity_bytes": 262144,
+ "arena_used_bytes": 220168,
+ "collections": 0,
+ "scope": "post-window arena; not peak or live bytes"
+ }
+}
diff --git a/VideoMode/Design/ui-sounds/budget-audit.md b/VideoMode/Design/ui-sounds/budget-audit.md
new file mode 100644
index 0000000..09cc04a
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/budget-audit.md
@@ -0,0 +1,62 @@
+# IPL UI audio preparation budget audit
+
+SDK: published `0.1.0-preview.347.1`, source
+`8f5870f68ec7f5eb1e8103c13af42ce082a3516f`.
+
+## Per-effect preparation charge
+
+The SDK's `dnd_audio_begin_menu` rejects a preparation when its running native
+charge exceeds the caller's budget. Its accepted bounds give the following
+conservative maximum, including the early profile's 96,000-frame feedback tail
+within the output-frame bound:
+
+| Component | Upper charge in bytes |
+| --- | ---: |
+| Stereo PCM16, at most 256,000 frames, aligned to 32 bytes | 1,024,000 |
+| Complete recipe packet | 262,144 |
+| Two decoded mono sources, each at most 100,000 PCM16 frames | 400,000 |
+| Two reverb rings, each at most 100 × 80 PCM16 samples | 32,000 |
+| Two flat-source spans, 48 bytes each on the target ABI | 96 |
+| `MenuPreparation` on the pinned PowerPC ABI | 1,744 |
+| **Total maximum SDK preparation charge** | **1,719,984** |
+
+Therefore **2 MiB (2,097,152 bytes) covers every recipe accepted by these
+structural limits**, with a 377,168-byte charge margin. A 1 MiB budget is not
+proved by the structural limits or the published modern-profile measurements.
+The calculation bounds the SDK's charge, excluding allocator metadata and
+unrelated application/AESND state. This is native preparation memory; the
+separate managed heap is 8 MiB.
+
+Target sizes were checked without changing application/SDK sources: a temporary
+translation unit included the exact bundled `source/audio.c` and emitted
+`sizeof` constants with the relocated pinned GCC 16.1.0 and the same PowerPC ABI.
+`MenuPreparation=1744`, `DndAudioSpan=48`, `DndAudioSource=196`,
+`DndAudioDecoder=344`. The output is `/tmp/ui-sounds-audio-sizes.s`.
+
+Relevant source:
+
+- [Budget checks, output, rings and source allocations](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/source/audio_menu.inc#L74)
+- [JAudio flat-source parsing](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/source/audio_formats.inc#L552)
+- [Source/span/decoder ABI types](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/include/dnd_audio_codec.h#L8)
+
+## Resident bank
+
+Prepared menu sounds retain only aligned stereo PCM16. `Sound.NativeBytes`
+reports that aligned retained length (`audio.c`, `dnd_audio_stat`, kind 8).
+The 6 MiB bank budget is an intentional application MEM1 ceiling, distinct from
+the transient per-preparation charge.
+
+The generic SDK bound for ten clips is 10 × 1,024,000 = 10,240,000 bytes, so it
+does **not** prove that all ten qualified early effects fit the app's 6 MiB cap.
+Published research documents do not list all ten exact early output lengths;
+the public test fixtures use synthetic recipes. No private qualified early ROM
+was available to this audit to independently enumerate those metadata values.
+Thus an exact early-bank total is not established by this audit.
+
+Do not raise the resident cap blindly. The catalog exposes each qualified
+effect's `SampleFrameCount` and `Channels`; summing
+`(SampleFrameCount * Channels * 2 + 31) & ~31` before preparation can report the
+actual bank requirement and reject a bank exceeding 6 MiB before allocating it.
+The existing backend checks actual `NativeBytes` and cleans up the partial bank
+on failure. An eventual real-console or private early-profile run should record
+all ten metadata lengths and the final resident total to close this limitation.
diff --git a/VideoMode/Design/ui-sounds/capture-tool-snapshot.json b/VideoMode/Design/ui-sounds/capture-tool-snapshot.json
new file mode 100644
index 0000000..bee6d83
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/capture-tool-snapshot.json
@@ -0,0 +1,14 @@
+{
+ "base_head": "82d6a4f00cbbf34cf394161709ce198a85ab3539",
+ "files_sha256": {
+ "ci/review_performance_overlay.py": "3fe62901c1df0ff17d81e4f369db66ce14a9987a0ad2634a6b2df8f191c5a1a1",
+ "ci/native_frame_boundary.py": "036dc217532253b1dd499cbd66f57526983ef5319f7245e4f4a266b0c6778bac",
+ "ci/profile_interactive_rim.py": "7708e80d5051a25d34f19660e20e2a3f6cfcfd525c6f4855a2dca4acb12bd83b",
+ "ci/decode_native_xfb.py": "1a560cbb4ba252a8ca05d335b619161eb54e54058cc3a9d4755b55260aa6358a",
+ "ci/capture_x11.py": "4a41c7bef8a22d64ac0fffc648ed046121c89f5ce8c71eeb67f1c0b6ebdf18e3"
+ },
+ "dirty_files": [],
+ "diff_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "runtime_patches": "None: normal interactive DOL, controller input; no application-state or framebuffer writes",
+ "snapshot_scope": "Capture helpers committed cleanly with the runtime source before review-02."
+}
diff --git a/VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png b/VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png
new file mode 100644
index 0000000..76321fb
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/02-options-ui-sounds-row-xfb.png b/VideoMode/Design/ui-sounds/native/02-options-ui-sounds-row-xfb.png
new file mode 100644
index 0000000..d204ef5
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/02-options-ui-sounds-row-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/03-ui-sounds-medium-editor-xfb.png b/VideoMode/Design/ui-sounds/native/03-ui-sounds-medium-editor-xfb.png
new file mode 100644
index 0000000..71c9c8b
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/03-ui-sounds-medium-editor-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/04-ui-sounds-off-draft-xfb.png b/VideoMode/Design/ui-sounds/native/04-ui-sounds-off-draft-xfb.png
new file mode 100644
index 0000000..513ba57
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/04-ui-sounds-off-draft-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/05-ui-sounds-off-confirmed-xfb.png b/VideoMode/Design/ui-sounds/native/05-ui-sounds-off-confirmed-xfb.png
new file mode 100644
index 0000000..2e2ba9c
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/05-ui-sounds-off-confirmed-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/06-ui-sounds-low-draft-xfb.png b/VideoMode/Design/ui-sounds/native/06-ui-sounds-low-draft-xfb.png
new file mode 100644
index 0000000..6f2273b
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/06-ui-sounds-low-draft-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/07-ui-sounds-cancel-keeps-off-xfb.png b/VideoMode/Design/ui-sounds/native/07-ui-sounds-cancel-keeps-off-xfb.png
new file mode 100644
index 0000000..b6379a7
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/07-ui-sounds-cancel-keeps-off-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/08-storage-flat-actions-xfb.png b/VideoMode/Design/ui-sounds/native/08-storage-flat-actions-xfb.png
new file mode 100644
index 0000000..4f85043
Binary files /dev/null and b/VideoMode/Design/ui-sounds/native/08-storage-flat-actions-xfb.png differ
diff --git a/VideoMode/Design/ui-sounds/native/events.json b/VideoMode/Design/ui-sounds/native/events.json
new file mode 100644
index 0000000..929fe25
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/native/events.json
@@ -0,0 +1,162 @@
+[
+ {
+ "capture": "01-options-cube-medium",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 199,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/01-options-cube-medium-xfb.yuv",
+ "xfb_sha256": "b797b8ecc5e6f24cf2567ffdd254bacdaad9fe0e9ec06bb00b67969a2034ab9e",
+ "png_sha256": "20067772485ce7d5ef378c75f19a786afa70c1f0ceba1e88c537c99d7b024e2f",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "02-options-ui-sounds-row",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 278,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/02-options-ui-sounds-row-xfb.yuv",
+ "xfb_sha256": "b6f21882f913ae2c034ccbeccbb3bc60a49ae0e248cf7e8f932ea1b4951d7278",
+ "png_sha256": "6e7a86cfce74be23894655588ec470aa86794ab9f69c4c52db089d182c69a484",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "03-ui-sounds-medium-editor",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 297,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/03-ui-sounds-medium-editor-xfb.yuv",
+ "xfb_sha256": "0bc4184d37ac28690ef836610971b04fe1842289eabae65945a99e58349b4e6d",
+ "png_sha256": "2a29ab5c94ef08ade577d976cb0cffd7fc6fe2b21fc680345983276d2677e994",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "04-ui-sounds-off-draft",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 333,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/04-ui-sounds-off-draft-xfb.yuv",
+ "xfb_sha256": "aab8ca5e1ca15c69f378a7e71fc65316c9212b8375804a33725d0a60ab128a5d",
+ "png_sha256": "c666bd7797caf121cc9f3490f936058cec586c6064714da9c24532e18922e2fd",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "05-ui-sounds-off-confirmed",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 353,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/05-ui-sounds-off-confirmed-xfb.yuv",
+ "xfb_sha256": "ccc220dbde47a12eeecee62f21e6c0cf678fe2fef02059ccb766f3408a2f840e",
+ "png_sha256": "37ffaf2c4ce2d87e272e6da23c34eeb794ac356062c87e425da2e0997784f9f4",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "06-ui-sounds-low-draft",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 390,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/06-ui-sounds-low-draft-xfb.yuv",
+ "xfb_sha256": "48f14067ee546b0f7c66b011d4081aedb914a6583dcef4552850317ad86f7ea6",
+ "png_sha256": "6e9818123655fd5d0dcbec6849d2124f312bb3d9bcbef36199480a2b3388278a",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "07-ui-sounds-cancel-keeps-off",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 409,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/07-ui-sounds-cancel-keeps-off-xfb.yuv",
+ "xfb_sha256": "d3043fafff1fe852be05186c8db4af104f4714dbed2f441bfab8f0fd89e9b41e",
+ "png_sha256": "d7e6ce7d4814c83a414baca73508312bd3cba01e81e2e17a8703698ecd9b29d9",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ },
+ {
+ "capture": "08-storage-flat-actions",
+ "completed_frames": 0,
+ "input": "XTest -> Dolphin GameCube controller -> SDK Controller.GetState(0)",
+ "capture_source": "Complete X11 client, guest paused at VIDEO_WaitVSync after GX_CopyDisp/GX_DrawDone",
+ "native_boundaries": 522,
+ "xfb": {
+ "width": 640,
+ "height": 480,
+ "efb_height": 480,
+ "vi_tv_mode": 0,
+ "vi_scan_bits": 0,
+ "format": "YUYV422",
+ "source": "Native GX_CopyDisp output, read after GX_DrawDone before VIDEO_WaitVSync"
+ },
+ "xfb_source": "/workspace/artifacts/ui-sounds/review-02/08-storage-flat-actions-xfb.yuv",
+ "xfb_sha256": "4037f693492283530a59d7d28a2a110aa97129af050137e3a74f8738dd6e972c",
+ "png_sha256": "7bdbabdf7af7c2fcdc07c93b7d93696bad21185f1e181a443cbe0a91c66a29b2",
+ "conversion": "BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition"
+ }
+]
diff --git a/VideoMode/Design/ui-sounds/profile-comparison.json b/VideoMode/Design/ui-sounds/profile-comparison.json
new file mode 100644
index 0000000..907bb4d
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/profile-comparison.json
@@ -0,0 +1,14 @@
+{
+ "scope": "Dolphin guest clock, Video cube, High blur, Subtle motion, VSync; current Medium UI volume with unavailable IPL and NoAudioOutput; not hardware",
+ "baseline_source": "../crisp-icons-detail/profile-high",
+ "baseline_dol_sha256": "2942fffaf07bd70a92a9aa3bc75273150e9ee0c690305f0ba3b6044c2e3bbd51",
+ "dol_sha256": "8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c",
+ "samples": 96,
+ "warmup": 30,
+ "baseline_frame_ms": 16.68089583333333,
+ "frame_ms": 16.68084375,
+ "baseline_active_ms": 4.507760416666667,
+ "active_ms": 4.51321875,
+ "active_delta_ms": 0.0054583333333330306,
+ "limitation": "The SDK and managed heap changed. This is a quiet/unavailable-audio workload comparison; it does not isolate audio overhead or measure active mixing."
+}
diff --git a/VideoMode/Design/ui-sounds/profile-high-subtle-medium/frames.csv b/VideoMode/Design/ui-sounds/profile-high-subtle-medium/frames.csv
new file mode 100644
index 0000000..f192c05
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/profile-high-subtle-medium/frames.csv
@@ -0,0 +1,97 @@
+frame_us,prepare_us,submit_us,end_us,gpu_wait_us,retrace_us,capture_us,blur_us,draws,triangles,begin_copy_us,gate_us,width,height,scan,face,editing
+16681,782,3677,12190,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12169,2478,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2478,151,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12186,4,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16682,781,3676,12191,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
+16682,780,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16678,783,3677,12186,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3676,12189,8,12168,2481,149,103,45234,3,0,640,480,1,1,0
+16679,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12189,8,12168,2480,153,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12169,2478,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12190,8,12169,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2480,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2479,152,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12187,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12190,4,12172,2479,149,103,45234,3,0,640,480,1,1,0
+16683,780,3678,12190,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16678,782,3677,12187,8,12167,2480,152,103,45234,3,0,640,480,1,1,0
+16683,781,3674,12191,8,12170,2479,150,103,45234,3,0,640,480,1,1,0
+16679,781,3678,12186,8,12166,2480,149,103,45234,3,0,640,480,1,1,0
+16684,781,3676,12189,8,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16679,783,3674,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16683,780,3677,12180,8,12160,2481,149,103,45234,3,0,640,480,1,1,0
+16678,782,3676,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16684,782,3675,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16678,781,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3675,12189,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16679,783,3676,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3677,12188,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12188,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,4,12171,2480,149,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3677,12188,8,12167,2480,152,103,45234,3,0,640,480,1,1,0
+16678,780,3676,12188,8,12168,2478,151,103,45234,3,0,640,480,1,1,0
+16683,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16679,781,3675,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16680,780,3677,12188,8,12168,2478,150,103,45234,3,0,640,480,1,1,0
+16679,783,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,4,12172,2479,152,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,151,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12169,2480,152,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,151,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2481,149,103,45234,3,0,640,480,1,1,0
+16683,780,3676,12191,8,12169,2481,150,103,45234,3,0,640,480,1,1,0
+16678,782,3677,12187,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16683,781,3677,12189,8,12168,2481,150,103,45234,3,0,640,480,1,1,0
+16679,781,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16684,781,3677,12188,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12188,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16681,780,3674,12191,8,12170,2479,150,103,45234,3,0,640,480,1,1,0
+16678,781,3678,12186,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12189,8,12168,2480,151,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,780,3678,12187,8,12167,2481,150,103,45234,3,0,640,480,1,1,0
+16681,782,3675,12189,4,12171,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12188,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12186,8,12166,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16683,781,3676,12189,8,12169,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16684,781,3677,12187,8,12167,2480,149,103,45234,3,0,640,480,1,1,0
+16679,782,3676,12189,8,12168,2480,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16678,781,3677,12188,8,12167,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12189,8,12168,2479,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12187,8,12166,2480,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12188,8,12167,2480,149,103,45234,3,0,640,480,1,1,0
+16681,782,3676,12189,8,12168,2477,151,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,4,12170,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3677,12187,8,12167,2479,151,103,45234,3,0,640,480,1,1,0
+16681,780,3676,12190,8,12169,2478,150,103,45234,3,0,640,480,1,1,0
+16681,782,3677,12180,8,12159,2481,149,103,45234,3,0,640,480,1,1,0
+16682,782,3676,12190,8,12169,2480,150,103,45234,3,0,640,480,1,1,0
+16680,781,3676,12188,8,12167,2479,150,103,45234,3,0,640,480,1,1,0
+16681,783,3677,12187,8,12166,2481,150,103,45234,3,0,640,480,1,1,0
+16681,781,3676,12188,8,12168,2480,149,103,45234,3,0,640,480,1,1,0
diff --git a/VideoMode/Design/ui-sounds/profile-high-subtle-medium/profile.json b/VideoMode/Design/ui-sounds/profile-high-subtle-medium/profile.json
new file mode 100644
index 0000000..a0e9d32
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/profile-high-subtle-medium/profile.json
@@ -0,0 +1,31 @@
+{
+ "scope": "Dolphin guest clock; normal interactive Video face, idle motion enabled; not hardware",
+ "samples": 96,
+ "warmup": 30,
+ "vsync": true,
+ "interrupted_during_sampling": false,
+ "observation_seconds": 90,
+ "dol_sha256": "8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c",
+ "mean_us": {
+ "frame_us": 16680.84375,
+ "prepare_us": 781.4166666666666,
+ "submit_us": 3676.4166666666665,
+ "end_us": 12188.0625,
+ "gpu_wait_us": 7.75,
+ "retrace_us": 12167.625,
+ "capture_us": 2479.7916666666665,
+ "blur_us": 150.20833333333334,
+ "draws": 103,
+ "triangles": 45234,
+ "begin_copy_us": 3,
+ "gate_us": 0
+ },
+ "frame_p95_us": 16683,
+ "active_mean_us": 4513.21875,
+ "managed_heap": {
+ "capacity_bytes": 8388608,
+ "arena_used_bytes": 2254320,
+ "collections": 0,
+ "scope": "post-window arena; not peak or live bytes"
+ }
+}
diff --git a/VideoMode/Design/ui-sounds/provenance.json b/VideoMode/Design/ui-sounds/provenance.json
new file mode 100644
index 0000000..0c004e9
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/provenance.json
@@ -0,0 +1,220 @@
+{
+ "runtime_source_commit": "82d6a4f00cbbf34cf394161709ce198a85ab3539",
+ "packaging_head": "82d6a4f00cbbf34cf394161709ce198a85ab3539",
+ "runtime_files_sha256": {
+ "Common/SampleDownload.cs": "f5dda0ae13da88975448d0e7c096416f4075ee38cf3cec9caaad72136d9803dd",
+ "Common/SampleFeedback.cs": "75fd89cc3177818a04487ec58dbd48c8314b8449528439ba2a0364a3515ec530",
+ "Common/SampleInput.cs": "d9e2d613be538e59f7d18e18bf20a565a8971e6fb68901f5f7a8ef59c4409680",
+ "Common/SampleRecord.cs": "f191f03179d29735c89feab297415fc7510b21b764e6f919b0892c0512ea0427",
+ "Common/SampleText.cs": "d8c4a062c4263118b8c533f399fdf74debbb2284d100ddcaa5e667327a470478",
+ "Directory.Build.props": "d6d1d937045d0faee52b0d950d33ec82ff201a4dc6c87098d7576705ee8afd14",
+ "VideoMode/Assets/IplFontData.g.cs": "8e363d96197db50e24f0cae41263099676b64f407b2164542364a97fe499b1c6",
+ "VideoMode/Assets/IplGlossData.g.cs": "421d9df52bf4e6e2c317e3aba354d34e085fdd2b69fdcb4221b30a654db1f7f6",
+ "VideoMode/CachedFooter.cs": "36f8d13f0a13cbc39552850013e71e71b52c99d38b8b3b0a8b1db3f9105d0d00",
+ "VideoMode/CachedFooterText.cs": "df0ab382fce631f9883cf0043542cecbccb3ee50bd4bb6e4a10bdf2544bd73ae",
+ "VideoMode/DolphinGraphics.targets": "d482ca112bb9b23eeb65ee388da5db4611f2cb68f7ff4dcf894aaa6206b4360a",
+ "VideoMode/GameCubeCanvas.cs": "6146ddd773cb3c9e9a99e2e637c7f8bff7e6f627a60e7d0ca4a740c5a81b5754",
+ "VideoMode/GameCubeStorageCanvas.cs": "011c25715199824d93cf58501e600d701f9754cf1c67bc21c04e48f98721254c",
+ "VideoMode/IndexedIcons.cs": "13c08cfdea3f9ba2d1037a67747ee32ecc16181fdebdc119e6c3dfc96c507aa1",
+ "VideoMode/IndexedRims.cs": "7ef2e47da8392eb55a1e7a8d65cf3be2d9d745797fe7539481d3dc67c0d7dde3",
+ "VideoMode/InnerGlassBlur.cs": "f946cd2ba2a826a3d0988ba674bcde00f033854e1d9c02e1cc5126c53f80a913",
+ "VideoMode/IplBrowser.cs": "5aa0143b0ef8d1c51959f538f74ddaab036b2a0181c78e1cf95c62e20551008e",
+ "VideoMode/IplBrowserFixture.cs": "8ab80d11a5f9ba37b0818370fb8f010b695900d95985d9f4a91969eb00ec7022",
+ "VideoMode/IplBrowserRenderer.cs": "f22e42afbd32b3fbb7997e3dd6eecfd3c38f6f1be3d78b8a9b849ad49c83ef25",
+ "VideoMode/IplCamera.cs": "c9b75d1cc6e9d2cc82e817152b6bdc0041589d8fa747763ff69487bc98c3e265",
+ "VideoMode/IplCardOperations.cs": "8e212722781826efd07adfad2c2fb65a7623e1daa067eb046af27db377b10041",
+ "VideoMode/IplCubeMotion.cs": "4d1005887f65b8978cadd287c7542665e6ea41f63b0f12639126c83d16de897e",
+ "VideoMode/IplDetailLayout.cs": "a4412bea4e44033cc71ae5124730b7db1295ed9391fadcd8928e0073681a8f42",
+ "VideoMode/IplFlatMenuRenderer.cs": "405bea001f237596bd7c33a8e3a41acb0e39469bdf8087f2837b9ea34932ddb9",
+ "VideoMode/IplFrameProfiler.cs": "be86a88e7ade0da318ec8465c0364d9440d099a8182c3fcfae1cebb9b57fe62b",
+ "VideoMode/IplGlassBlur.cs": "b6db0b6e857ba16bcb71c03a55068af1f7bbe7117e3317cf343c2e37871aeacf",
+ "VideoMode/IplGlassEnvironment.cs": "e009681a408e2dfa4f995af93516bb221b867786cf10fbadd00117eeee12ddad",
+ "VideoMode/IplGlassOptics.cs": "7f12079bc7dbb3d866abf1a049d581289775acb9d46bc2e413cdccf46c4e13c9",
+ "VideoMode/IplGlossEffect.g.cs": "bec2ec54c3c9fb6be60547077f981ea169ad5a570ea95d3db12fc79709cc43d6",
+ "VideoMode/IplHardwareReporter.cs": "55c1678afc6868230385c39c578e77740bcc9464e43eb78207456d3ee8aecdd9",
+ "VideoMode/IplIconLayout.cs": "126de31e6d3490f9639fa64bc276e84cb914338c67ddc1dd93a9986694fbdf74",
+ "VideoMode/IplLibrary.cs": "5747a1fe654bdbc75ebe5aba1916badb4df18b468dce387a9680ee726a40eb78",
+ "VideoMode/IplLighting.cs": "946052988b6a615fe1d08675461fbc975e1742f9a7a0b6d4344ecc69a2c13351",
+ "VideoMode/IplNativeBrowser.cs": "295f879c0a7c7a20d7779f1ff0ee08dde098dfde8f148124671d3287e09c2150",
+ "VideoMode/IplNativeCards.cs": "f7847a5a95efd8ea9de078d3b639b4c54e9c6acec672875e55b48bd2bda778d6",
+ "VideoMode/IplNumberCacheState.cs": "4ce652944a55a3c61755abf97ef8867559a2ec15101e5f4334fbd15a95ae7fde",
+ "VideoMode/IplOverlayLayout.cs": "000bc1a832da5dee702194d8704e8c2716266d74bd5a1e262c4dca1850968da4",
+ "VideoMode/IplPerformanceOverlay.cs": "d82c5c89267610042d0b79ce2035e37d136d8483d79207076ac0464e100e65dc",
+ "VideoMode/IplPerformanceStats.cs": "21e03eb3423c40cf6ec717b5bf4e976692a2844a3fc88c1601c54355b5470eb9",
+ "VideoMode/IplPreferences.cs": "7b9d4860c26b880a9371c2d8e3560f0f9468798cbadded9f10146580f8abc255",
+ "VideoMode/IplPreferencesStore.cs": "e1484c70a3310a53ce45122aa1a8af67be47259ff7ae8523fab0fdc5926bc817",
+ "VideoMode/IplRenderer.cs": "e1d90cf3207b0bde4839a287d0dbc90eb757a1a562d2999b57a71191861a937e",
+ "VideoMode/IplRimCommands.cs": "5abc951cb076bff1913bee5446df08b08cee3d6b4c2922ef7d72a58b87793211",
+ "VideoMode/IplSdDirectory.cs": "6c76dd16ffcadf055901f978bf1ef21bffe962f3635e8b180e3a261fbe194a0f",
+ "VideoMode/IplSdPage.cs": "6d90c2821df45734adff70dc772409883cc975e29091d16c9f189e71fa321ef1",
+ "VideoMode/IplSealedGlassGeometry.cs": "0a1bf7a57ed574b2d63507ef8df80157c70b76416ac7d19dd40b4e7b4fb3f208",
+ "VideoMode/IplSelectorPose.cs": "03fdcc0c0e0cf7bdd0f051bb6b758bb740da150996be1f7aa0fdb530b958bd0a",
+ "VideoMode/IplShell.cs": "9c001b72073885620fae13bba712db5c091cb754f5cc5c7594a49b9bdf3e83c0",
+ "VideoMode/IplStorageBrowser.cs": "b7dfb45247e4fda2122038c9147d72e3d4ccbbee9141f13562f53018869f4601",
+ "VideoMode/IplStorageIcons.cs": "cd6339ee356cc9354bbd4e924e190fb6c3898e10be0e510d788c60da38e9dc2c",
+ "VideoMode/IplStorageLayout.cs": "7ea05e872cfc2f6f47447c257b4c72dd9ae701837442ac9cfdc669598929a2da",
+ "VideoMode/IplStorageRenderer.cs": "6eb9fcb943b63099e8e55acb12699e0b67767f8f60259104a80e69624fc2bde5",
+ "VideoMode/IplSwiss.cs": "d81cda883919ae40cb0fbce893334512bcd2b48a32b6051000f42dbeb9ef5941",
+ "VideoMode/IplUiAudio.cs": "00e6c6b6acd3eae594e3f20d9cb74b53c0c962965b2a0c046cbfd28c6a472bba",
+ "VideoMode/IplUiAudioPolicy.cs": "8eb06536ad30fca6c72a16c6b66b5d57aeb14f9cb0e610a1eca3e419589534fc",
+ "VideoMode/IplUiSounds.cs": "4ce627245adcd665631937c1bb8771ca0d407068292cad1f1494d3a23d80da91",
+ "VideoMode/Program.cs": "712f776852684a801db1991c5510787e5d44f9eba6ff14fda8391da8bbdb2967",
+ "VideoMode/Properties/launchSettings.json": "4ad3d50f24ebf07625c7c6f49f73872b920243bd071f47092b1fe85966036bdb",
+ "VideoMode/SealedGlassShell.cs": "509a0ab7b8af7a2af8cebf03a54a835341b8d186a274ec52eb7332d33626baf7",
+ "VideoMode/VideoMode.csproj": "3845937851d956962d67a3d850a9921bd2469ef87d340bf915ac2245173c6dc0",
+ "VideoMode/VideoModeMenu.cs": "482b9f8608221bfb50ece204103c08b309f002c2158422234121fd026461df01",
+ "VideoMode/VideoModeScanReview.cs": "5de753da126431b6b7a09d6d3ca584c23e4a49a016c51d6674989b6918a1c9ad",
+ "VideoMode/gloss.dndfx.json": "ecc00f5e357da9c36099d8a879f7561249ca8e57b26182c63fd45e7c9e1316fa",
+ "global.json": "a521912cd0d75c95d1fba7226cc18b1e68cce810b97043262fda1a7c8bb4b518"
+ },
+ "capture_tool_snapshot": "capture-tool-snapshot.json",
+ "sdk_package": "0.1.0-preview.347.1",
+ "sdk_commit": "8f5870f68ec7f5eb1e8103c13af42ce082a3516f",
+ "package_content_sha512": {
+ "DolphinDotNet.Core/0.1.0-preview.347.1": "hCBLA+g/MXAjonEmxoZm8bZVHfGAkQIiXKkOfaSYaTzuj2g12l7MU3agvuVdA+jFQCgpATktEZDt24XXg8BvPA==",
+ "DolphinDotNet.GameCube/0.1.0-preview.347.1": "04hkURabHWjJmnWGyNGQlnegxvMUWh2L1BhmwUIHVjy0jsNIsr/42btDG2wvBZK9T8hR7VdNxE/kL/4Os3dgRw=="
+ },
+ "toolchain": "ghcr.io/extremscorner/libogc2@sha256:13bb658d3f18903816617223f5d7c6f776d3db3ea806aae67f8d35a7a69d4c85",
+ "toolchain_record": "toolchain-provenance.json",
+ "native_makefile_sha256": "129611bf543bdc487742bf5b6f5735d99cd97079cf6f8876dabaaea4a596423b",
+ "standard_build_command": "dotnet build VideoMode/VideoMode.csproj -c Release -p:DndBuildNative=true -p:DndBuildBackend=Docker -p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true",
+ "managed_build_command": "dotnet build VideoMode/VideoMode.csproj -c Release -p:DndBuildNative=false -p:DndBuildBackend=Docker -p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true",
+ "aot_bundle_command": "dotnet /DolphinDotNet.Compiler.dll --bundle VideoMode/bin/Release/net8.0/VideoMode.dll VideoMode/obj/Release/net8.0/native --sample-controls",
+ "native_link_command": "source /tmp/ui-sounds-toolchain/activate.sh && make -j2",
+ "native_link_directory": "VideoMode/obj/Release/net8.0/native",
+ "log_files_sha256": {
+ "/tmp/ui-sounds-final-managed.log": "fed0d396eb7d9914cb4a1213e85c53d31d8801eb81eb874eaad76d9c1bc3b892",
+ "/tmp/ui-sounds-final-bundle.log": "3effc9c5b038b049850ee7c484b23d083338b0eccfd60554d3e01d235a13eca9",
+ "/tmp/ui-sounds-final-native.log": "6791e4e0404d64758a2748c2e73106e1088a52f665029dcd7a23319a8592787e",
+ "/workspace/artifacts/ui-sounds/review-02/emulator.log": "88ba02232dc97c774fc76ffdc4de99326ad7a5694237ae3962e8a21b1a3eeb01"
+ },
+ "build_limitation": "Final build used managed-only optimized flags, published SDK compiler --bundle, then unchanged generated Makefile with the identical pinned toolchain relocated to /tmp. Initial Docker VFS setup exceeded workspace space.",
+ "performance_flags": {
+ "IplNextSdk": true,
+ "IplSharedGlass": true,
+ "IplBatchedBlur": true,
+ "IplBatchedText": true,
+ "IplRetainedTint": true,
+ "IplConsoleServices": true,
+ "IplMemoryCardServices": true
+ },
+ "normal_dol": {
+ "file": "VideoMode.dol",
+ "bytes": 3670560,
+ "sha256": "8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c",
+ "mode": "Normal interactive; no diagnostic/review timestep or application-state patch"
+ },
+ "normal_elf": {
+ "bytes": 22849716,
+ "sha256": "c5e2185b41d26dd609055f7af1589b7bc0b2ac86be1d8cd878aa0be69047a782"
+ },
+ "emulator": "Dolphin 2503 / OpenGL / Mesa software rendering / Linux Xvfb",
+ "audio_output": "NoAudioOutput",
+ "audio_qualification": "None: no original IPL, unavailable caption reviewed in native frame 03; Dolphin AESND HLE ucode CRC 8d527c50 unsupported/forced AX; no audible playback established",
+ "native_capture": "Completed GX_CopyDisp XFB after GX_DrawDone before VIDEO_WaitVSync; BT.601 limited-range YUYV422 to RGB8; no crop/resize/composition",
+ "verified_captures": [
+ {
+ "capture": "01-options-cube-medium",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 199,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "b797b8ecc5e6f24cf2567ffdd254bacdaad9fe0e9ec06bb00b67969a2034ab9e",
+ "png_sha256": "20067772485ce7d5ef378c75f19a786afa70c1f0ceba1e88c537c99d7b024e2f"
+ },
+ {
+ "capture": "02-options-ui-sounds-row",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 278,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "b6f21882f913ae2c034ccbeccbb3bc60a49ae0e248cf7e8f932ea1b4951d7278",
+ "png_sha256": "6e7a86cfce74be23894655588ec470aa86794ab9f69c4c52db089d182c69a484"
+ },
+ {
+ "capture": "03-ui-sounds-medium-editor",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 297,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "0bc4184d37ac28690ef836610971b04fe1842289eabae65945a99e58349b4e6d",
+ "png_sha256": "2a29ab5c94ef08ade577d976cb0cffd7fc6fe2b21fc680345983276d2677e994"
+ },
+ {
+ "capture": "04-ui-sounds-off-draft",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 333,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "aab8ca5e1ca15c69f378a7e71fc65316c9212b8375804a33725d0a60ab128a5d",
+ "png_sha256": "c666bd7797caf121cc9f3490f936058cec586c6064714da9c24532e18922e2fd"
+ },
+ {
+ "capture": "05-ui-sounds-off-confirmed",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 353,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "ccc220dbde47a12eeecee62f21e6c0cf678fe2fef02059ccb766f3408a2f840e",
+ "png_sha256": "37ffaf2c4ce2d87e272e6da23c34eeb794ac356062c87e425da2e0997784f9f4"
+ },
+ {
+ "capture": "06-ui-sounds-low-draft",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 390,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "48f14067ee546b0f7c66b011d4081aedb914a6583dcef4552850317ad86f7ea6",
+ "png_sha256": "6e9818123655fd5d0dcbec6849d2124f312bb3d9bcbef36199480a2b3388278a"
+ },
+ {
+ "capture": "07-ui-sounds-cancel-keeps-off",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 409,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "d3043fafff1fe852be05186c8db4af104f4714dbed2f441bfab8f0fd89e9b41e",
+ "png_sha256": "d7e6ce7d4814c83a414baca73508312bd3cba01e81e2e17a8703698ecd9b29d9"
+ },
+ {
+ "capture": "08-storage-flat-actions",
+ "width": 640,
+ "height": 480,
+ "vi_scan_bits": 0,
+ "native_boundaries": 522,
+ "xfb_bytes": 614400,
+ "xfb_sha256": "4037f693492283530a59d7d28a2a110aa97129af050137e3a74f8738dd6e972c",
+ "png_sha256": "7bdbabdf7af7c2fcdc07c93b7d93696bad21185f1e181a443cbe0a91c66a29b2"
+ }
+ ],
+ "profile_comparison": "profile-comparison.json",
+ "copied_files_sha256": {
+ "README.md": "0601844d9bcedf2abaffc624148aa172560870048c8d36d09069a4af86ce0029",
+ "baseline-high/frames.csv": "7b019630a9380521184169031bf2df1efb1a8e21e434c33d4e56122c3e197e08",
+ "baseline-high/profile.json": "6cc6300bccbb94313da81361395ef7427ced333c33770281ec3881965c16e76c",
+ "capture-tool-snapshot.json": "e312aed7e0f105ed7121f0dc94755b7074eff12c06cf443ecf345bd40e1aefd5",
+ "native/01-options-cube-medium-xfb.png": "20067772485ce7d5ef378c75f19a786afa70c1f0ceba1e88c537c99d7b024e2f",
+ "native/02-options-ui-sounds-row-xfb.png": "6e7a86cfce74be23894655588ec470aa86794ab9f69c4c52db089d182c69a484",
+ "native/03-ui-sounds-medium-editor-xfb.png": "2a29ab5c94ef08ade577d976cb0cffd7fc6fe2b21fc680345983276d2677e994",
+ "native/04-ui-sounds-off-draft-xfb.png": "c666bd7797caf121cc9f3490f936058cec586c6064714da9c24532e18922e2fd",
+ "native/05-ui-sounds-off-confirmed-xfb.png": "37ffaf2c4ce2d87e272e6da23c34eeb794ac356062c87e425da2e0997784f9f4",
+ "native/06-ui-sounds-low-draft-xfb.png": "6e9818123655fd5d0dcbec6849d2124f312bb3d9bcbef36199480a2b3388278a",
+ "native/07-ui-sounds-cancel-keeps-off-xfb.png": "d7e6ce7d4814c83a414baca73508312bd3cba01e81e2e17a8703698ecd9b29d9",
+ "native/08-storage-flat-actions-xfb.png": "7bdbabdf7af7c2fcdc07c93b7d93696bad21185f1e181a443cbe0a91c66a29b2",
+ "native/events.json": "4080e1a7415bb4f36d2cbecb72e880225aee461aabb17dfcb198cd878b60615f",
+ "profile-comparison.json": "5ee24db6b5ff1eb57005b9ab0494cf6a274f1cfc60be0746c2778adcedb6e87e",
+ "profile-high-subtle-medium/frames.csv": "b3c346dc2d793716740a1fbeb01108055ae212033e91ba4c90b60eadeef584ae",
+ "profile-high-subtle-medium/profile.json": "4b1afe014f8f8b6a716c29bd6cd2b71ca10f9873c4057a236cd1d6a137f64166",
+ "toolchain-provenance.json": "f7f6ae86a427d01f9f6c71160cb7131e827f84c16c9b50ba63aa3f9edd320de8",
+ "action-index.md": "c56eb873665adc43374dee4af5de0ec8a5f38aef59721e0847934b3678858a67",
+ "budget-audit.md": "ddb83b0b039d64ceffb385648d7ca3dc2db7710456f1cb5412cdb178c9704c91"
+ },
+ "excluded_raw_files": "Raw DOL/ELF/YUV/PPM and logs remain outside git; no ROM/audio assets bundled"
+}
diff --git a/VideoMode/Design/ui-sounds/toolchain-provenance.json b/VideoMode/Design/ui-sounds/toolchain-provenance.json
new file mode 100644
index 0000000..fa40f7c
--- /dev/null
+++ b/VideoMode/Design/ui-sounds/toolchain-provenance.json
@@ -0,0 +1,51 @@
+{
+ "image": "ghcr.io/extremscorner/libogc2@sha256:13bb658d3f18903816617223f5d7c6f776d3db3ea806aae67f8d35a7a69d4c85",
+ "manifest": [
+ {
+ "Config": "blobs/sha256/ba9cd72a4bd027736197633b7510d269e07a2bf2894ef95018a2f2606d32b859",
+ "RepoTags": null,
+ "Layers": [
+ "blobs/sha256/7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e",
+ "blobs/sha256/d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087",
+ "blobs/sha256/d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022",
+ "blobs/sha256/b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915",
+ "blobs/sha256/47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1"
+ ],
+ "LayerSources": {
+ "sha256:47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 261555200,
+ "digest": "sha256:47ab62783ec05682c10f09fe3168383ad2e13678a4beafe987b6104ba3aefea1"
+ },
+ "sha256:7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 77875200,
+ "digest": "sha256:7cc7fe68eff66f19872441a51938eecc4ad33746d2baa3abc081c1e6fe25988e"
+ },
+ "sha256:b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 959693824,
+ "digest": "sha256:b0e8c0a6e499cea0ca98fdb006a31ae499a23b8a6be7e62a1659e0c2da1cd915"
+ },
+ "sha256:d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 50606592,
+ "digest": "sha256:d5b63a5b42a81d048afe05a5b0e7223d741f6ee83532738f2d5d2383cce12022"
+ },
+ "sha256:d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087": {
+ "mediaType": "application/vnd.oci.image.layer.v1.tar",
+ "size": 769807872,
+ "digest": "sha256:d9157044e15d4877d14cf976e8bc76fec765ff674b32c8d517bcb1cadfd1a087"
+ }
+ }
+ }
+ ],
+ "selected_prefixes": [
+ "opt/devkitpro/devkitPPC",
+ "opt/devkitpro/libogc2",
+ "opt/devkitpro/tools",
+ "opt/devkitpro/portlibs/ppc",
+ "opt/devkitpro/portlibs/gamecube"
+ ],
+ "uncompressed_file_bytes": 728025228
+}
diff --git a/VideoMode/DolphinGraphics.targets b/VideoMode/DolphinGraphics.targets
index a04de3b..cb089f9 100644
--- a/VideoMode/DolphinGraphics.targets
+++ b/VideoMode/DolphinGraphics.targets
@@ -3,6 +3,7 @@
true
1
false
+ None
IplEdgeAA
diff --git a/VideoMode/IplAntialiasingPolicy.cs b/VideoMode/IplAntialiasingPolicy.cs
new file mode 100644
index 0000000..af7bff2
--- /dev/null
+++ b/VideoMode/IplAntialiasingPolicy.cs
@@ -0,0 +1,16 @@
+// Native AA is useful for the 3D cube, but its shorter EFB softens flat text.
+// Keep page selection separate from SDK display changes, which happen between
+// frames. An allocation failure disables further AA requests for this session.
+internal sealed class IplAntialiasingPolicy
+{
+ internal bool Enabled {get;private set;}
+ internal bool CubeVisible {get;private set;}=true;
+ internal IplAntialiasingPolicy(bool enabled){Enabled=enabled;}
+ internal bool Wanted(VideoModeSettings video)=>Enabled&&CubeVisible&&video.Resolution!=2;
+ internal bool SetCubeVisible(bool visible)
+ {
+ if(CubeVisible==visible)return false;
+ CubeVisible=visible;return true;
+ }
+ internal void Disable(){Enabled=false;}
+}
diff --git a/VideoMode/IplBrowser.cs b/VideoMode/IplBrowser.cs
index e7c99a7..e5d6481 100644
--- a/VideoMode/IplBrowser.cs
+++ b/VideoMode/IplBrowser.cs
@@ -28,6 +28,9 @@ internal interface IIplBrowserCanvas
internal sealed class IplBrowser : IDisposable
{
private readonly IIplBrowserSource source;
+ private readonly IIplUiSoundSink? sounds;
+ private bool awaitingCardOperation;
+ private int observedOperationVersion;
internal IplBrowserItem?[] Items {get;private set;}=new IplBrowserItem?[6];
private bool sdList,cardList;
internal bool Compact=>Kind!=IplBrowserKind.Games;
@@ -62,70 +65,107 @@ internal sealed class IplBrowser : IDisposable
internal string SlotCaption(int slot)=>(source as IIplCardOperations)?.SlotCaption(slot)??"Unavailable";
internal bool CanCopy=>Selected!=null&&(source as IIplCardOperations)?.CanCopy(Selected)==true;
internal bool CanMove=>Selected!=null&&(source as IIplCardOperations)?.CanMove(Selected)==true;
- internal void SwitchSlot(int slot){if(Kind==IplBrowserKind.MemoryCards&&Panel==IplBrowserPanel.Grid&&!Busy)Open(Kind,"",slot);}
+ internal void SwitchSlot(int slot){if(Kind==IplBrowserKind.MemoryCards&&Panel==IplBrowserPanel.Grid&&!Busy)OpenAt(Kind,"",slot,slot==Slot?IplUiSound.None:IplUiSound.ChangeField);}
private int SourceVersion=>(source as IIplBrowserNotifications)?.Version??0;
private readonly float[] focus=new float[IplStorageLayout.Capacity];
internal float Focus(int item)=>focus[item];
- internal IplBrowser(IIplBrowserSource source){this.source=source;}
+ internal IplBrowser(IIplBrowserSource source,IIplUiSoundSink? sounds=null){this.source=source;this.sounds=sounds;}
internal void Open(IplBrowserKind kind,string path="",int slot=0)
- {Kind=kind;ResizePage();Path=path;Slot=slot;PageStart=Selection=0;Panel=IplBrowserPanel.Grid;Active=true;error="";Array.Clear(Items,0,Items.Length);Count=0;Revision++;ContentRevision++;try{source.Begin(kind,path,slot,false);observedVersion=SourceVersion;if(!source.Busy)Load();}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}}
+ {OpenAt(kind,path,slot,IplUiSound.EnterMenu);}
+ private void Emit(IplUiSound cue){if(cue!=IplUiSound.None)sounds?.Emit(cue);}
+ private void OpenAt(IplBrowserKind kind,string path,int slot,IplUiSound cue)
+ {
+ Kind=kind;ResizePage();Path=path;Slot=slot;PageStart=Selection=0;Panel=IplBrowserPanel.Grid;Active=true;awaitingCardOperation=false;error="";Array.Clear(Items,0,Items.Length);Count=0;Revision++;ContentRevision++;
+ try{source.Begin(kind,path,slot,false);observedVersion=SourceVersion;Emit(source.Busy||Load()?cue:IplUiSound.CancelEdit);}
+ catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}
+ }
private void ResizePage(){if(Items.Length!=PageSize)Items=new IplBrowserItem?[PageSize];(source as IIplBrowserPageSize)?.SetPageSize(PageSize);}
- internal void ToggleView(){if(!Compact||Panel!=IplBrowserPanel.Grid||Busy)return;int absolute=PageStart+Selection;if(Kind==IplBrowserKind.Sd)sdList=!sdList;else cardList=!cardList;ResizePage();PageStart=absolute/PageSize*PageSize;Selection=absolute%PageSize;Load();}
+ internal void ToggleView(){if(!Compact||Panel!=IplBrowserPanel.Grid||Busy)return;int absolute=PageStart+Selection;if(Kind==IplBrowserKind.Sd)sdList=!sdList;else cardList=!cardList;ResizePage();PageStart=absolute/PageSize*PageSize;Selection=absolute%PageSize;Emit(Load()?IplUiSound.ChangeField:IplUiSound.CancelEdit);}
private IIplBrowserCatalog? Catalog=>Compact?source as IIplBrowserCatalog:null;
internal IplItemKind ItemKind(int index)=>Items[index]?.Kind??Catalog?.CatalogKind(index)??IplItemKind.File;
private IplBrowserItem? Item(int index)=>Items[index]??Catalog?.CatalogItem(index);
private void SelectItem(){if(Catalog!=null&&!ListView&&Count>0){Array.Clear(Items,0,Items.Length);Items[Selection]=Catalog.CatalogItem(Selection);}}
- private void Load(){error="";if(PageStart>=Total&&Total>0)PageStart=(Total-1)/PageSize*PageSize;Count=0;Array.Clear(Items,0,Items.Length);Revision++;
+ private bool Load(){error="";if(PageStart>=Total&&Total>0)PageStart=(Total-1)/PageSize*PageSize;Count=0;Array.Clear(Items,0,Items.Length);Revision++;
try{var catalog=Catalog;Count=catalog!=null?catalog.ReadCatalogPage(PageStart,PageSize):source.ReadPage(PageStart,Items);if(Count<0||Count>PageSize)throw new InvalidOperationException("Invalid browser page.");
if(!source.Busy)Selection=Math.Min(Selection,Math.Max(0,Count-1));
if(catalog!=null){if(ListView){for(int i=0;ifocus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step);}bool busy=source.Busy;try{source.Tick();if((busy&&!source.Busy)||SourceVersion!=observedVersion){if(SourceVersion!=observedVersion)ContentRevision++;if(Kind==IplBrowserKind.MemoryCards)Panel=IplBrowserPanel.Grid;Load();}}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}}
+ return true;
+ }catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Count=0;Array.Clear(Items,0,Items.Length);return false;}}
+ internal void Tick(float dt,bool reducedMotion=false)
+ {
+ if(!Active)return;ReducedMotion=reducedMotion;AnimationTime+=dt;
+ for(int i=0;ifocus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step);}
+ bool busy=source.Busy;
+ try{
+ source.Tick();IplUiSound cue=IplUiSound.None;
+ bool completed=awaitingCardOperation&&!source.Busy;
+ if(completed){
+ awaitingCardOperation=false;
+ if(source is IIplCardOperationNotifications result&&result.OperationVersion!=observedOperationVersion)
+ cue=result.OperationResult==IplCardOperationResult.Succeeded?IplUiSound.ConfirmEdit:result.OperationResult==IplCardOperationResult.None?IplUiSound.None:IplUiSound.CancelEdit;
+ }
+ if((busy&&!source.Busy)||SourceVersion!=observedVersion){
+ if(SourceVersion!=observedVersion)ContentRevision++;if(Kind==IplBrowserKind.MemoryCards)Panel=IplBrowserPanel.Grid;
+ if(!Load()&&completed)cue=IplUiSound.CancelEdit;
+ }
+ Emit(cue);
+ }catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";if(awaitingCardOperation){awaitingCardOperation=false;Emit(IplUiSound.CancelEdit);}}
+ }
internal void Direction(int x,int y)
{
- if(Busy)return;
- if(Panel==IplBrowserPanel.Launch||Panel==IplBrowserPanel.CardConfirm){if(x!=0||y!=0)Choice=x!=0?(x>0?1:0):(y<0?1:0);return;}
- if(Panel==IplBrowserPanel.CardActions){int choice=Choice+(x!=0?x:-y);Choice=choice<0?3:choice>3?0:choice;return;}
+ if(Busy||(x==0&&y==0))return;
+ if(Panel==IplBrowserPanel.Launch||Panel==IplBrowserPanel.CardConfirm){int before=Choice;Choice=x!=0?(x>0?1:0):(y<0?1:0);if(Choice!=before)Emit(IplUiSound.ChangeRow);return;}
+ if(Panel==IplBrowserPanel.CardActions){int before=Choice,choice=Choice+(x!=0?x:-y);Choice=choice<0?3:choice>3?0:choice;if(Choice!=before)Emit(IplUiSound.ChangeRow);return;}
if(Panel!=IplBrowserPanel.Grid||Total==0)return;
int next=PageStart+Selection+(x!=0?x:-y*Columns);if(next<0)next=Total-1;if(next>=Total)next=0;
- int page=next/PageSize*PageSize;Selection=next%PageSize;if(page!=PageStart){PageStart=page;Load();}else try{SelectItem();}catch(Exception e){error=e.Message??"Could not read this entry. Refresh storage.";}
+ if(next==PageStart+Selection)return;
+ int page=next/PageSize*PageSize;Selection=next%PageSize;bool loaded=true;if(page!=PageStart){PageStart=page;loaded=Load();}else try{SelectItem();}catch(Exception e){error=e.Message??"Could not read this entry. Refresh storage.";loaded=false;}
+ Emit(loaded?IplUiSound.ChangeRow:IplUiSound.CancelEdit);
}
internal void Confirm(VideoModeSettings video)
{
if(Busy)return;
if(Panel==IplBrowserPanel.CardActions){
- if(Choice==0){Panel=IplBrowserPanel.Grid;return;}
- if(Choice==1&&!CanCopy){error="This saved file is copy protected.";return;}
- if(Choice==2&&!CanMove){error="This saved file is move protected.";return;}
- CardAction=Choice==1?IplCardAction.Copy:Choice==2?IplCardAction.Move:IplCardAction.Delete;Choice=0;Panel=IplBrowserPanel.CardConfirm;return;
+ if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;}
+ if(Choice==1&&!CanCopy){error="This saved file is copy protected.";Emit(IplUiSound.CancelEdit);return;}
+ if(Choice==2&&!CanMove){error="This saved file is move protected.";Emit(IplUiSound.CancelEdit);return;}
+ CardAction=Choice==1?IplCardAction.Copy:Choice==2?IplCardAction.Move:IplCardAction.Delete;Choice=0;Panel=IplBrowserPanel.CardConfirm;Emit(IplUiSound.OpenEditor);return;
}
if(Panel==IplBrowserPanel.CardConfirm){
- if(Choice==0){Panel=IplBrowserPanel.Grid;return;}
- if(CardAction==IplCardAction.Format&&FormatStage==1){FormatStage=2;Choice=0;return;}
- try{if(source is IIplCardOperations cards)cards.Execute(CardAction,Selected);else throw new InvalidOperationException("Card service unavailable.");error="";Panel=source.Busy?IplBrowserPanel.Progress:IplBrowserPanel.Grid;if(!source.Busy)Load();}
- catch(Exception e){error=e.Message??"Memory-card operation failed. Refresh the slot.";Panel=IplBrowserPanel.Grid;}
+ if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;}
+ if(CardAction==IplCardAction.Format&&FormatStage==1){FormatStage=2;Choice=0;Emit(IplUiSound.ConfirmEdit);return;}
+ try{
+ observedOperationVersion=(source as IIplCardOperationNotifications)?.OperationVersion??0;
+ if(source is IIplCardOperations cards)cards.Execute(CardAction,Selected);else throw new InvalidOperationException("Card service unavailable.");
+ error="";awaitingCardOperation=source.Busy;Panel=source.Busy?IplBrowserPanel.Progress:IplBrowserPanel.Grid;
+ IplUiSound cue=IplUiSound.ConfirmEdit;
+ if(source is IIplCardOperationNotifications result&&result.OperationVersion!=observedOperationVersion&&(result.OperationResult==IplCardOperationResult.Failed||result.OperationResult==IplCardOperationResult.Cancelled))cue=IplUiSound.CancelEdit;
+ if(!source.Busy&&!Load())cue=IplUiSound.CancelEdit;
+ Emit(cue);
+ }
+ catch(Exception e){error=e.Message??"Memory-card operation failed. Refresh the slot.";awaitingCardOperation=false;Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);}
return;
}
- if(Panel==IplBrowserPanel.Info){Panel=IplBrowserPanel.Grid;return;}
- if(Panel==IplBrowserPanel.Launch){if(Choice==0){Panel=IplBrowserPanel.Grid;return;}if(Selected!=null)try{source.Open(Selected,video);error="";}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}return;}
+ if(Panel==IplBrowserPanel.Info){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.Back);return;}
+ if(Panel==IplBrowserPanel.Launch){if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;}if(Selected!=null)try{source.Open(Selected,video);error="";Emit(IplUiSound.ConfirmEdit);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}return;}
var item=Selected;if(item==null)return;
- if(item.Kind==IplItemKind.Save){try{Information=source.Describe(item);Choice=0;Panel=IplBrowserPanel.CardActions;}catch(Exception e){error=e.Message??"Could not read this save.";}return;}
- if(item.Kind==IplItemKind.CardFormat){CardAction=IplCardAction.Format;FormatStage=1;Choice=0;Panel=IplBrowserPanel.CardConfirm;return;}
+ if(item.Kind==IplItemKind.Save){try{Information=source.Describe(item);Choice=0;Panel=IplBrowserPanel.CardActions;Emit(IplUiSound.OpenEditor);}catch(Exception e){error=e.Message??"Could not read this save.";Emit(IplUiSound.CancelEdit);}return;}
+ if(item.Kind==IplItemKind.CardFormat){CardAction=IplCardAction.Format;FormatStage=1;Choice=0;Panel=IplBrowserPanel.CardConfirm;Emit(IplUiSound.OpenEditor);return;}
if(item.Kind==IplItemKind.Directory){Open(Kind,Path.Length==0?item.Path:Path+"/"+item.Path,Slot);return;}
- if(item.Kind==IplItemKind.Game||item.Kind==IplItemKind.Dol){Panel=IplBrowserPanel.Launch;Choice=0;return;}
- try{Information=source.Describe(item);Panel=IplBrowserPanel.Info;}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}
+ if(item.Kind==IplItemKind.Game||item.Kind==IplItemKind.Dol){Panel=IplBrowserPanel.Launch;Choice=0;Emit(IplUiSound.OpenEditor);return;}
+ try{Information=source.Describe(item);Panel=IplBrowserPanel.Info;Emit(IplUiSound.EnterMenu);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}
}
// B leaves the entire flat flow. Folder navigation has its own L action.
- internal void ParentDirectory(){if(Kind==IplBrowserKind.Sd&&Panel==IplBrowserPanel.Grid&&!Busy&&Path.Length>0)Open(Kind,IplPaths.Parent(Path),Slot);}
+ internal void ParentDirectory(){if(Kind==IplBrowserKind.Sd&&Panel==IplBrowserPanel.Grid&&!Busy&&Path.Length>0)OpenAt(Kind,IplPaths.Parent(Path),Slot,IplUiSound.Back);}
internal string Exit()
{
- string status="";
+ if(!Active)return "";string status="";bool cancelTransfer=Kind==IplBrowserKind.MemoryCards&&Busy;
if(Active&&Kind==IplBrowserKind.MemoryCards&&Busy)try{(source as IIplCardOperations)?.Cancel();}catch(Exception e){status=e.Message??"Transfer stopped. Check the destination card.";}
try{source.Dispose();}catch(Exception e){status=e.Message??"Storage could not close cleanly. Check the device.";}
- Active=false;Panel=IplBrowserPanel.Grid;Count=0;Array.Clear(Items,0,Items.Length);Revision++;return status;
+ Active=false;awaitingCardOperation=false;Panel=IplBrowserPanel.Grid;Count=0;Array.Clear(Items,0,Items.Length);Revision++;Emit(status.Length>0||cancelTransfer?IplUiSound.CancelEdit:IplUiSound.Back);return status;
}
- internal void Refresh(){if(Panel!=IplBrowserPanel.Grid)return;error="";PageStart=Selection=Count=0;Array.Clear(Items,0,Items.Length);Revision++;ContentRevision++;try{source.Begin(Kind,Path,Slot,true);if(!Busy)Load();}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}}
+ internal void Refresh(){if(Panel!=IplBrowserPanel.Grid)return;error="";PageStart=Selection=Count=0;Array.Clear(Items,0,Items.Length);Revision++;ContentRevision++;try{source.Begin(Kind,Path,Slot,true);Emit(Busy||Load()?IplUiSound.ChangeField:IplUiSound.CancelEdit);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}}
internal int ArtworkFrames(int index)=>Item(index)!=null?Math.Max(0,Math.Min(8,(source as IIplAnimatedArtwork)?.ArtworkFrames(Item(index)!)??1)):0;
internal int ArtworkDuration(int index,int frame)=>Math.Max(1,(source as IIplAnimatedArtwork)?.ArtworkDuration(Items[index]!,frame)??4);
internal bool ArtworkBounces(int index)=>(source as IIplAnimatedArtwork)?.ArtworkBounces(Items[index]!)??false;
diff --git a/VideoMode/IplCardOperations.cs b/VideoMode/IplCardOperations.cs
index 38031c7..d20fdc3 100644
--- a/VideoMode/IplCardOperations.cs
+++ b/VideoMode/IplCardOperations.cs
@@ -9,6 +9,15 @@ internal interface IIplCardOperations
}
internal interface IIplBrowserNotifications { int Version {get;} }
+// Terminal operation results are separate from card/catalog revisions: a probe
+// or thumbnail refresh must never announce a completed transfer.
+internal enum IplCardOperationResult { None, Succeeded, Failed, Cancelled }
+internal interface IIplCardOperationNotifications
+{
+ int OperationVersion {get;}
+ IplCardOperationResult OperationResult {get;}
+}
+
internal interface IIplAnimatedArtwork
{
int ArtworkFrames(IplBrowserItem item);int ArtworkDuration(IplBrowserItem item,int frame);bool ArtworkBounces(IplBrowserItem item);
diff --git a/VideoMode/IplEnvironmentMipmaps.cs b/VideoMode/IplEnvironmentMipmaps.cs
new file mode 100644
index 0000000..3c7d77a
--- /dev/null
+++ b/VideoMode/IplEnvironmentMipmaps.cs
@@ -0,0 +1,45 @@
+using System;
+
+// GX RGBA8 uses separate AR/GB planes in each 4x4, 64-byte tile. Even the
+// final 2x2 and 1x1 mip levels occupy a full tile with replicated edge texels.
+internal static class IplEnvironmentMipmaps
+{
+ internal const int BaseSize=256,Levels=9,TileBytes=64,ChainBytes=349632;
+ internal static int LevelSize(int level)
+ {
+ if(level<0||level>=Levels)throw new ArgumentOutOfRangeException(nameof(level));
+ return BaseSize>>level;
+ }
+ internal static int LevelBytes(int size)
+ {
+ if(size<1||size>BaseSize||(size&(size-1))!=0)throw new ArgumentOutOfRangeException(nameof(size));
+ int tiles=(size+3)/4;return tiles*tiles*TileBytes;
+ }
+ internal static int LevelOffset(int level)
+ {
+ LevelSize(level);int offset=0;
+ for(int i=0;i>i);
+ return offset;
+ }
+ // The source is four tiles in TL/TR/BL/BR order for an 8x8 region. At
+ // source sizes4/2, only its first tile is read. Average each channel in
+ // the preceding level, rounding once to the nearest stored byte.
+ internal static void DownsampleTile(byte[] source,int sourceSize,byte[] destination)
+ {
+ if(sourceSize<2||sourceSize>BaseSize||(sourceSize&(sourceSize-1))!=0)throw new ArgumentOutOfRangeException(nameof(sourceSize));
+ if(source==null||source.Length<(sourceSize>=8?256:TileBytes))throw new ArgumentException("Incomplete source tiles.",nameof(source));
+ if(destination==null||destination.Length((x/4)+(y/4)*2)*TileBytes+((y%4)*4+x%4)*2;
+ private static byte Average(byte[] source,int a,int b,int c,int d)=>(byte)((source[a]+source[b]+source[c]+source[d]+2)/4);
+}
diff --git a/VideoMode/IplNativeCards.cs b/VideoMode/IplNativeCards.cs
index bec905c..8c8bb1b 100644
--- a/VideoMode/IplNativeCards.cs
+++ b/VideoMode/IplNativeCards.cs
@@ -1,7 +1,7 @@
using System;
using Dolphin.Storage;
using Dolphin.Timing;
-internal sealed class IplNativeCards : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplAnimatedArtwork,IIplBrowserCatalog
+internal sealed class IplNativeCards : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplCardOperationNotifications,IIplAnimatedArtwork,IIplBrowserCatalog
{
#if IPL_MEMORY_CARD_SERVICES
private readonly MemoryCardManager?[] cards=new MemoryCardManager?[2];
@@ -31,6 +31,9 @@ public IplItemKind CatalogKind(int index){
public int Total {get;private set;}
public bool Busy {get;private set;}
public int Progress {get;private set;}
+ public int OperationVersion {get;private set;}
+ public IplCardOperationResult OperationResult {get;private set;}
+ private void ReportOperation(IplCardOperationResult result){OperationResult=result;OperationVersion++;}
public bool LaunchRequested=>false;
public string Status {get;private set;}="Insert a memory card.";
public string SlotCaption(int index){
@@ -72,8 +75,9 @@ private void Probe(int index)
public void Tick()
{
#if IPL_MEMORY_CARD_SERVICES
- if(transfer!=null){try{transfer.Step();Progress=transfer.Progress;Status="Transfer: "+Progress.ToString()+"%";if(transfer.Complete){transfer.Dispose();transfer=null;Busy=false;Status="Transfer verified and complete.";RefreshCards();}}
- catch(Exception e){bool completed=transfer?.Complete==true;try{transfer?.Dispose();}catch(Exception){}transfer=null;Busy=false;if(completed)Progress=100;Status=completed?"Transfer completed. Refresh the slots before another action.":e.Message??"Card transfer failed. Check both slots.";RefreshCards();}return;}
+ if(transfer!=null){bool completed=false;
+ try{transfer.Step();Progress=transfer.Progress;Status="Transfer: "+Progress.ToString()+"%";if(transfer.Complete){completed=true;transfer.Dispose();transfer=null;Busy=false;Status="Transfer verified and complete.";RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);}}
+ catch(Exception e){completed|=transfer?.Complete==true;try{transfer?.Dispose();}catch(Exception){}transfer=null;Busy=false;if(completed)Progress=100;Status=completed?"Transfer completed. Refresh the slots before another action.":e.Message??"Card transfer failed. Check both slots.";ReportOperation(completed?IplCardOperationResult.Succeeded:IplCardOperationResult.Failed);RefreshCards();}return;}
if(Clock.Timestamp>=nextProbe){nextProbe=Clock.Timestamp+500000;Probe(0);Probe(1);UpdateTotal();}
#endif
}
@@ -146,19 +150,23 @@ public void Open(IplBrowserItem item,VideoModeSettings video){}
public void Execute(IplCardAction action,IplBrowserItem? item)
{
#if IPL_MEMORY_CARD_SERVICES
+ OperationResult=IplCardOperationResult.None;
+ try{
var card=cards[slot];if(card==null)throw new InvalidOperationException("Reinsert the card and select again.");
- if(action==IplCardAction.Format){if(!format[slot])throw new InvalidOperationException("Card status changed. Select it again.");try{card.Format();Status="Memory card formatted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();return;}
+ if(action==IplCardAction.Format){if(!format[slot])throw new InvalidOperationException("Card status changed. Select it again.");try{card.Format();Status="Memory card formatted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);return;}
if(item==null)throw new InvalidOperationException("Select a saved file again.");var save=Resolve(item);
- if(action==IplCardAction.Delete){try{card.Delete(save);Status="Saved file deleted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();return;}
+ if(action==IplCardAction.Delete){try{card.Delete(save);Status="Saved file deleted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);return;}
Probe(1-slot);var destination=cards[1-slot];if(destination==null||!ready[1-slot])throw new InvalidOperationException("The other slot needs a ready memory card.");
transfer=card.BeginCopy(save,destination,action==IplCardAction.Move);Busy=true;Progress=0;Status="Copying and verifying the saved file...";
+ }catch{ReportOperation(IplCardOperationResult.Failed);throw;}
#else
+ ReportOperation(IplCardOperationResult.Failed);
throw new InvalidOperationException("Card services are unavailable in this build.");
#endif
}
public void Cancel(){
#if IPL_MEMORY_CARD_SERVICES
- if(transfer!=null){try{transfer.Cancel();Status="Transfer cancelled. Source kept.";}finally{transfer=null;Busy=false;RefreshCards();}}
+ if(transfer!=null){try{transfer.Cancel();Status="Transfer cancelled. Source kept.";ReportOperation(IplCardOperationResult.Cancelled);}catch{ReportOperation(IplCardOperationResult.Failed);throw;}finally{transfer=null;Busy=false;RefreshCards();}}
#endif
}
public void Dispose(){
diff --git a/VideoMode/IplPreferences.cs b/VideoMode/IplPreferences.cs
index e2214b7..6d46e15 100644
--- a/VideoMode/IplPreferences.cs
+++ b/VideoMode/IplPreferences.cs
@@ -7,11 +7,12 @@ internal readonly struct IplPreferences
internal readonly int MotionLevel;
internal bool ReducedMotion=>MotionLevel==0;
internal readonly int GlassBlur;
- internal IplPreferences(VideoModeSettings video,int sound,bool reducedMotion,int glassBlur=0)
- :this(video,sound,reducedMotion?0:1,glassBlur){}
- internal IplPreferences(VideoModeSettings video,int sound,int motionLevel,int glassBlur=0)
- {Video=video;Sound=sound;MotionLevel=motionLevel;GlassBlur=glassBlur;}
- internal bool Valid=>Video.Resolution>=0&&Video.Resolution<=2&&Video.Scan>=0&&Video.Scan<=2&&Sound>=0&&Sound<=1&&MotionLevel>=0&&MotionLevel<=2&&GlassBlur>=0&&GlassBlur<=3;
+ internal readonly int UiSoundVolume;
+ internal IplPreferences(VideoModeSettings video,int sound,bool reducedMotion,int glassBlur=0,int uiSoundVolume=2)
+ :this(video,sound,reducedMotion?0:1,glassBlur,uiSoundVolume){}
+ internal IplPreferences(VideoModeSettings video,int sound,int motionLevel,int glassBlur=0,int uiSoundVolume=2)
+ {Video=video;Sound=sound;MotionLevel=motionLevel;GlassBlur=glassBlur;UiSoundVolume=uiSoundVolume;}
+ internal bool Valid=>Video.Resolution>=0&&Video.Resolution<=2&&Video.Scan>=0&&Video.Scan<=2&&Sound>=0&&Sound<=1&&MotionLevel>=0&&MotionLevel<=2&&GlassBlur>=0&&GlassBlur<=3&&UiSoundVolume>=0&&UiSoundVolume<=3;
}
internal interface IIplPreferencesStore
{
@@ -35,24 +36,27 @@ private static uint Crc(byte[] data)
internal static byte[] Encode(IplPreferences value,uint generation)
{
if(!value.Valid)throw new ArgumentException("Invalid preferences.");
- var data=new byte[Size];data[0]=73;data[1]=80;data[2]=76;data[3]=83;data[4]=3;
+ var data=new byte[Size];data[0]=73;data[1]=80;data[2]=76;data[3]=83;data[4]=4;
data[5]=(byte)value.Video.Resolution;data[6]=(byte)value.Video.Scan;data[7]=(byte)((value.Video.Widescreen?1:0)|(value.ReducedMotion?2:0));data[8]=(byte)value.Sound;
- data[9]=(byte)value.GlassBlur;data[10]=(byte)value.MotionLevel;
+ data[9]=(byte)value.GlassBlur;data[10]=(byte)value.MotionLevel;data[11]=(byte)value.UiSoundVolume;
Write(data,12,generation);Write(data,28,Crc(data));return data;
}
internal static bool Decode(byte[]? data,out IplPreferences value,out uint generation)
{
value=default;generation=0;
- if(data==null||data.Length!=Size||data[0]!=73||data[1]!=80||data[2]!=76||data[3]!=83||(data[4]!=1&&data[4]!=2&&data[4]!=3)||data[7]>3||Read(data,28)!=Crc(data))return false;
+ if(data==null||data.Length!=Size||data[0]!=73||data[1]!=80||data[2]!=76||data[3]!=83||data[4]<1||data[4]>4||data[7]>3||Read(data,28)!=Crc(data))return false;
// Version one reserved this byte. Accept old slots as blur Off, without
// weakening their reserved-byte validation or their generation/CRC rules.
if(data[4]==1&&data[9]!=0)return false;
if(data[4]<3&&data[10]!=0)return false;
- int motion=data[4]==3?data[10]:(data[7]&2)!=0?0:1;
- // Version three retains the legacy Disabled bit as a consistency check.
- if(data[4]==3&&((data[7]&2)!=0)!=(motion==0))return false;
- for(int i=11;i<28;i++)if((i<12||i>15)&&data[i]!=0)return false;
- var decoded=new IplPreferences(new VideoModeSettings(data[5],data[6],(data[7]&1)!=0),data[8],motion,data[4]==1?0:data[9]);
+ // Older records reserved the volume byte; preserve strict validation
+ // while adopting Medium for their first startup with menu audio.
+ if(data[4]<4&&data[11]!=0)return false;
+ int motion=data[4]>=3?data[10]:(data[7]&2)!=0?0:1;
+ // Version three and newer retain the legacy Disabled consistency bit.
+ if(data[4]>=3&&((data[7]&2)!=0)!=(motion==0))return false;
+ for(int i=16;i<28;i++)if(data[i]!=0)return false;
+ var decoded=new IplPreferences(new VideoModeSettings(data[5],data[6],(data[7]&1)!=0),data[8],motion,data[4]==1?0:data[9],data[4]<4?2:data[11]);
if(!decoded.Valid)return false;
value=decoded;generation=Read(data,12);return true;
}
diff --git a/VideoMode/IplRenderer.cs b/VideoMode/IplRenderer.cs
index 491f8a5..e505540 100644
--- a/VideoMode/IplRenderer.cs
+++ b/VideoMode/IplRenderer.cs
@@ -452,7 +452,11 @@ private void Detail(IplShell s)
if(status=="UNSUPPORTED MODE OR CABLE"||status=="NOT ENOUGH MEMORY FOR MODE")Banner(status=="UNSUPPORTED MODE OR CABLE"?"Unsupported mode or cable.":"Not enough memory for this mode.",true);
else Center("Left/Right selects. Up/Down changes. A previews. B returns to the cube.",320,350,13,White);
}
- else if(s.Face==ShellFace.Options)Center("A confirms. B discards changes and returns to the cube.",320,351,14,0xc4c9deff);
+ else if(s.Face==ShellFace.Options)
+ {
+ if(s.Row==3&&s.UiAudioStatus.Length>0)Center(s.UiAudioStatus,320,322,13,0xc4c9deff);
+ Center("A confirms. B discards changes and returns to the cube.",320,351,14,0xc4c9deff);
+ }
}
private void Selectors(IplShell s,bool preparing)
{
diff --git a/VideoMode/IplShell.cs b/VideoMode/IplShell.cs
index 3201e64..827f557 100644
--- a/VideoMode/IplShell.cs
+++ b/VideoMode/IplShell.cs
@@ -20,9 +20,13 @@ internal sealed class IplShell
internal string MotionName=>MotionLevel==0?"Disabled":MotionLevel==1?"Subtle":"Pronounced";
private int glassBlur,glassBlurDraft;
internal int GlassBlur=>Editing&&Face==ShellFace.Options&&Row==2?glassBlurDraft:glassBlur;
+ private int uiSoundVolume=2,uiSoundVolumeDraft=2;
+ internal int UiSoundVolume=>Editing&&Face==ShellFace.Options&&Row==3?uiSoundVolumeDraft:uiSoundVolume;
+ internal string UiAudioStatus {get;set;}="";
private readonly IIplPreferencesStore? preferences;
private readonly IIplConsoleCalendar? calendar;
private readonly IIplConsoleSound? soundService;
+ private readonly IIplUiSoundSink? uiSounds;
internal bool SoundAvailable {get;private set;}=true;
private float calendarWait;
internal bool CalendarAvailable {get;private set;}=true;
@@ -38,12 +42,12 @@ internal sealed class IplShell
private bool returnLatch;
private bool repeatStick;
private bool fieldEditing,returnAfterRevert;
- internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null,IIplConsoleCalendar? calendar=null,bool restoreVideo=true,IIplConsoleSound? soundService=null,IplBrowser? browser=null)
+ internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null,IIplConsoleCalendar? calendar=null,bool restoreVideo=true,IIplConsoleSound? soundService=null,IplBrowser? browser=null,IIplUiSoundSink? uiSounds=null)
{
- Browser=browser;this.preferences=preferences;this.calendar=calendar;this.soundService=soundService;bool loaded=false;
+ Browser=browser;this.preferences=preferences;this.calendar=calendar;this.soundService=soundService;this.uiSounds=uiSounds;bool loaded=false;
if(preferences!=null&&preferences.Load(out var saved)){
loaded=true;
- Sound=saved.Sound;motion=motionDraft=saved.MotionLevel;glassBlur=saved.GlassBlur;
+ Sound=saved.Sound;motion=motionDraft=saved.MotionLevel;glassBlur=saved.GlassBlur;uiSoundVolume=uiSoundVolumeDraft=saved.UiSoundVolume;
if(restoreVideo){
try{output.Configure(saved.Video);SystemStatus="Saved settings restored.";}
catch(InvalidOperationException){SystemStatus="Saved video unavailable. Using boot output.";}
@@ -59,7 +63,7 @@ internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null
private bool SavePreferences()
{
if(preferences==null)return true;
- bool saved=preferences.Save(new IplPreferences(Video.Applied,Sound,motion,glassBlur));SystemStatus=preferences.Status;return saved;
+ bool saved=preferences.Save(new IplPreferences(Video.Applied,Sound,motion,glassBlur,uiSoundVolume));SystemStatus=preferences.Status;return saved;
}
private bool RefreshCalendar()
{
@@ -69,23 +73,30 @@ private bool RefreshCalendar()
return CalendarAvailable;
}
internal void SafeMode()
- {if(Page==ShellPage.Browser)Browser?.Dispose();Video.SafeMode();if(!Video.Pending&&Video.Status=="SAFE MODE - 640X480I 4:3"){TurnTo(ShellFace.Video);SavePreferences();}else SystemStatus=Video.Status;}
+ {
+ if(Page==ShellPage.Browser)Browser?.Dispose();
+ Video.SafeMode();
+ if(!Video.Pending&&Video.Status=="SAFE MODE - 640X480I 4:3"){
+ TurnTo(ShellFace.Video,false);Cue(SavePreferences()?IplUiSound.ConfirmEdit:IplUiSound.CancelEdit);
+ }else{SystemStatus=Video.Status;Cue(IplUiSound.CancelEdit);}
+ }
+ private void Cue(IplUiSound cue)=>uiSounds?.Emit(cue);
#if IPL_HISTORICAL_RENDERER
// The measured historical adapter retains only three panel rows.
internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 3 : Face==ShellFace.Memory?2:1;
#else
- internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 3 : Face==ShellFace.Memory?2:1;
+ internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 4 : Face==ShellFace.Memory?2:1;
#endif
internal bool Editing => Page == ShellPage.Detail&&fieldEditing;
internal bool FlatMenu => Page == ShellPage.Detail&&!fieldEditing;
internal string Title => Face == ShellFace.Video ? "Video" : Face == ShellFace.Calendar ? "Calendar" : Face == ShellFace.Options ? "Options" : Face == ShellFace.Memory ? "Storage" : "Game Play";
- internal string Label(int row) => Face == ShellFace.Video ? (row == 0 ? "Output" : row == 1 ? "Scan" : "Aspect Ratio") : Face == ShellFace.Calendar ? (row == 0 ? "Time" : "Date") : Face == ShellFace.Options ? (row == 0 ? "Sound" : row == 1 ? "Motion" : "Glass Blur") : Face == ShellFace.Memory ? (row==0?"Memory Card":"SD Storage") : "Game Library";
+ internal string Label(int row) => Face == ShellFace.Video ? (row == 0 ? "Output" : row == 1 ? "Scan" : "Aspect Ratio") : Face == ShellFace.Calendar ? (row == 0 ? "Time" : "Date") : Face == ShellFace.Options ? (row == 0 ? "Sound" : row == 1 ? "Motion" : row == 2 ? "Glass Blur" : "UI Sounds") : Face == ShellFace.Memory ? (row==0?"Memory Card":"SD Storage") : "Game Library";
internal string Value(int row)
{
var v = Editing ? Video.Selected : Video.Applied;
if (Face == ShellFace.Video) return row == 0 ? (v.Resolution == 0 ? "240" : v.Resolution == 2 ? "576" : "480") : row == 1 ? (v.Scan == 0 ? "Auto" : v.Scan == 1 ? "Interlaced" : "Progressive") : v.Widescreen ? "16:9" : "4:3";
if (Face == ShellFace.Calendar) return !CalendarAvailable?"Unavailable":row == 0 ? Two(Editing ? hour : Hour) + ":" + Two(Editing ? minute : Minute) : Two(Editing ? day : Day) + "/" + Two(Editing ? month : Month) + "/" + (Editing ? year : Year).ToString();
- if (Face == ShellFace.Options) return row == 0 ? !SoundAvailable?"Unavailable":((Editing ? sound : Sound) == 0 ? "Stereo" : "Mono") : row == 1 ? MotionName : GlassBlur==0?"Off":GlassBlur==1?"Low":GlassBlur==2?"Medium":"High";
+ if (Face == ShellFace.Options) return row == 0 ? !SoundAvailable?"Unavailable":((Editing ? sound : Sound) == 0 ? "Stereo" : "Mono") : row == 1 ? MotionName : row == 2 ? GlassBlur==0?"Off":GlassBlur==1?"Low":GlassBlur==2?"Medium":"High" : UiSoundVolume==0?"Off":UiSoundVolume==1?"Low":UiSoundVolume==2?"Medium":"Full";
return "Open";
}
internal string Segment(int part) => Row == 0 ? Two(part == 0 ? hour : minute) : part == 0 ? Two(day) : part == 1 ? Two(month) : year.ToString();
@@ -106,11 +117,18 @@ internal void Tick(float dt)
float step=dt/.18f;
focus[i]=target>focus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step);
}
- bool pending = Video.Pending; Video.Tick(dt);
+ bool pending = Video.Pending;
+ // Revert retries and a B-initiated rollback do not replay the timeout cue.
+ bool timeout=pending&&!Video.Reverting&&Video.Remaining<=dt;
+ Video.Tick(dt);
+ if(timeout)Cue(IplUiSound.CancelEdit);
if(pending&&!Video.Pending){if(returnAfterRevert)ReturnToCube();else ShowFlatMenu();}
}
internal void TurnTo(ShellFace face)
+ {TurnTo(face,true);}
+ private void TurnTo(ShellFace face,bool playSound)
{
+ bool changed=Face!=face;
fieldEditing=false;returnAfterRevert=false;
PreviousFace = Face; Face = face; Row = Part = 0;
for(int i=0;i0)SystemStatus=status;}
+ else Cue(Editing?IplUiSound.CancelEdit:IplUiSound.Back);
ReturnToCube();
}
}
diff --git a/VideoMode/IplStorageBrowser.cs b/VideoMode/IplStorageBrowser.cs
index 6cca98b..4bb8cea 100644
--- a/VideoMode/IplStorageBrowser.cs
+++ b/VideoMode/IplStorageBrowser.cs
@@ -3,7 +3,7 @@
using Dolphin.Storage;
using Store=Dolphin.Storage.Storage;
using FsFile=Dolphin.IO.File;
-internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplAnimatedArtwork,IIplBrowserPageSize,IIplBrowserCatalog
+internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplCardOperationNotifications,IIplAnimatedArtwork,IIplBrowserPageSize,IIplBrowserCatalog
{
private readonly StorageDevice fileDevice;
private IIplBrowserSource? active;private int pageSize=6;
@@ -11,6 +11,8 @@ internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,I
internal IplStorageBrowser(StorageDevice fileDevice=StorageDevice.GcLoader){this.fileDevice=fileDevice;}
public int Total=>active?.Total??0;public bool Busy=>active?.Busy??false;public string Status=>active?.Status??"";public bool LaunchRequested=>active?.LaunchRequested??false;
public int Version=>(active as IIplBrowserNotifications)?.Version??0;
+ public int OperationVersion=>(active as IIplCardOperationNotifications)?.OperationVersion??0;
+ public IplCardOperationResult OperationResult=>(active as IIplCardOperationNotifications)?.OperationResult??IplCardOperationResult.None;
public void Begin(IplBrowserKind kind,string path,int slot,bool rescan){active?.Dispose();active=kind==IplBrowserKind.Games?new IplNativeBrowser():kind==IplBrowserKind.Sd?new IplNativeFiles(fileDevice):new IplNativeCards();(active as IIplBrowserPageSize)?.SetPageSize(pageSize);active.Begin(kind,path,slot,rescan);}
public int ReadCatalogPage(int start,int maximum)=>(active as IIplBrowserCatalog)?.ReadCatalogPage(start,maximum)??0;
public IplBrowserItem? CatalogItem(int index)=>(active as IIplBrowserCatalog)?.CatalogItem(index);
diff --git a/VideoMode/IplUiAudio.cs b/VideoMode/IplUiAudio.cs
new file mode 100644
index 0000000..97ba8d4
--- /dev/null
+++ b/VideoMode/IplUiAudio.cs
@@ -0,0 +1,179 @@
+#if IPL_SYSTEM_AUDIO
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Dolphin.Audio;
+using Dolphin.Diagnostics;
+using Dolphin.System;
+using Dolphin.Timing;
+
+internal enum IplUiAudioState { NotStarted,Loading,Ready,Unavailable,Closed }
+
+// Extract/pre-render the console's qualified finite effects once, off the app
+// executor. The rendering loop only publishes completed work and uses resident
+// native clips. No firmware bytes or prepared audio are written to storage.
+internal sealed class IplUiAudio
+{
+ // The SDK's maximum accepted recipe, decoded sources, PCM and delay lines
+ // require less than 2 MiB of native scratch. This is separate from the
+ // retained clip-bank limit and the managed firmware-extraction heap.
+ private const int EffectCount=10,PreparationBudget=2*1024*1024,BankBudget=6*1024*1024;
+ private readonly CancellationTokenSource cancellation=new CancellationTokenSource();
+ private readonly IplUiAudioPolicy policy=new IplUiAudioPolicy();
+ private readonly SoundChannel?[] voices=new SoundChannel?[IplUiAudioPolicy.VoiceLimit];
+ private Task? loading;
+ private Task? closing;
+ private Sound?[]? clips;
+ private bool started,stopping;
+ private int volumeLevel=2;
+ internal IplUiAudioState State {get;private set;}
+ internal string Status {get;private set;}="System sounds not initialized.";
+ internal int LoadedCount {get;private set;}
+ internal int NativeBytes {get;private set;}
+ internal int PlayedCount {get;private set;}
+ internal int ThrottledCount {get;private set;}
+ internal int StolenCount {get;private set;}
+ internal int DroppedCount {get;private set;}
+
+ private sealed class Prepared
+ {
+ internal readonly Sound?[]? Clips;
+ internal readonly int Count,Bytes;
+ internal readonly string Failure;
+ internal Prepared(Sound?[]? clips,int count,int bytes,string failure)
+ {Clips=clips;Count=count;Bytes=bytes;Failure=failure;}
+ }
+ internal void Start()
+ {
+ if(started||stopping)return;
+ started=true;State=IplUiAudioState.Loading;Status="Loading system sounds...";
+ try {Audio.Initialize();loading=Task.Run(Prepare);}
+ catch(Exception error){Unavailable(error.Message);}
+ }
+ private Prepared Prepare()
+ {
+ var sounds=new Sound?[EffectCount];bool transferred=false;
+ try
+ {
+ var token=cancellation.Token;int count=0,bytes=0;
+ using(var image=SystemFirmware.ReadConsole(token))
+ using(var catalog=image.CreateCatalog(FirmwareCatalogOptions.IncludeMenuAudio,token))
+ {
+ for(int i=0;i
diff --git a/tests/SampleDownloadTests/Program.cs b/tests/SampleDownloadTests/Program.cs
index cb95548..5a1f1ac 100644
--- a/tests/SampleDownloadTests/Program.cs
+++ b/tests/SampleDownloadTests/Program.cs
@@ -61,7 +61,10 @@ private static async Task Respond(TcpClient client,CancellationToken token)
try
{
using var stream=client.GetStream();using var reader=new StreamReader(stream,Encoding.ASCII,false,1024,true);
- string request=await reader.ReadLineAsync(token)??"";while(!string.IsNullOrEmpty(await reader.ReadLineAsync(token))){}
+ string? request=await reader.ReadLineAsync(token);
+ // Cancellation can close an accepted connection before its request.
+ if(request==null)return;
+ while(!string.IsNullOrEmpty(await reader.ReadLineAsync(token))){}
string path=request.Split(' ')[1];byte[] data=path=="/large"?new byte[256*1024+1]:path=="/empty"?Array.Empty():new byte[]{137,80,78,71,13,10,26,10,0};
if(path=="/invalid")data[0]=0;
string header="HTTP/1.1 "+(path=="/error"?"500 Error":"200 OK")+"\r\nContent-Length: "+data.Length+"\r\nConnection: close\r\n\r\n";
diff --git a/tests/VideoModeAudioTests/FakeSdk.cs b/tests/VideoModeAudioTests/FakeSdk.cs
new file mode 100644
index 0000000..5df4d83
--- /dev/null
+++ b/tests/VideoModeAudioTests/FakeSdk.cs
@@ -0,0 +1,116 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading;
+
+// Resource/control fakes for the SDK surface used by IplUiAudio. These verify
+// application ownership and scheduling, not firmware decoding, sound fidelity,
+// DSP behavior or physical performance. The managed sample build checks the
+// same calls against the actual published SDK.
+internal static class AudioFixture
+{
+ internal static int Initialized,Read,ImagesDisposed,CatalogsDisposed,Created,Disposed,FailAt=-1,RequiredPreparationBytes;
+ internal static bool Unsupported;
+ internal static ManualResetEventSlim Entered=new(false),Continue=new(true);
+ internal static List Voices=new();
+ internal static List DisposalOrder=new();
+ internal static void Reset()
+ {
+ Initialized=Read=ImagesDisposed=CatalogsDisposed=Created=Disposed=RequiredPreparationBytes=0;FailAt=-1;Unsupported=false;
+ Entered.Dispose();Continue.Dispose();Entered=new(false);Continue=new(true);
+ Voices=new();DisposalOrder=new();Dolphin.Timing.Clock.Timestamp=0;
+ }
+}
+
+namespace Dolphin.Audio
+{
+ public static class Audio
+ {
+ public static void Initialize(){AudioFixture.Initialized++;}
+ }
+ public sealed class Sound : IDisposable
+ {
+ private bool disposed;
+ private readonly int id;
+ public int NativeBytes=>120000;
+ public float Volume {get;set;}=1;
+ internal Sound(int id){this.id=id;AudioFixture.Created++;}
+ public SoundChannel Play(bool loop=false)
+ {
+ if(disposed)throw new ObjectDisposedException(nameof(Sound));
+ var voice=new SoundChannel {Volume=Volume};AudioFixture.Voices.Add(voice);return voice;
+ }
+ public void Dispose()
+ {
+ if(disposed)return;
+ disposed=true;AudioFixture.Disposed++;AudioFixture.DisposalOrder.Add("clip"+id);
+ }
+ }
+ public sealed class SoundChannel : IDisposable
+ {
+ private float volume=1;
+ public bool IsPlaying {get;private set;}=true;
+ internal bool FinishOnVolumeWrite;
+ public float Volume
+ {
+ get=>volume;
+ set
+ {
+ if(FinishOnVolumeWrite){IsPlaying=false;throw new InvalidOperationException("Playback has finished.");}
+ volume=value;
+ }
+ }
+ public void Dispose()
+ {
+ if(!IsPlaying)return;
+ IsPlaying=false;AudioFixture.DisposalOrder.Add("voice");
+ }
+ }
+}
+
+namespace Dolphin.Diagnostics
+{
+ public static class DebugOverlay {public static void WriteLine(string text){}}
+}
+namespace Dolphin.Timing
+{
+ public static class Clock {public static long Timestamp {get;set;}}
+}
+namespace Dolphin.System
+{
+ [Flags]
+ public enum FirmwareCatalogOptions {None=0,IncludeMenuAudio=1}
+ public enum SystemMenuSound
+ {TurnSide,TurnCenter,Select,Back,OptionCancel,OptionConfirm,OptionMove1,OptionMove2,OptionMove3,OptionSelect,PressStart}
+ public sealed class SystemMenuSoundInfo {}
+ public sealed class FirmwareImage : IDisposable
+ {
+ public FirmwareCatalog CreateCatalog(FirmwareCatalogOptions options,CancellationToken token)=>new();
+ public void Dispose(){AudioFixture.ImagesDisposed++;}
+ }
+ public sealed class FirmwareCatalog : IDisposable
+ {
+ public bool TryGetMenuSoundInfo(SystemMenuSound id,out SystemMenuSoundInfo? info)
+ {info=AudioFixture.Unsupported?null:new();return info!=null;}
+ public void Dispose(){AudioFixture.CatalogsDisposed++;}
+ }
+ public static class SystemFirmware
+ {
+ public static FirmwareImage ReadConsole(CancellationToken token=default)
+ {
+ AudioFixture.Read++;AudioFixture.Entered.Set();AudioFixture.Continue.Wait(token);
+ token.ThrowIfCancellationRequested();return new();
+ }
+ }
+ public static class SystemResources
+ {
+ public static Dolphin.Audio.Sound CreateMenuSound(FirmwareCatalog catalog,SystemMenuSound id,
+ CancellationToken token=default,int nativeBudgetBytes=8*1024*1024)
+ {
+ token.ThrowIfCancellationRequested();
+ if(nativeBudgetBytess.StartsWith("clip"));
+ Check(lastVoice
+
+ Exe
+ net8.0
+ enable
+ $(DefineConstants);IPL_SYSTEM_AUDIO
+
+
+
+
+
+
+
diff --git a/tests/VideoModeMenuTests/IplAntialiasingPolicyTests.cs b/tests/VideoModeMenuTests/IplAntialiasingPolicyTests.cs
new file mode 100644
index 0000000..7ed3290
--- /dev/null
+++ b/tests/VideoModeMenuTests/IplAntialiasingPolicyTests.cs
@@ -0,0 +1,38 @@
+using System;
+
+internal static class IplAntialiasingPolicyTests
+{
+ private static void Check(bool pass,string message)
+ {if(!pass)throw new Exception("Native AA page policy: "+message);}
+ internal static void Run()
+ {
+ var policy=new IplAntialiasingPolicy(true);
+ Check(policy.Enabled&&policy.CubeVisible,"interactive startup selects the cube");
+ Check(!policy.SetCubeVisible(true),"the initial cube does not request a redundant mode change");
+ for(int resolution=0;resolution<3;resolution++)for(int scan=0;scan<3;scan++)foreach(bool wide in new[]{false,true})
+ {
+ var video=new VideoModeSettings(resolution,scan,wide);
+ Check(policy.Wanted(video)==(resolution!=2),"cube AA follows supported resolution, independently of scan and aspect");
+ }
+
+ Check(policy.SetCubeVisible(false),"opening a flat page reports one transition");
+ for(int resolution=0;resolution<3;resolution++)for(int scan=0;scan<3;scan++)
+ Check(!policy.Wanted(new VideoModeSettings(resolution,scan,false)),"flat settings and storage retain full EFB resolution");
+ for(int frame=0;frame<600;frame++)
+ Check(!policy.SetCubeVisible(false),"idle flat frames do not repeat a display transition");
+ Check(policy.SetCubeVisible(true)&&policy.Wanted(new VideoModeSettings(1,2,true)),"returning to the cube restores AA");
+ Check(!policy.SetCubeVisible(true),"idle cube frames do not repeat a display transition");
+
+ policy.Disable();
+ Check(!policy.Enabled&&!policy.Wanted(new VideoModeSettings(1,1,false)),"allocation failure disables AA immediately");
+ policy.SetCubeVisible(false);policy.SetCubeVisible(true);policy.Disable();
+ for(int resolution=0;resolution<3;resolution++)for(int scan=0;scan<3;scan++)
+ Check(!policy.Wanted(new VideoModeSettings(resolution,scan,true)),"page or video changes cannot re-enable a failed session");
+
+ var disabled=new IplAntialiasingPolicy(false);
+ Check(!disabled.Enabled&&!disabled.Wanted(new VideoModeSettings(1,1,false)),"explicit AA-off builds retain the control path");
+ disabled.SetCubeVisible(false);disabled.SetCubeVisible(true);
+ Check(!disabled.Wanted(new VideoModeSettings(0,2,false)),"page navigation preserves an explicit AA-off choice");
+ Console.WriteLine("Native AA page policy: cube-only coverage, sharp flat pages, scan/aspect compatibility, edge-only transitions and failure latch passed.");
+ }
+}
diff --git a/tests/VideoModeMenuTests/IplBrowserSoundTests.cs b/tests/VideoModeMenuTests/IplBrowserSoundTests.cs
new file mode 100644
index 0000000..efa4594
--- /dev/null
+++ b/tests/VideoModeMenuTests/IplBrowserSoundTests.cs
@@ -0,0 +1,195 @@
+using System;
+using System.Collections.Generic;
+
+internal static class IplBrowserSoundTests
+{
+ private sealed class Sounds : IIplUiSoundSink
+ {
+ internal readonly List Cues=new List();
+ public void Emit(IplUiSound cue){Cues.Add(cue);}
+ internal void Expect(string action,params IplUiSound[] expected)
+ {
+ Check(Cues.Count==expected.Length,action+": unexpected cue count "+Cues.Count);
+ for(int i=0;i();
+ internal bool FailBegin,FailRead,FailDescribe,FailOpen,FailExecute,ReturnFailedExecute,ScanOnBegin,FinishScan,Probe,CopyAllowed=true,MoveAllowed=true;
+ internal int Begins,Executions,Cancellations;
+ internal IplCardOperationResult FinishOperation;
+ public int Total=>Entries.Length;
+ public bool Busy {get;private set;}
+ public string Status=>"Fixture storage";
+ public bool LaunchRequested {get;private set;}
+ public int Version {get;private set;}
+ public int OperationVersion {get;private set;}
+ public IplCardOperationResult OperationResult {get;private set;}
+ public int Progress=>Busy?50:100;
+ public void Begin(IplBrowserKind kind,string path,int slot,bool rescan)
+ {Begins++;if(FailBegin)throw new InvalidOperationException("Unavailable fixture");Busy=ScanOnBegin;Version++;}
+ public void Tick()
+ {
+ if(FinishOperation!=IplCardOperationResult.None){Busy=false;OperationResult=FinishOperation;FinishOperation=IplCardOperationResult.None;OperationVersion++;Version++;}
+ if(FinishScan){Busy=false;FinishScan=false;Version++;}
+ if(Probe){Probe=false;Version++;}
+ }
+ public int ReadPage(int start,IplBrowserItem?[] output)
+ {
+ if(FailRead)throw new InvalidOperationException("Read failed");
+ int count=Math.Min(output.Length,Total-start);
+ for(int i=0;inull;
+ public string Describe(IplBrowserItem item){if(FailDescribe)throw new InvalidOperationException("Info failed");return item.Title;}
+ public void Open(IplBrowserItem item,VideoModeSettings video){if(FailOpen)throw new InvalidOperationException("Launch failed");LaunchRequested=true;}
+ public string SlotCaption(int slot)=>slot==0?"Slot A":"Slot B";
+ public bool CanCopy(IplBrowserItem item)=>CopyAllowed;
+ public bool CanMove(IplBrowserItem item)=>MoveAllowed;
+ public void Execute(IplCardAction action,IplBrowserItem? item)
+ {
+ if(FailExecute){OperationResult=IplCardOperationResult.Failed;OperationVersion++;throw new InvalidOperationException("Operation failed");}
+ if(ReturnFailedExecute){OperationResult=IplCardOperationResult.Failed;OperationVersion++;return;}
+ Executions++;OperationResult=IplCardOperationResult.None;
+ if(action==IplCardAction.Copy||action==IplCardAction.Move)Busy=true;
+ else{OperationResult=IplCardOperationResult.Succeeded;OperationVersion++;Version++;}
+ }
+ public void Cancel(){Cancellations++;Busy=false;OperationResult=IplCardOperationResult.Cancelled;OperationVersion++;Version++;}
+ public void Dispose(){Busy=false;}
+ }
+
+ private static readonly VideoModeSettings Video=new VideoModeSettings(1,1,false);
+ private static void Check(bool value,string message){if(!value)throw new Exception(message);}
+ private static IplBrowserItem Item(IplItemKind kind,string path="fixture")=>new IplBrowserItem(path,path,"Fixture",kind);
+ private static void BeginCopy(IplBrowser browser,Sounds sounds)
+ {
+ browser.Confirm(Video);sounds.Expect("Open save actions",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Choose Copy",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Open copy confirmation",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Choose confirm",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Accept copy",IplUiSound.ConfirmEdit);
+ Check(browser.Busy,"Copy is asynchronous");
+ }
+
+ internal static void Run()
+ {
+ var sounds=new Sounds();
+ var files=new Source{Entries=new[]{Item(IplItemKind.Directory,"folder"),Item(IplItemKind.File,"notes.txt"),Item(IplItemKind.Dol,"app.dol")}};
+ using(var browser=new IplBrowser(files,sounds)){
+ browser.Open(IplBrowserKind.Sd);sounds.Expect("Open SD",IplUiSound.EnterMenu);
+ browser.Direction(0,0);sounds.Expect("Neutral input");
+ browser.Direction(1,0);sounds.Expect("Select file",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Open file info",IplUiSound.EnterMenu);
+ browser.Direction(1,0);sounds.Expect("Info ignores navigation");
+ browser.Confirm(Video);sounds.Expect("Close file info",IplUiSound.Back);
+ browser.Direction(1,0);sounds.Expect("Select executable",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Open launch prompt",IplUiSound.OpenEditor);
+ browser.Direction(-1,0);sounds.Expect("Already on Cancel");
+ browser.Confirm(Video);sounds.Expect("Cancel launch",IplUiSound.CancelEdit);
+ browser.Confirm(Video);sounds.Expect("Reopen launch",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Choose launch",IplUiSound.ChangeRow);
+ browser.Direction(1,0);sounds.Expect("Already on launch");
+ files.FailOpen=true;browser.Confirm(Video);sounds.Expect("Failed launch",IplUiSound.CancelEdit);
+ files.FailOpen=false;browser.Confirm(Video);sounds.Expect("Launch accepted",IplUiSound.ConfirmEdit);
+ Check(files.LaunchRequested,"Accepted executable launches");
+ browser.Exit();sounds.Expect("Exit browser",IplUiSound.Back);
+ browser.Exit();sounds.Expect("Already exited");
+ }
+
+ files=new Source{Entries=new[]{Item(IplItemKind.Directory,"folder"),Item(IplItemKind.File,"notes.txt")}};
+ using(var browser=new IplBrowser(files,sounds)){
+ browser.Open(IplBrowserKind.Sd);sounds.Expect("Open folders",IplUiSound.EnterMenu);
+ browser.Confirm(Video);sounds.Expect("Open folder once",IplUiSound.EnterMenu);
+ Check(browser.Path=="folder","Folder entered");
+ browser.ParentDirectory();sounds.Expect("Parent once",IplUiSound.Back);
+ browser.ParentDirectory();sounds.Expect("Root has no parent");
+ browser.ToggleView();sounds.Expect("Grid/list view",IplUiSound.ChangeField);
+ browser.Refresh();sounds.Expect("Manual refresh",IplUiSound.ChangeField);
+ files.ScanOnBegin=true;browser.Refresh();sounds.Expect("Begin scan",IplUiSound.ChangeField);
+ browser.Direction(1,0);browser.Confirm(Video);browser.ToggleView();browser.ParentDirectory();sounds.Expect("Busy scan ignores input");
+ int begins=files.Begins;browser.Refresh();sounds.Expect("Explicit rescan while scanning",IplUiSound.ChangeField);Check(files.Begins==begins+1,"Manual rescan retains restart behavior");
+ files.ScanOnBegin=false;files.FinishScan=true;browser.Tick(.016f);sounds.Expect("Background scan completes silently");
+ files.Probe=true;browser.Tick(.016f);sounds.Expect("Background revision is silent");
+ files.FailRead=true;browser.Refresh();sounds.Expect("Failed refresh",IplUiSound.CancelEdit);
+ files.FailRead=false;browser.Refresh();sounds.Expect("Refresh recovery",IplUiSound.ChangeField);
+ browser.Direction(1,0);sounds.Expect("Select info",IplUiSound.ChangeRow);
+ files.FailDescribe=true;browser.Confirm(Video);sounds.Expect("Failed info",IplUiSound.CancelEdit);
+ browser.Direction(-1,0);sounds.Expect("New navigation after failure",IplUiSound.ChangeRow);
+ }
+
+ using(var browser=new IplBrowser(new Source(),sounds)){
+ browser.Open(IplBrowserKind.Sd);sounds.Expect("Open empty storage",IplUiSound.EnterMenu);
+ browser.Direction(1,0);browser.Confirm(Video);sounds.Expect("Empty selection");
+ }
+ using(var browser=new IplBrowser(new Source{Entries=new[]{Item(IplItemKind.File)}},sounds)){
+ browser.Open(IplBrowserKind.Sd);sounds.Expect("Single item storage",IplUiSound.EnterMenu);
+ browser.Direction(1,0);browser.Direction(0,-1);sounds.Expect("Single-item wrap stays silent");
+ }
+ using(var browser=new IplBrowser(new Source{FailBegin=true},sounds)){
+ browser.Open(IplBrowserKind.Sd);sounds.Expect("Failed storage open has no success cue",IplUiSound.CancelEdit);
+ }
+
+ var cards=new Source{Entries=new[]{Item(IplItemKind.Save)}};
+ using(var browser=new IplBrowser(cards,sounds)){
+ browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open card",IplUiSound.EnterMenu);
+ int begins=cards.Begins;browser.SwitchSlot(0);sounds.Expect("Same slot stays silent");Check(cards.Begins==begins+1,"Existing same-slot reload remains available");
+ browser.SwitchSlot(1);sounds.Expect("Switch card slot",IplUiSound.ChangeField);
+ browser.SwitchSlot(0);sounds.Expect("Switch card back",IplUiSound.ChangeField);
+ cards.Probe=true;browser.Tick(.016f);sounds.Expect("Card insertion/probe is not completion");
+ browser.Confirm(Video);sounds.Expect("Save actions",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Copy row",IplUiSound.ChangeRow);
+ cards.CopyAllowed=false;browser.Confirm(Video);sounds.Expect("Protected save",IplUiSound.CancelEdit);Check(cards.Executions==0,"Protected save never executes");
+ cards.CopyAllowed=true;browser.Confirm(Video);sounds.Expect("Copy prompt",IplUiSound.OpenEditor);
+ browser.Direction(-1,0);sounds.Expect("Default confirmation stays selected");
+ browser.Confirm(Video);sounds.Expect("Cancel copy proposal",IplUiSound.CancelEdit);
+
+ BeginCopy(browser,sounds);
+ browser.Direction(1,0);browser.Confirm(Video);browser.Refresh();browser.ToggleView();browser.SwitchSlot(1);sounds.Expect("Busy transfer input is silent");
+ cards.FinishOperation=IplCardOperationResult.Succeeded;browser.Tick(.016f);sounds.Expect("Verified transfer completion",IplUiSound.ConfirmEdit);
+ browser.Tick(.016f);cards.Probe=true;browser.Tick(.016f);sounds.Expect("Completion is one-shot, independent of probe revisions");
+ BeginCopy(browser,sounds);
+ cards.FinishOperation=IplCardOperationResult.Failed;browser.Tick(.016f);sounds.Expect("Failed transfer",IplUiSound.CancelEdit);
+ browser.Tick(.016f);sounds.Expect("Failure is one-shot");
+ BeginCopy(browser,sounds);
+ browser.Exit();sounds.Expect("B cancels active transfer",IplUiSound.CancelEdit);Check(cards.Cancellations==1,"Transfer cancellation occurs once");
+ browser.Tick(.016f);sounds.Expect("No completion after leaving browser");
+ }
+
+ cards=new Source{Entries=new[]{Item(IplItemKind.Save)}};
+ using(var browser=new IplBrowser(cards,sounds)){
+ browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open deletion fixture",IplUiSound.EnterMenu);
+ browser.Confirm(Video);sounds.Expect("Delete actions",IplUiSound.OpenEditor);
+ browser.Direction(-1,0);sounds.Expect("Select Delete",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Delete confirmation",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Confirm delete choice",IplUiSound.ChangeRow);
+ cards.FailExecute=true;browser.Confirm(Video);sounds.Expect("Rejected delete",IplUiSound.CancelEdit);Check(cards.Executions==0,"Failed operation has no success cue");
+ cards.FailExecute=false;browser.Confirm(Video);sounds.Expect("Reopen delete actions",IplUiSound.OpenEditor);
+ browser.Direction(-1,0);sounds.Expect("Select Delete again",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Reopen delete prompt",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Confirm delete again",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Synchronous delete completes once",IplUiSound.ConfirmEdit);
+ browser.Tick(.016f);sounds.Expect("No duplicate synchronous result");
+ cards.Entries=new[]{Item(IplItemKind.CardFormat)};cards.Probe=true;browser.Tick(.016f);sounds.Expect("Format availability is silent");
+ browser.Confirm(Video);sounds.Expect("First format prompt",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("First format choice",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("First format guard accepted",IplUiSound.ConfirmEdit);
+ Check(browser.FormatStage==2&&cards.Executions==1,"First format guard does not modify card");
+ browser.Confirm(Video);sounds.Expect("Cancel second format guard",IplUiSound.CancelEdit);
+ Check(cards.Executions==1,"Cancellation leaves card unchanged");
+ }
+ cards=new Source{Entries=new[]{Item(IplItemKind.Save)},ReturnFailedExecute=true};
+ using(var browser=new IplBrowser(cards,sounds)){
+ browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open returned-error fixture",IplUiSound.EnterMenu);
+ browser.Confirm(Video);sounds.Expect("Returned-error actions",IplUiSound.OpenEditor);
+ browser.Direction(-1,0);sounds.Expect("Returned-error Delete",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Returned-error confirmation",IplUiSound.OpenEditor);
+ browser.Direction(1,0);sounds.Expect("Returned-error choice",IplUiSound.ChangeRow);
+ browser.Confirm(Video);sounds.Expect("Typed failure overrides success without exception",IplUiSound.CancelEdit);
+ browser.Tick(.016f);sounds.Expect("Returned error is one-shot");
+ }
+ Console.WriteLine("Browser sounds: real selection/open/change/confirm/cancel cues, no-op and background silence, async terminal outcomes and one-shot completion passed.");
+ }
+}
diff --git a/tests/VideoModeMenuTests/IplDetailLayoutTests.cs b/tests/VideoModeMenuTests/IplDetailLayoutTests.cs
index 5dcadc0..0f7d296 100644
--- a/tests/VideoModeMenuTests/IplDetailLayoutTests.cs
+++ b/tests/VideoModeMenuTests/IplDetailLayoutTests.cs
@@ -37,7 +37,7 @@ internal static void Run()
for(int row=0;row<3;row++){Bounds(video);Move(video,1,0);}
var date=Open(ShellFace.Calendar,1);for(int part=0;part<3;part++){Bounds(date);Move(date,1,0);}
var time=Open(ShellFace.Calendar);for(int part=0;part<2;part++){Bounds(time);Move(time,1,0);}
- foreach(int row in new[]{0,1,2}){
+ foreach(int row in new[]{0,1,2,3}){
var options=Open(ShellFace.Options,row);
if(row==1){Move(options,0,1);Check(options.Value(1)=="Pronounced","The full Motion choice must fit the shared value editor.");}
Bounds(options);
diff --git a/tests/VideoModeMenuTests/IplEnvironmentMipmapsTests.cs b/tests/VideoModeMenuTests/IplEnvironmentMipmapsTests.cs
new file mode 100644
index 0000000..2c0b889
--- /dev/null
+++ b/tests/VideoModeMenuTests/IplEnvironmentMipmapsTests.cs
@@ -0,0 +1,71 @@
+using System;
+
+internal static class IplEnvironmentMipmapsTests
+{
+ private static void Check(bool pass,string message)
+ {if(!pass)throw new Exception("Environment mipmaps: "+message);}
+ private static void Pixel(byte[] source,int x,int y,byte a,byte r,byte g,byte b)
+ {
+ int tile=(y/4*2+x/4)*64,at=((y%4)*4+x%4)*2;
+ source[tile+at]=a;source[tile+at+1]=r;source[tile+32+at]=g;source[tile+33+at]=b;
+ }
+ private static void Layout()
+ {
+ int[] sizes={256,128,64,32,16,8,4,2,1};
+ int[] offsets={0,262144,327680,344064,348160,349184,349440,349504,349568};
+ int end=0;
+ for(int level=0;level=64&&(bytes&63)==0,"every mip includes complete aligned RGBA8 tiles");
+ end=offset+bytes;
+ }
+ Check(end==349632&&end==IplEnvironmentMipmaps.ChainBytes,"the complete chain has the exact native allocation size");
+ Check(IplEnvironmentMipmaps.ChainBytes-256*256*4==87488,"one bank adds only the smaller levels");
+ Check(IplEnvironmentMipmaps.LevelBytes(4)==64&&IplEnvironmentMipmaps.LevelBytes(2)==64&&IplEnvironmentMipmaps.LevelBytes(1)==64,"small mips retain their full tile storage");
+ }
+ private static void FlatAndTiles()
+ {
+ var source=new byte[256];var tile=new byte[64];
+ for(int y=0;y<8;y++)for(int x=0;x<8;x++)Pixel(source,x,y,241,37,109,211);
+ foreach(int size in new[]{256,128,64,32,16,8,4,2})
+ {
+ IplEnvironmentMipmaps.DownsampleTile(source,size,tile);
+ for(int at=0;at<32;at+=2)
+ Check(tile[at]==241&&tile[at+1]==37&&tile[32+at]==109&&tile[33+at]==211,"flat fields preserve every channel at every mip size");
+ }
+ for(int y=0;y<8;y++)for(int x=0;x<8;x++)
+ {byte red=(byte)(10+40*(x/4)+80*(y/4));Pixel(source,x,y,255,red,19,73);}
+ IplEnvironmentMipmaps.DownsampleTile(source,8,tile);
+ for(int y=0;y<4;y++)for(int x=0;x<4;x++)
+ Check(tile[(y*4+x)*2+1]==10+40*(x/2)+80*(y/2),"four source tiles retain TL/TR/BL/BR order");
+ }
+ private static void ImpulsesAndPadding()
+ {
+ var source=new byte[256];var tile=new byte[64];
+ Pixel(source,0,0,0,255,0,0);Pixel(source,0,2,0,0,128,0);
+ Pixel(source,2,0,0,0,0,64);Pixel(source,7,7,80,0,0,0);
+ IplEnvironmentMipmaps.DownsampleTile(source,8,tile);
+ for(int at=0;at<64;at++)
+ {
+ int expected=at==1?64:at==40?32:at==35?16:at==30?20:0;
+ Check(tile[at]==expected,"box filtering preserves impulse energy and never mixes AR/GB channels");
+ }
+ for(int y=0;y<4;y++)for(int x=0;x<4;x++)Pixel(source,x,y,200,(byte)(y*4+x),75,30);
+ IplEnvironmentMipmaps.DownsampleTile(source,4,tile);
+ for(int y=0;y<4;y++)for(int x=0;x<4;x++)
+ {
+ int at=(y*4+x)*2,red=3+2*Math.Min(x,1)+8*Math.Min(y,1);
+ Check(tile[at]==200&&tile[at+1]==red&&tile[32+at]==75&&tile[33+at]==30,"2x2 mip padding replicates the filtered edge texels");
+ }
+ Array.Copy(tile,source,64);IplEnvironmentMipmaps.DownsampleTile(source,2,tile);
+ for(int at=0;at<32;at+=2)
+ Check(tile[at]==200&&tile[at+1]==8&&tile[32+at]==75&&tile[33+at]==30,"the final 1x1 average is replicated through its whole tile");
+ }
+ internal static void Run()
+ {
+ Layout();FlatAndTiles();ImpulsesAndPadding();
+ Console.WriteLine("Environment mipmaps: exact GX layout, aligned small levels, flat fields, tile order, independent channel averages and edge padding passed.");
+ }
+}
diff --git a/tests/VideoModeMenuTests/IplMenuLayoutTests.cs b/tests/VideoModeMenuTests/IplMenuLayoutTests.cs
index 993d47c..2caa1b5 100644
--- a/tests/VideoModeMenuTests/IplMenuLayoutTests.cs
+++ b/tests/VideoModeMenuTests/IplMenuLayoutTests.cs
@@ -35,7 +35,7 @@ private static void Fits(Ink ink,Bounds panel,string context)
}
private static void Cube()
{
- foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?3:2);selected++){
+ foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?4:2);selected++){
var shell=new IplShell(new FakeOutput(),new Preferences());shell.TurnTo(face);shell.Tick(1);shell.Time=0;shell.Row=selected;
var panels=new List();var ink=new List();
var canvas=new IplProof{
@@ -63,9 +63,9 @@ private static void Flat()
{
var rowShape=typeof(IplRenderer).GetMethod("FlatRowShape",BindingFlags.Instance|BindingFlags.NonPublic)!;
var cacheStyle=typeof(IplRenderer).GetMethod("FlatStyle",BindingFlags.Static|BindingFlags.NonPublic)!;
- int settingsStyle=(int)cacheStyle.Invoke(null,new object[]{3})!,storageStyle=(int)cacheStyle.Invoke(null,new object[]{2})!;
+ int settingsStyle=(int)cacheStyle.Invoke(null,new object[]{4})!,storageStyle=(int)cacheStyle.Invoke(null,new object[]{2})!;
Check(settingsStyle!=storageStyle&&settingsStyle>1&&settingsStyle!=5&&storageStyle>1&&storageStyle!=5,"Settings/storage menu caches must not alias each other, game or file-browser cards");
- foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?3:2);selected++){
+ foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?4:2);selected++){
var shell=new IplShell(new FakeOutput(),new Preferences());shell.TurnTo(face);shell.Tick(1);shell.Confirm();shell.Row=selected;shell.Tick(.18f);
var ink=new List();var canvas=new IplProof{TextSink=(text,x,y,size)=>ink.Add(new Ink(text,x,y,size))};
var renderer=new IplRenderer(canvas);renderer.Prepare(shell);renderer.Present(shell);
@@ -83,5 +83,5 @@ private static void Flat()
}
}
}
- internal static void Run(){Cube();Flat();Console.WriteLine("Settings/storage layout: three Options rows, two top-Storage actions, selected text growth, wall/footer margins and cache isolation passed.");}
+ internal static void Run(){Cube();Flat();Console.WriteLine("Settings/storage layout: four Options rows, two top-Storage actions, selected text growth, wall/footer margins and cache isolation passed.");}
}
diff --git a/tests/VideoModeMenuTests/IplPreferencesTests.cs b/tests/VideoModeMenuTests/IplPreferencesTests.cs
index d2ce491..b9650cc 100644
--- a/tests/VideoModeMenuTests/IplPreferencesTests.cs
+++ b/tests/VideoModeMenuTests/IplPreferencesTests.cs
@@ -35,7 +35,7 @@ private static void Motion()
foreach(int level in new[]{0,1,2}){
var value=new IplPreferences(new VideoModeSettings(1,2,true),1,level,3);
byte[] bytes=IplPreferencesCodec.Encode(value,23);
- Check(bytes[4]==3&&bytes[10]==level&&IplPreferencesCodec.Decode(bytes,out var actual,out uint generation)&&actual.MotionLevel==level&&actual.GlassBlur==3&&generation==23,"Every motion level survives version-three storage");
+ Check(bytes[4]==4&&bytes[10]==level&&IplPreferencesCodec.Decode(bytes,out var actual,out uint generation)&&actual.MotionLevel==level&&actual.GlassBlur==3&&generation==23,"Every motion level survives current storage");
}
foreach(int invalid in new[]{-1,3}){
var value=new IplPreferences(new VideoModeSettings(1,1,false),0,invalid);
@@ -56,7 +56,7 @@ private static void Motion()
"49504c5303010201010203001700000000000000000000000000000045dc1ee2", // invalid level3
"49504c53030102030102010017000000000000000000000000000000bbb60e03", // contradictory Disabled bit
"49504c53030102010102010117000000000000000000000000000000857c6c60", // reserved byte11
- "49504c53040102010102010017000000000000000000000000000000b180d2d6"})
+ "49504c53050102010103010017000000000000000000000000000000ce651580"})
Check(!IplPreferencesCodec.Decode(Convert.FromHexString(invalid),out _,out _),"Valid CRC cannot admit invalid motion fields, flags or versions");
var store=new Store{Value=new IplPreferences(new VideoModeSettings(1,1,false),0,1,2)};
@@ -94,18 +94,19 @@ private static void GlassBlur()
byte[] legacy=Convert.FromHexString("49504c530101020301000000ffffffff000000000000000000000000e5b84949");
Check(IplPreferencesCodec.Decode(legacy,out var migrated,out uint oldGeneration)&&migrated.GlassBlur==0&&migrated.Video.Widescreen&&migrated.Sound==1&&migrated.ReducedMotion&&oldGeneration==uint.MaxValue,"Old settings load unchanged with blur Off");
byte[] rewritten=IplPreferencesCodec.Encode(migrated,0);
- Check(rewritten[4]==3&&IplPreferencesCodec.Decode(rewritten,out var next,out uint nextGeneration)&&next.GlassBlur==0&&next.MotionLevel==0&&nextGeneration==0,"Saving legacy settings migrates to the new format across generation wrap");
+ Check(rewritten[4]==4&&IplPreferencesCodec.Decode(rewritten,out var next,out uint nextGeneration)&&next.GlassBlur==0&&next.MotionLevel==0&&nextGeneration==0,"Saving legacy settings migrates to the new format across generation wrap");
foreach(string fixture in new[]{
"49504c530101020301010000ffffffff000000000000000000000000bd38ab9e", // v1 reserved byte
"49504c530201020301040000ffffffff0000000000000000000000002f1c3ff8", // v2 blur outside 0..3
"49504c530201020301010100ffffffff0000000000000000000000007427e729", // v2 reserved byte
- "49504c53040102010102010017000000000000000000000000000000b180d2d6"}) // unknown version
+ "49504c53050102010103010017000000000000000000000000000000ce651580"}) // unknown version
Check(!IplPreferencesCodec.Decode(Convert.FromHexString(fixture),out _,out _),"Valid CRC does not permit invalid fields or unsupported versions");
var store=new Store{Value=new IplPreferences(new VideoModeSettings(1,1,false),0,false,2)};
var s=new IplShell(new FakeOutput(),store);Check(s.GlassBlur==2,"Startup restores glass blur");
- Face(s,ShellFace.Options);Check(s.Rows==3&&s.Label(2)=="Glass Blur"&&s.Value(2)=="Medium","Options retains blur after Storage moves to its own side");
- Move(s,0,1);s.Tick(.18f);Check(s.Row==2&&s.Focus(2)==1,"Final row wraps and gains focus");
+ Face(s,ShellFace.Options);Check(s.Rows==4&&s.Label(2)=="Glass Blur"&&s.Value(2)=="Medium"&&s.Label(3)=="UI Sounds","Options retains blur alongside the independent UI sound control");
+ Move(s,0,1);s.Tick(.18f);Check(s.Row==3&&s.Focus(3)==1,"Final row wraps and gains focus");
+ Move(s,0,1);s.Tick(.18f);Check(s.Row==2&&s.Focus(2)==1,"Blur remains independently selectable");
s.Confirm();Move(s,0,1);Check(s.Editing&&s.GlassBlur==3&&s.Value(2)=="High"&&store.Saves==0,"Blur edits preview without saving");
Move(s,1,0);Check(s.GlassBlur==3,"Horizontal input does not change blur");
Move(s,0,1);Check(s.GlassBlur==0&&s.Value(2)=="Off","Blur increments wrap to Off");
diff --git a/tests/VideoModeMenuTests/IplShellSoundTests.cs b/tests/VideoModeMenuTests/IplShellSoundTests.cs
new file mode 100644
index 0000000..abef153
--- /dev/null
+++ b/tests/VideoModeMenuTests/IplShellSoundTests.cs
@@ -0,0 +1,186 @@
+using System;
+using System.Collections.Generic;
+
+internal static class IplShellSoundTests
+{
+ private sealed class Sink : IIplUiSoundSink
+ {
+ internal readonly List Cues=new List();
+ public void Emit(IplUiSound cue)=>Cues.Add(cue);
+ internal void Expect(params IplUiSound[] expected)
+ {
+ Check(Cues.Count==expected.Length,"Expected "+string.Join(",",expected)+"; received "+string.Join(",",Cues));
+ for(int i=0;iWritable?"Saved":"Write protected";
+ public bool Load(out IplPreferences value){value=Value;return Present;}
+ public bool Save(IplPreferences value){Saves++;if(Writable)Value=value;return Writable;}
+ }
+ private sealed class Clock : IIplConsoleCalendar
+ {
+ internal IplCalendarValue Value=new IplCalendarValue(2026,11,14,12,34,56);
+ internal bool Readable=true,Writable=true;
+ public string Status=>"Clock unavailable";
+ public bool Read(out IplCalendarValue value){value=Value;return Readable;}
+ public bool Write(IplCalendarValue value){if(Writable)Value=value;return Writable;}
+ }
+ private sealed class ConsoleSound : IIplConsoleSound
+ {
+ internal bool Readable=true,Writable=true;
+ internal int Mode;
+ public string Status=>"Console sound unavailable";
+ public bool Read(out int mode){mode=Mode;return Readable;}
+ public bool Write(int mode){if(Writable)Mode=mode;return Writable;}
+ }
+ private sealed class Files : IIplBrowserSource
+ {
+ internal bool IsBusy;
+ public int Total=>2;
+ public bool Busy=>IsBusy;
+ public string Status=>"Ready";
+ public bool LaunchRequested=>false;
+ public void Begin(IplBrowserKind kind,string path,int slot,bool rescan){}
+ public void Tick(){}
+ public int ReadPage(int start,IplBrowserItem?[] output){for(int i=0;inull;
+ public string Describe(IplBrowserItem item)=>item.Title;
+ public void Open(IplBrowserItem item,VideoModeSettings video){}
+ public void Dispose(){IsBusy=false;}
+ }
+ private static void Check(bool value,string message){if(!value)throw new Exception(message);}
+ private static void Move(IplShell shell,int x,int y,bool stick=false)
+ {shell.Direction(0,0,0,stick);shell.Direction(x,y,.016f,stick);}
+ private static void Open(IplShell shell,ShellFace face)
+ {shell.TurnTo(face);shell.Tick(1);shell.Confirm();}
+
+ private static void Navigation()
+ {
+ var sink=new Sink();var shell=new IplShell(new FakeOutput(),uiSounds:sink);
+ shell.Tick(3);shell.Confirm();shell.Back();Move(shell,0,0);sink.Expect();
+ Move(shell,-1,0,true);sink.Expect(IplUiSound.TurnSide);
+ shell.Confirm();shell.Back();Move(shell,0,1);sink.Expect(); // Turn animation locks all actions.
+ shell.Tick(1);Move(shell,0,1);sink.Expect(); // Cube side previews are read-only.
+ shell.Confirm();sink.Expect(IplUiSound.EnterMenu);
+ Move(shell,1,0);Move(shell,0,0);sink.Expect();
+ Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow);
+ shell.Direction(0,-1,.016f);sink.Expect(); // A held direction waits before its next accepted repeat.
+ shell.Direction(0,-1,.4f);sink.Expect(IplUiSound.ChangeRow);
+ shell.Back();sink.Expect(IplUiSound.Back);
+ shell.Back();sink.Expect(IplUiSound.TurnCenter);
+ shell.Back();shell.Confirm();sink.Expect();
+ shell.Tick(1);Move(shell,1,0,true);shell.Tick(1);sink.Expect(IplUiSound.TurnSide);
+ Move(shell,-1,0,true);sink.Expect(IplUiSound.TurnCenter);
+ shell.Direction(-1,0,1,true);sink.Expect(); // Reverse-stick latch never crosses another side.
+ shell.Tick(1);Move(shell,0,1,true);shell.Tick(1);sink.Expect(IplUiSound.TurnSide);
+ shell.TurnTo(ShellFace.Memory);sink.Expect(); // No false turn cue when the face is unchanged.
+ shell.Tick(1);shell.Confirm();sink.Expect(IplUiSound.EnterMenu);
+ shell.Confirm();sink.Expect(IplUiSound.CancelEdit); // Unavailable browser service.
+ }
+
+ private static void Volume()
+ {
+ var sink=new Sink();var store=new Store();var shell=new IplShell(new FakeOutput(),store,uiSounds:sink);
+ sink.Expect();Check(shell.UiSoundVolume==2,"Menu audio defaults to Medium without a startup cue");
+ Open(shell,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);
+ Check(shell.Rows==4&&shell.Label(3)=="UI Sounds"&&shell.Value(3)=="Medium","UI audio is a separate fourth option");
+ Move(shell,0,1);sink.Expect(IplUiSound.ChangeRow);Check(shell.Row==3,"Options wraps to its fourth row");
+ shell.Confirm();sink.Expect(IplUiSound.OpenEditor);
+ Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);
+ Check(shell.UiSoundVolume==3&&shell.Value(3)=="Full"&&store.Saves==0&&store.Value.UiSoundVolume==2,"Full volume previews without saving");
+ Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);Check(shell.UiSoundVolume==0&&shell.Value(3)=="Off","Volume wraps to Off");
+ Move(shell,0,-1);sink.Expect(IplUiSound.ChangeValue);Check(shell.UiSoundVolume==3,"Volume wraps back to Full");
+ Move(shell,1,0);sink.Expect();
+ shell.Back();sink.Expect(IplUiSound.CancelEdit);
+ Check(shell.UiSoundVolume==2&&store.Saves==0&&shell.Page==ShellPage.Face,"B cancels the volume draft");
+ Open(shell,ShellFace.Options);sink.Expect(IplUiSound.EnterMenu);shell.Row=3;shell.Confirm();sink.Expect(IplUiSound.OpenEditor);
+ Move(shell,0,-1);sink.Expect(IplUiSound.ChangeValue);shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);
+ Check(shell.FlatMenu&&shell.UiSoundVolume==1&&store.Value.UiSoundVolume==1&&store.Value.GlassBlur==2&&store.Value.MotionLevel==1,"Confirm persists only the accepted volume alongside other settings");
+ var restored=new IplShell(new FakeOutput(),store,uiSounds:sink);sink.Expect();Check(restored.UiSoundVolume==1,"Saved UI volume restores silently");
+ shell.Row=1;shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit);
+ Check(store.Value.MotionLevel==2&&store.Value.UiSoundVolume==1,"Saving another option retains UI audio volume");
+ shell.Row=3;shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);
+ store.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);
+ Check(shell.FlatMenu&&shell.UiSoundVolume==2&&store.Value.UiSoundVolume==1&&shell.SystemStatus=="Write protected","Persistence failure retains session volume and reports failure");
+ var absent=new IplShell(new FakeOutput(),new Store{Present=false},uiSounds:sink);sink.Expect();Check(absent.UiSoundVolume==2,"Missing preferences use Medium");
+ }
+
+ private static void CalendarAndSound()
+ {
+ var sink=new Sink();var clock=new Clock();var console=new ConsoleSound();
+ var shell=new IplShell(new FakeOutput(),calendar:clock,soundService:console,uiSounds:sink);
+ sink.Expect();Open(shell,ShellFace.Calendar);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);
+ shell.Confirm();sink.Expect(IplUiSound.OpenEditor);
+ Move(shell,1,0);sink.Expect(IplUiSound.ChangeField);Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);
+ shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(clock.Value.Minute==35,"Accepted clock changes still write real time");
+ Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.OpenEditor);
+ Move(shell,1,0);Move(shell,1,0);Move(shell,0,-1);sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue);
+ clock.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);Check(shell.Editing,"Clock write failure stays editable");
+ clock.Readable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);shell.Back();sink.Expect(IplUiSound.CancelEdit);
+ Open(shell,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);shell.Confirm();sink.Expect(IplUiSound.OpenEditor);
+ Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);console.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);
+ Check(shell.Editing&&shell.Sound==0,"Console SRAM failure preserves current sound and edit");
+ console.Writable=true;shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(shell.Sound==1,"Console SRAM success commits sound");
+ var missingClock=new IplShell(new FakeOutput(),calendar:new Clock{Readable=false},uiSounds:sink);
+ sink.Expect();Open(missingClock,ShellFace.Calendar);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);missingClock.Confirm();sink.Expect(IplUiSound.CancelEdit);
+ var missingSound=new IplShell(new FakeOutput(),soundService:new ConsoleSound{Readable=false},uiSounds:sink);
+ sink.Expect();Open(missingSound,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);missingSound.Confirm();sink.Expect(IplUiSound.CancelEdit);
+ }
+
+ private static void VideoPreview()
+ {
+ var sink=new Sink();var output=new FakeOutput();var shell=new IplShell(output,uiSounds:sink);
+ Open(shell,ShellFace.Video);sink.Expect(IplUiSound.TurnSide,IplUiSound.OpenEditor);
+ Move(shell,1,0);Move(shell,1,0);sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField);
+ Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);
+ Check(shell.Video.Pending,"Applying mode starts the unchanged 12-second preview");
+ Move(shell,1,0);Move(shell,0,1);sink.Expect();shell.Tick(11);sink.Expect();
+ shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(!shell.Video.Pending&&shell.Editing,"Keep accepts once and returns to grouped editor");
+ Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit);
+ shell.Tick(13);sink.Expect(IplUiSound.CancelEdit);shell.Tick(13);sink.Expect();
+ Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit);
+ output.Failure=1;shell.Tick(13);sink.Expect(IplUiSound.CancelEdit);
+ Check(shell.Video.Pending&&shell.Video.Reverting,"Failed automatic rollback remains pending");
+ shell.Tick(2);shell.Confirm();shell.Back();sink.Expect(); // Repeated rollback/Keep guards are silent.
+ output.Failure=0;shell.Tick(2);sink.Expect();Check(!shell.Video.Pending&&shell.Page==ShellPage.Face,"Retry completes the requested return without a second cue");
+ Open(shell,ShellFace.Video);sink.Expect(IplUiSound.OpenEditor);Move(shell,1,0);Move(shell,1,0);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue,IplUiSound.ConfirmEdit);
+ shell.Back();sink.Expect(IplUiSound.CancelEdit);Check(shell.Page==ShellPage.Face&&!shell.Video.Pending,"B preview reverts and returns to cube");
+ Open(shell,ShellFace.Video);sink.Expect(IplUiSound.OpenEditor);output.Failure=2;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);
+ Check(shell.Editing&&!shell.Video.Pending,"Failed mode apply keeps the editor");
+ }
+
+ private static void SafeModeAndSaveErrors()
+ {
+ var sink=new Sink();var output=new FakeOutput();var store=new Store();var shell=new IplShell(output,store,uiSounds:sink);
+ shell.SafeMode();sink.Expect(IplUiSound.ConfirmEdit);Check(shell.Face==ShellFace.Video&&store.Saves==1,"Safe mode succeeds without an extra turn cue");
+ shell.SafeMode();sink.Expect(IplUiSound.ConfirmEdit); // It is still an accepted hardware command.
+ output.Failure=1;shell.SafeMode();sink.Expect(IplUiSound.CancelEdit);
+ output.Failure=0;store.Writable=false;shell.SafeMode();sink.Expect(IplUiSound.CancelEdit);
+ shell.Tick(1);shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,1,0);Move(shell,1,0);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue,IplUiSound.ConfirmEdit);
+ shell.Confirm();sink.Expect(IplUiSound.CancelEdit);Check(!shell.Video.Pending&&shell.SystemStatus=="Write protected","Failed Keep persistence reports failure while retaining the applied session mode");
+ }
+
+ private static void BrowserDelegation()
+ {
+ var sink=new Sink();var files=new Files();var browser=new IplBrowser(files,sink);
+ var shell=new IplShell(new FakeOutput(),browser:browser,uiSounds:sink);
+ Open(shell,ShellFace.Memory);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);
+ Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.EnterMenu);
+ Move(shell,1,0);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.EnterMenu);
+ shell.Confirm();sink.Expect(IplUiSound.Back);
+ files.IsBusy=true;Move(shell,1,0);shell.Confirm();shell.Tick(1);sink.Expect();
+ shell.Back();sink.Expect(IplUiSound.Back);Check(shell.Page==ShellPage.Face,"Shell delegates browser cues exactly once and preserves browser exit");
+ }
+
+ internal static void Run()
+ {
+ Navigation();Volume();CalendarAndSound();VideoPreview();SafeModeAndSaveErrors();BrowserDelegation();
+ Console.WriteLine("Shell audio: accepted navigation/field/value cues, silent guards/startup, volume draft/save/reload, hardware errors, preview keep/revert/timeout retries and safe mode passed.");
+ }
+}
diff --git a/tests/VideoModeMenuTests/IplShellTests.cs b/tests/VideoModeMenuTests/IplShellTests.cs
index b236b55..1d93449 100644
--- a/tests/VideoModeMenuTests/IplShellTests.cs
+++ b/tests/VideoModeMenuTests/IplShellTests.cs
@@ -60,7 +60,7 @@ internal static void Run()
var output=new FakeOutput();var s=new IplShell(output);
Flat(s,ShellFace.Calendar);s.Hour=23;s.Minute=59;s.Confirm();Move(s,0,1);Check(s.Segment(0)=="00"&&s.Segment(1)=="59","Hour wraps independently");Move(s,1,0);Move(s,0,1);Check(s.Segment(1)=="00","Minute wraps independently");s.Back();Check(s.Page==ShellPage.Face&&s.Face==ShellFace.Calendar&&s.Hour==23&&s.Minute==59,"B discards all time parts and leaves to cube");
Flat(s,ShellFace.Calendar);s.Year=2024;s.Month=2;s.Day=29;s.Row=1;s.Confirm();Move(s,1,0);Move(s,1,0);Move(s,0,1);s.Confirm();Check(s.FlatMenu&&s.Year==2025&&s.Day==28,"Date commit clamps leap day and returns to flat list");
- Side(s,ShellFace.Options);s.Confirm();Check(s.FlatMenu&&s.Rows==3&&s.Label(1)=="Motion"&&s.Label(2)=="Glass Blur","Options contains settings only after Storage moves to the top");s.Row=1;s.Confirm();Check(s.Editing&&!s.ReducedMotion,"Motion opens the common value editor without changing its default");s.Back();
+ Side(s,ShellFace.Options);s.Confirm();Check(s.FlatMenu&&s.Rows==4&&s.Label(1)=="Motion"&&s.Label(2)=="Glass Blur"&&s.Label(3)=="UI Sounds","Options contains settings and UI sound volume");s.Row=1;s.Confirm();Check(s.Editing&&!s.ReducedMotion,"Motion opens the common value editor without changing its default");s.Back();
s.TurnTo(ShellFace.Menu);s.Tick(.7f);Move(s,0,1,true);s.Tick(.7f);Check(s.Face==ShellFace.Memory&&s.Title=="Storage"&&s.Rows==2,"Up opens the dedicated Storage side");s.Confirm();Check(s.FlatMenu&&s.Label(0)=="Memory Card"&&s.Label(1)=="SD Storage","Storage opens its two flat storage actions directly");s.Back();Check(s.Page==ShellPage.Face&&s.Face==ShellFace.Memory,"B returns directly from Storage options to the top cube side");Move(s,0,-1,true);Check(s.Page==ShellPage.Cube,"Down reverses the stick entry to the top Storage side");
var focus=new IplShell(new FakeOutput());Side(focus,ShellFace.Options);Check(focus.Focus(0)==0,"Read-only previews have no active row animation");focus.Confirm();focus.Tick(.18f);Check(focus.Focus(0)==1,"Flat list focus eases in");Move(focus,0,-1);focus.Tick(.09f);Check(focus.Focus(0)>0&&focus.Focus(1)>0,"Flat row focus crossfades");focus.Tick(.09f);Check(focus.Focus(0)==0&&focus.Focus(1)==1,"Flat focus finishes its transition");
Console.WriteLine("IPL shell: read-only sides, flat lists/editors, B-to-cube, guarded rollback, calendar parts, Motion and focus passed.");
diff --git a/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs b/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs
new file mode 100644
index 0000000..da69300
--- /dev/null
+++ b/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs
@@ -0,0 +1,35 @@
+using System;
+
+internal static class IplUiAudioPolicyTests
+{
+ private static void Check(bool value,string message)
+ {if(!value)throw new Exception("UI audio policy: "+message);}
+ internal static void Run()
+ {
+ Check(IplUiAudioPolicy.VolumeForLevel(0)==0&&IplUiAudioPolicy.VolumeForLevel(1)==.25f&&
+ IplUiAudioPolicy.VolumeForLevel(2)==.5f&&IplUiAudioPolicy.VolumeForLevel(3)==1,"saved volume levels");
+ var policy=new IplUiAudioPolicy();
+ Check(!policy.Accept(IplUiSound.None,0)&&!policy.Accept((IplUiSound)99,0),"unknown actions stay silent");
+ Check(policy.Accept(IplUiSound.ChangeRow,1000),"first movement plays immediately");
+ Check(!policy.Accept(IplUiSound.ChangeValue,40999),"movement types share a 40 ms limit");
+ Check(policy.Accept(IplUiSound.ConfirmEdit,2000)&&policy.Accept(IplUiSound.Back,3000)&&
+ policy.Accept(IplUiSound.CancelEdit,4000),"confirmation and back bypass movement throttling");
+ Check(policy.Accept(IplUiSound.ChangeField,41000),"movement accepted at the exact boundary");
+ Check(!policy.Accept(IplUiSound.TurnSide,41000),"simultaneous movement is suppressed");
+ Check(policy.Accept(IplUiSound.TurnCenter,81000),"cube return uses the same bounded movement policy");
+ Check(policy.Accept(IplUiSound.ChangeRow,1),"a reset test clock does not mute navigation permanently");
+ for(int i=0;i
+
+
@@ -31,6 +33,8 @@
+
+
diff --git a/tools/gamecube_bridge/README.md b/tools/gamecube_bridge/README.md
index 1aebbc5..ed4e478 100644
--- a/tools/gamecube_bridge/README.md
+++ b/tools/gamecube_bridge/README.md
@@ -195,6 +195,9 @@ DNDP v2 reads the resolved output resolution separately from EFB dimensions.
For example 576p can render through a 640x480 EFB; `native_output_height=576`
in job metadata, scan=progressive in all rows and the requested scene are checked
independently. EFB `height` in the CSV is not treated as video-output height.
+The native-AA cube now reports a 242-line EFB at 480i/p output; flat Detail
+pages report 480 lines. Both keep `native_output_height=480`. The bridge accepts
+these dimensions without rescaling or replacing the recorded EFB height.
The initial v1 transport evidence is retained as historical data.
The v2 native retest confirms 576p output with a 640x480 EFB, scan=progressive,
diff --git a/tools/gamecube_bridge/tests/test_bridge.py b/tools/gamecube_bridge/tests/test_bridge.py
index a840e69..49e7fdb 100644
--- a/tools/gamecube_bridge/tests/test_bridge.py
+++ b/tools/gamecube_bridge/tests/test_bridge.py
@@ -265,6 +265,20 @@ def test_pal_output_and_efb_height_are_independent(self):
finally:
a.close();b.close()
+ def test_480_output_accepts_aa_cube_and_full_height_flat_efbs(self):
+ for video in ('480i','480p'):
+ for scene,height in (('Options',242),('Cube',242),('Detail',480)):
+ with self.subTest(video=video,scene=scene,efb_height=height):
+ a,b=socket.socketpair()
+ try:
+ a.sendall(packet(scene=scene,video=video,efb_height=height))
+ _,rows,_,output_height=protocol.telemetry(b)
+ self.assertEqual(output_height,480)
+ self.assertEqual({row['height'] for row in rows},{height})
+ self.assertEqual({row['scan'] for row in rows},{service.VIDEOS[video][1]})
+ finally:
+ a.close();b.close()
+
class BridgeTests(unittest.TestCase):
def setUp(self):
@@ -313,7 +327,7 @@ def test_end_to_end_job_restores_receiver_and_preserves_csv(self):
def callback():
with socket.create_connection(('127.0.0.1', self.bridge.settings['callback_port'])) as stream:
stream.settimeout(3)
- stream.sendall(packet(token))
+ stream.sendall(packet(token,efb_height=242))
self.assertEqual(protocol.exact(stream, 4), b'OKAY')
self.receiver.on_commit = callback
image = elf(token)
@@ -328,11 +342,13 @@ def callback():
time.sleep(.01)
self.assertEqual(result['state'], 'completed', result)
self.assertEqual(result['result']['measurement_origin'], 'simulated-target-not-hardware')
+ self.assertEqual(result['result']['native_output_height'],480)
self.assertTrue(result['result']['receiver_ready_after_run'])
self.assertNotIn('callback_token', result)
status, csv = self.request('GET', '/v1/jobs/' + identifier + '/frames.csv')
self.assertEqual(status, 200)
self.assertEqual(len(csv.splitlines()), 97)
+ self.assertEqual({line.split(',')[13] for line in csv.decode().splitlines()[1:]},{'242'})
self.assertEqual(self.request('POST', '/v1/jobs/' + identifier + '/image', image)[0], 409)
self.assertEqual(self.receiver.commits, 1)