Skip to content

Star Fox: a sharper picture, a warm-up list, lower cutscene latency and sound held for the picture; a controller that reconnects goes back to player 1 - #1717

Closed
NicoPV94 wants to merge 1 commit into
seedds:mainfrom
NicoPV94:star-fox

Conversation

@NicoPV94

@NicoPV94 NicoPV94 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Star Fox (0400E88025B1A000) items that main's Star Fox port does not have yet. Most of the branch this came from (the bring-up, BMSK, PIXLD, SURED.OR, TLD4 through a uniform register, compute's separate handles, DLSS resize, SDK 21 audio, sockets, camera, GameChat) was already on main and has been dropped. The shader chain does not change.

  • Sharper picture: a new profile key, romfs_file, serves small files in the RomFS (hle_fs.c profile_romfs_dir, the last overlay root; DM_ROMFS_FILES=0 turns it off). Star Fox's engine cvar file sets render.resolution_scale_console to 1.0, so the scene renders at 1536x864 instead of 768x432. This resolves the note's open question "why the 3D stays at 768x432". The cutscene's GPU time went from 6.7 to 7.3 ms (p50).
  • DLSS bias mask: it is passed to MetalFX as the reactive mask, which clears the [RED] line.
  • Cutscene latency: a 30 Hz display link now uses frame latency 1, since it already has the lead that latency 2 buys. Star Fox's 30 fps cutscenes in variable-refresh fullscreen go from 128 ms to 57-80 ms (p50) between queue and screen. The enqueue-to-display p50 is exported as dm_present_e2e_us.
  • Sound held for the picture: the sound is delayed by that measured time (hle_audio.c sync_delay, DM_AUDIO_SYNC), and the delay changes only while the input is quiet.
  • Controller reconnect: after a disconnect, a single controller left in another slot moves to player 1 if that slot is free (pad_slot_settle, front_mac.m pads_settle). Before this, an Xbox controller that came back as "Controller" took player 2 and the game ignored it.
  • Warm-up list: pso_manifest.tsv, recorded in the first Mac sessions, takes the opening cutscene's first-use stalls from 36 frames (12.5 s) to 1 (54 ms). Its pipeline rows predate the high-attribute field and still parse.
  • Regression test: a translator test (GuardedDeferredWrites) for Star Fox's light-grid GPU hang, which main's guarded-write fixes already cover.

Checks

  • Passed: the host build for Star Fox, make -C dm/host/tests run (including t_hid, t_audio with test_sync_delay, and t_fs), t_present_rescue --metal (89 checks), test_dmsh_ampere_alu.py and test_dmsh_ampere_mem.py, and test_docs.py.
  • Not run: regress.py check. The author has no other local game builds and no disk space for them. regress.py impact lists Hades, Breath of the Wild, Pokémon Scarlet and Tears of the Kingdom, through their nn::fs and audio output use. The fs change does nothing without a romfs_file row. The audio change delays sound only while a display link measures a delay, and DM_AUDIO_SYNC=0 turns it off.
  • Not run on this rebase: Star Fox itself. The same changes were played on the earlier branch, but the sound delay has not been listened to with the window in front.

🤖 Generated with Claude Code

…sound held for the picture; a controller that reconnects under another name goes back to player 1

- romfs_file: a profile key for small files the host serves in the RomFS (hle_fs.c profile_romfs_dir, the last overlay root; DM_ROMFS_FILES=0 leaves them out). Star Fox's engine cvar file sets render.resolution_scale_console to 1.0: 1536x864 instead of 768x432
- DLSS's bias mask goes to MetalFX as its reactive mask
- Frame latency 1 for a 30 Hz display link, which has latency 2's lead already: Star Fox's 30 fps cutscenes went from 128 ms to 57-80 ms (p50) from queue to screen in variable-refresh fullscreen; the enqueue-to-display p50 is exported (dm_present_e2e_us)
- Sound held back by that measured delay (hle_audio.c sync_delay; DM_AUDIO_SYNC), changed only while the input is quiet
- After a disconnect, a lone controller left in another slot moves to a free player 1 (pad_slot_settle, front_mac.m pads_settle)
- Star Fox's pso_manifest.tsv from the first Mac sessions: the opening cutscene's first-use stalls went from 36 frames (12.5 s) to 1 (54 ms)
- A translator test for the light-grid hang (two guarded loads of one register on two barriers), which main's guarded-write commits already fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added host The Horizon host: SVCs, services, threads, memory (dm/host) nvn NVN on Metal and its tests (dm/gfx/nvn, dm/gfx/tests) mac The Mac front end and app (dm/mac, front_mac.m) docs Documentation game: 0400E88025B1A000 A game profile labels Nov 7, 2026
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 15, 2026
…wer cutscene latency and sound held for the picture; a controller that reconnects goes back to player 1

