Skip to content

Tags

Tags

share/metalfx-scene

Toggle share/metalfx-scene's commit message
MetalFX on the 3D scene before the HUD, on my-main: scup_pass_begin d…

…oes not reset g_px_dcu / g_px_dcc, the DM_NVN_DC_UNWRITTEN / DM_NVN_DC_COVERED latches of the diagnostic commits seedds#225 replaced (botw-fx has them, my-main does not)

pre-split/arkham-knight

Toggle pre-split/arkham-knight's commit message
Batman: Arkham Knight: prewarm lines through Pauli's Diner (1,672 lin…

…es), and a benchmark route in the diner (bench.tsv)

pre-main-c13ddcf/thermal-cap

Toggle pre-main-c13ddcf/thermal-cap's commit message
Thermal cap: the frame step's log names the cap's reason (prerendered…

… movie or thermal state serious; it said prerendered movie for both), and docs/reference/frame-rate.md has its entry (A thermally serious iPhone holds 30 fps), linked from Breath of the Wild's note; the symptom index is regenerated

pre-main-c13ddcf/launcher-advanced

Toggle pre-main-c13ddcf/launcher-advanced's commit message
iOS launcher: an Advanced page with the settings that trade latency, …

…memory or heat for smoothness, and a reset to the game's tested defaults; the launcher stores only choices that differ from the default; docs/settings.md explains every setting for players. settings.tsv gets a page column (main / advanced, parsed strictly by settings.py) and toggles that set other values than 1 / 0 (values <on>/<off>: DM_FPS_HOLD takes on / off, which the host reads; a 0 would have meant on). The first page keeps frame rate, render scale, console mode, language, the frame-rate counter and rumble; its last row, Advanced, opens Frame buffering (DM_PRESENT_SNAP, the profile's present_snap), Metal 4 pipelines (DM_PSO_MTL4, the profile's pso_mtl4), Pipeline prebuild (DM_PSO_PREBUILD; it runs once in the prepare step, so its note says the first start waits), Encode thread (DM_NVN_ENC_THREAD, on as the host on iOS), Hold frames when late (DM_FPS_HOLD, the profile's fps_hold, for games with a frame step) and the Performance HUD. Play stores a choice only when it differs from the game's default (a range compares as numbers) and removes a stored one that equals it, so a setting the player left alone follows a later build's tested defaults; Reset to tested defaults forgets the Advanced page's stored choices; Documents/env.txt still wins and is never stored. docs/settings.md (linked from README's Play section): each setting, when to change it and its cost, with diagrams of a frame with and without frame buffering, of when a pipeline is built (the prepare step, the one-time prebuild, hybrid stand-ins, background builds into the archive), and of the frame step with and without holds. Checked: dm/tools/tests pass (test_launcher_settings: pages, profile defaults for Breath of the Wild and Wonder, on / off values, the strict table format), dm/ios/tests pass (the new test_launcher_storage compiles Launcher.swift with launcher_storage_check.swift and runs it in a booted iOS Simulator, skipped without one: 10 checks of what is stored, Reset and the env file), docs_symptoms.py --check and test_docs pass, the iOS compile check (133 files) and build_smoke.py pass; the launcher drawn in an iPhone 17 Pro Max simulator (iOS 27) shows the first page with the Advanced row and the Advanced page with Breath of the Wild's defaults

pre-main-c13ddcf/gpu-spike

Toggle pre-main-c13ddcf/gpu-spike's commit message
Compute dispatches between the draws of a pass run ahead of it (DM_NV…

…N_CS_HOIST, on by default, 0 turns it off), exact for dispatches that sample the pass's depth: such a dispatch moves only while no draw before it in the pass writes depth

Metal cannot run a compute dispatch inside a render pass, so every dispatch between two draws of one pass ends it, and on a tile-based GPU each split stores and reloads every attachment and pays a pass's fixed cost. When a draw opens a pass, cs_hoist_try scans the ops after it up to the first one that would end the pass anyway; each dispatch met on the way runs right away, before the pass opens, when moving it ahead of the draws before it in that stretch changes nothing they read or write: it writes no memory those draws read (vertex, index, indirect, uniform and storage buffers; its storage buffers count as written), samples no colour attachment of the pass, writes no image, and the draws write no memory (no storage buffer, image or transform feedback). Replay then skips it (csh_take), and the pass stays open across it. A dispatch that samples the pass's depth would see it as the pass began, so the scan stops at such a dispatch once a draw of the stretch (the one opening the pass included) has depth writes on. Breath of the Wild's NintendoWare VFX particles run one dispatch per emitter between the effect draws of the G-buffer and of the half-resolution passes, and their collision samples the G-buffer depth: no draw before them writes depth (0 stops of that kind).

The residency set line counts moved dispatches, those sampling the pass's depth, and why scans stopped; DM_NVN_PASSDUMP prints H lines.

Measured (Zora's Domain, 900p, FPS 120, M2 Max, back to back, means over 300-frame windows, slice merging on in both): compute encoders 28 -> 8 and render passes 149 -> 132 a frame, frame p50 9.92 -> 8.97 ms, p95 10.70 -> 9.98 ms, window max 11.55 -> 10.76 ms, GPU p50 7.69 -> 6.70 ms, frame interval p99 11.1 -> 10.4 ms, 100.8 -> 111.4 fps. Checked: the cube-filter frame's 173 render targets dumped with and without (DM_NVN_TEXDUMP=layers=100) match within 0.7% RMSE for every 3D target (only the 2D overlay of the final picture differed: a loading banner's animation, timed by the wall clock); screenshots of the same scene; t_nvn (128 checks) and the docs test pass. Reference entry in docs/reference/rendering.md, the game's note, the switch in dm/gfx/README.md

pre-main-c13ddcf/botw-main

Toggle pre-main-c13ddcf/botw-main's commit message
MetalFX on the 3D scene before the HUD, on my-main: scup_pass_begin d…

…oes not reset g_px_dcu / g_px_dcc, the DM_NVN_DC_UNWRITTEN / DM_NVN_DC_COVERED latches of the diagnostic commits seedds#225 replaced (botw-fx has them, my-main does not)

pre-main-a0841d6/botw-uncap

Toggle pre-main-a0841d6/botw-uncap's commit message
Variable frame step: the step state is g_vstep, not g_vs, which nvn_m…

…tl.m's occlusion slots use: the graphics tests that build nvn_mtl.m and hle_nvn.c as one translation unit (t_linear_readback and others) failed to compile (CI's build check on 1b37c0f). Checked: every gfx test builds, t_fstep (57) and t_present_snap (13) pass

pre-main-a0841d6/botw-main

Toggle pre-main-a0841d6/botw-main's commit message
MetalFX on the 3D scene before the HUD, on my-main: scup_pass_begin d…

…oes not reset g_px_dcu / g_px_dcc, the DM_NVN_DC_UNWRITTEN / DM_NVN_DC_COVERED latches of the diagnostic commits seedds#225 replaced (botw-fx has them, my-main does not)

pre-main-4639c51/botw-uncap

Toggle pre-main-4639c51/botw-uncap's commit message
Variable frame step: the step state is g_vstep, not g_vs, which nvn_m…

…tl.m's occlusion slots use: the graphics tests that build nvn_mtl.m and hle_nvn.c as one translation unit (t_linear_readback and others) failed to compile (CI's build check on 1b37c0f). Checked: every gfx test builds, t_fstep (57) and t_present_snap (13) pass

pre-main-4639c51/botw-main

Toggle pre-main-4639c51/botw-main's commit message
MetalFX on the 3D scene before the HUD, on my-main: scup_pass_begin d…

…oes not reset g_px_dcu / g_px_dcc, the DM_NVN_DC_UNWRITTEN / DM_NVN_DC_COVERED latches of the diagnostic commits seedds#225 replaced (botw-fx has them, my-main does not)