Its DLSS bias-mask part is on main in its own form (seedds#1904, 23790f8): main's scaler, key and reactive-mask code stay. The display link keeps main's link_30hz and link_vrr_120, with the PR's latency rule for a 30 Hz link (link_slow) and dm_present_e2e_us; t_audio takes main's aout_buf; the game note keeps main's graphics-scale finding beside the PR's romfs_file resolution.
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 18, 2026
Resolutions:
- seedds#1847's queue-buffer doubling is on main in its own form (2a67900): main's nq_bytes stays. Its uniform-conflict cache now runs main's new buffer-texture check (ubd_conflict_textures) on every call, since bound textures are not part of the cached state; its GPU clock keeper starts from main's mtl_init_once.
- seedds#1822's microphone input keeps its sources and frameworks beside main's new audio output (CoreAudio, t_audio_live, t_friends in the test list).
- seedds#1717's sound delay line follows main's per-route device channels (a->dev_ch, sized for a->ch); its sync test and main's rate test both run in t_audio.
- seedds#2710's level count uses main's sink channel count; t_audren_snd stubs main's system-event bindings and audio route.
- Ocarina of Time: main's movie-player patches beside seedds#2259's frame-ratio entry; seedds#2173's 85 mesh pipeline rows and main's 10,415 compute rows both kept in pso_manifest.tsv.
- CI list: main's, plus t_lag (seedds#2074). Switch table regenerated; symptom index and game-patches.md regenerated; chain header is main's 7a2020f13431.
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 23, 2026
… inside seedds#1971 (9143b6f), so the frame step takes main's form (its GPU-idle and unpaced-probe code with main's stalls and fine link) and keeps seedds#2259's measured frame time and seedds#1942's own t_fstep cases; the batch's store-witness set (seedds#1847) gives way to main's growable one (a67583a); the display link's latency keeps seedds#1717's no-2-on-a-30-Hz-link beside main's fine-mode latency; the acquire sync keeps the batch's image fence with main's focus / settle marks; Donkey Kong Bananza's geo_mesh.tsv goes as on main (the split's geo_pairs.tsv names its rows, the batch's Canyon Layer a504d5de36060114 among them); main's Ocarina smoke route replaces an untracked local one; game notes, the games table (Mario Kart World's v917504 kept), settings (Rotation beside Sound output), the CI list (t_lag kept), shader_lib's dedup with main's .part cleanup, the packer's RomFS tweaks read from main's romfs; game-patches.md and the symptom index regenerated; chain 26e1a5f38264 -> f19baf01187e
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 23, 2026
…nk's probation (3d186f2) beside the batch's latency rules (seedds#1717's 30 Hz link, main's fine mode); chain f19baf01187e -> 4dbd705d26e9 (seedds#3176's blend fix-up); symptom index regenerated
@seedds

seedds commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thanks for measuring the Star Fox cutscenes and capturing the original warm-up list. I checked the branch against main. Main now has the shared Switch 2 display-size fix in 78bd42b, passes the DLSS bias mask to MetalFX in 23790f8, and ships a newer Star Fox prewarm seed in 1487bca.

I’m closing the combined PR. The reported 128 ms to 57–80 ms cutscene latency and 36-to-1 reduction in first-use stalls are worth retaining. The reconnect and audio timing changes are independent and can be judged on current-main reproductions.

@seedds seedds closed this Nov 26, 2026
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 27, 2026
…st, link latency at 30 Hz, sound held for the picture, controller reconnect to player 1): closed; main has its own display-size fix (78bd42b), the DLSS bias mask (23790f8) and a newer prewarm seed (1487bca); the latency, sound and reconnect changes are to be judged again on main. The note keeps the batch's link to main's 'Center and back channels' entry
Kayyluhh added a commit to Kayyluhh/nxnative that referenced this pull request Nov 27, 2026
…d first; Store.slim (seedds#2470) reads main's v2 cache schema; chain 2d0bb91984e7 -> ce42b3f44d72

Reverted before this merge (each its own commit): on main in its own form or superseded: seedds#1978 (1e06abd), seedds#3195 (8c7660d, discussion seedds#3291), seedds#2140 (62bcfd2), seedds#1594 (a694f17), seedds#1847's host changes (473c90d, 1999cbd), seedds#2173 (main's discussion-fed list), ef13ece's port of seedds#2390 (5fa41f3); closed upstream with nothing on main, at the user's choice: seedds#1827, seedds#1765, seedds#1642, seedds#1847's Bananza render scale (7984715), seedds#1717, seedds#2251, seedds#2259, seedds#2226.

Conflicts: the frame lag ring (seedds#2074) beside main's acquire-next receipts (1999cbd): frame_lag_wait after main's offscreen early return, frame_lag_note before main's next_ticket bookkeeping, nvn_queue_present_hold / ticket_fence beside main's nq_receipt_wait_published; the prebuild tool's timer still writes nothing (da2808f) beside main's batched archive writes (4d62497), whose removal of the 1,000-capture flushes matches fa1df04; t_pso_archive runs both tool_write_waits_for_compiles and batch_wave; seedds#2470's slim argument kept beside main's pruning step and GL shader build; tests.yml takes main's list plus t_lag; t_audio_device keeps test_route_choice (main moved wait_for_phase up); development.md takes main's compressed-cache sentence plus seedds#2470's; rendering.md keeps seedds#2388's "3D upscaler" label in main's new text; the chain header is main's (dmsh_chain.py --header gives the same value).

Merge fix: Store.slim measured index entries with length(b.data), a column main's v2 schema (5fa41f3) renamed to payload; it now picks the column as prune_shaders does, and its test counts stored bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation game: 0400E88025B1A000 A game profile host The Horizon host: SVCs, services, threads, memory (dm/host) mac The Mac front end and app (dm/mac, front_mac.m) nvn NVN on Metal and its tests (dm/gfx/nvn, dm/gfx/tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants