Valiantsin Dzerakh and Claude Opus 5.5
ba2b3f439f
Merge the green ring icon for totk.exe, TotK-Setup.exe, the installer window and the game window
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 17:23:07 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
0409863bc9
Set the window class icons of the game window from resource 1 of totk.exe, so the title bar, taskbar and Alt+Tab show the green ring
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 17:23:07 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
c4108c49a8
Map NVN's 16-bit packed formats with their components counted from the least significant bit, as NVN does for RGB10A2: RGB565 is B5G6R5, RGB5A1 is A1B5G5R5, and the old table, which took LAS Recomp's order, read the Depths terrain's normal and blend maps scrambled and stretched the ground textures along one axis
...
A1B5G5R5 needs VK_KHR_maintenance5, so RGB5A1 stands in as A1R5G5B5 with R and B swapped by the view swizzle (TexVkFormat.chan); RGBA4 and RGB565 fall back the same way to mandatory formats on devices that lack A4B4G4R4 or B5G6R5. RGB5 and BGR5 now sample alpha as 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:48:05 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
a9a7762ead
Give totk.exe, TotK-Setup.exe and the installer window the green ring icon: runtime/totk.ico is embedded through totk.rc and a new launcher.rc, and the release copies it into runtime/ for the Tk window
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:48:02 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
e3e0eb06c8
Merge the MacNativeGames rendering ports and the Depths terrain fix: storage buffers addressed from user uniform blocks are bound, so the Depths ground draws again; NVN texture sizing, attachment-less pass size, early fragment tests, depth sampling as one texel and D16 compare rounding follow MacNativeGames
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:26:51 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
864320ec2c
Add frame dump options for lighting work: TOTK_DUMP_TEX copies chosen textures by slot or size, TOTK_DUMP_UBO prints the head of user uniform blocks, TOTK_DUMP_SKIP_RUNS skips copying passes that repeat the previous pass's targets
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:26:11 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
6029719713
Read depth textures sampled without a compare as one texel, and round the reference of D16 array shadow compares to 16 bits, as MacNativeGames 6283599 does: the game binds linear samplers to depth it reads as data, and the Switch compares D16 against a reference at the texture's precision
...
The point form of a sampler slot is built once (vk_sampler_point_by_id_locked). Translator patch 0009 rounds the 2DArrayShadow reference in Ryujinx's SPIR-V backend.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:25:56 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
05f3643dc0
Bind storage buffers whose address the shader loads from a user uniform block: the Depths terrain reads its vertices through one (about 500 draws a frame in the G-buffer, the light probes and the shadow cascade) and drew nothing with the zero buffer, so the ground was missing and rocks lost their bounce light
...
ubo_ptr reads the address at bind time from the latest UpdateUniformBuffer of the submission that covers it, else from memory, since the terrain rewrites one block before every draw and guest memory gets it only at the write-back. bind_sig compares the address on every draw. MacNativeGames resolves these the same way (NVN_RB_SBUFU, pend_read).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 16:25:46 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
be759ca618
Give fragment shaders that set NVN control byte 0x718 early fragment tests, as MacNativeGames ae8f4f4 does: the request carries early_fragment_tests and the translator passes it to Ryujinx as EarlyZForce
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 14:45:03 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
679c6771df
Check tools/vendor/ryujinx against MacNativeGames at the pinned commit by git blob ids, not the checkout, which may be newer or carry CRLF line ends; --out builds the translator into a task build dir
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 14:45:02 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
7ceda9475b
Size a pass without attachments by the far corner of viewport 0, else of the scissor, and reopen it when a draw needs more area, as MacNativeGames 62da927 does; an offset viewport no longer falls outside the scissor
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 14:40:00 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
f25c818f7b
Size NVN textures as MacNativeGames 3c482a7 does: packaged byte 0 holds block height and block depth nibbles, cube map arrays count layer-faces in depth, linear block-compressed textures count pixel rows
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 14:31:41 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
734eee4383
Merge the gamepad fix: poll_merged reads the gamepad again
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:57:48 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
581b5a8731
Read the gamepad again in every input poll: the menu's Minus+Plus change dropped the pad_read call from poll_merged, so the game saw no gamepad buttons or sticks
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:56:51 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
cd312dbca4
Merge the frame rate overlay (TOTK_PERF_OVERLAY, F10)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:50:45 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
c757a42798
Add the frame rate overlay: TOTK_PERF_OVERLAY fps shows the frame rate in the top right corner, full adds the mean and longest frame time of the last half second, F10 cycles the modes and saves the choice
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:50:45 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
12e234f2c0
Merge the in-game settings menu: Screen, Game, Sound, Controls and Menu tabs over the cfg table, English and Russian text, settings saved to totk.ini; the overlay, the Advanced tab and the rest wait in the backlog
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:31:46 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
f2db724631
Grey out the performance overlay row until the overlay exists, and list what the menu still lacks in the backlog
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:31:45 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
b0805112ed
Merge main into task/menu: the docs and comment cleanup, with the Dear ImGui set-up of menu.cpp kept in the LAS Recomp notices row
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:16:23 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
f8d584b3db
Add the tabbed settings menu: option rows over the cfg table for the Screen, Game, Sound, Controls and Menu tabs, Continue and Quit game in the bottom row, and a note when totk.ini cannot be written
...
Rows read and write their key through cfg, mark the default, say "after restart" for start-only settings and grey out what an environment variable fixes; totk.ini is written 0.4 s after the last change and when the menu closes. The graphics card list comes from the Vulkan devices, the window sizes from the monitor, and the language names of Japanese, Korean and Chinese are drawn with glyphs merged in from a system font (plat_font_path). The font atlas and style follow the window height. TOTK_MENU_TEST saves one shot per tab and ignores real input meanwhile; TOTK_MENU_TEST_SET sets settings at given frames (SAVE=1 writes totk.ini). A background test window going fullscreen no longer comes to the front or takes focus, and the log names the present mode the swapchain gets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 10:13:33 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
4d4b0efeb8
Latch the Minus+Plus combo until both are released, serialise menu open and close, pack the cursor release flags into one word, and drop menu_available
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:51:56 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
0cfc489bbf
Open the menu for everyone: F1, Esc and Minus+Plus toggle it, the combo never reaches the game, the page offers Continue and Quit game, and closing after Esc gives the mouse capture back
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:49:15 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
81af84d327
Correct the descriptions of fix_zero, fix_c0, split_draws, tex_alias, lod_guard, vk_dyn_vertex and pipe_wait in the menu catalog, polish the Russian wording, and make menu_text's cached language atomic
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:43:15 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
c79c614cee
Add the menu and overlay text to the host catalog in English and Russian, menu_text for the menu language, and plat_ui_language for the Windows UI language
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:40:22 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
8b514f6ead
Keep every default in the settings table: cfg_value, cfg_int, cfg_double and cfg_bool read it, and the consumers of table keys drop their own defaults
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:32:30 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
30aafad993
Merge the code comment cleanup: no citations of local build/ notes, the replay default stated as off
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:25:25 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
7b85a2681a
Keep free_cores=0 as gate on, refuse to rewrite totk.ini after a failed read, drop empty-valued lines on Reset, and add plat_file_set_readonly and plat_file_size
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:23:55 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
111f748c51
Remove citations of local build/ notes from code comments and correct the TOTK_REPLAY_ASYNC default in vk_backend.c
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:23:21 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
b29969f0ab
Merge the docs cleanup for the public repository: a shorter README, an outsider-readable backlog, no local build/ paths, citations by function name
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:01:41 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
7d33982123
Drop the UHD 630 ASTC remark and the guess that image aliasing causes the black patches, which no code, commit or log confirms
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 09:00:09 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
2dd2a177a4
Add the settings defaults table, cfg_reset and a save status to cfg, and replace the unread fps_counter key with perf_overlay
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:59:48 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
ac75fecc41
Trim the README to a front page: short status, features and build steps, with bug lists, measurements and design detail left to the backlog and the architecture doc, and mark the UHD 630 ASTC path as unverified
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:59:18 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
283e1f18cf
Bring the published docs up to date for the public repository
...
The README now names the three test machines, the installer, remapping and the mouse camera, and lists the open bugs. The backlog drops the dated diary, finished steps and local paths and keeps every open item with its evidence. Citations into our code name functions instead of line numbers that had drifted, build/ notes are no longer cited, and the toolchain doc lists opus and libvpx.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:53:19 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
c6a7a28ab4
Compile Dear ImGui and draw the menu overlay into the swapchain image, behind the test hook TOTK_MENU_TEST until the pages are agreed
...
The window follows TOTK_WINDOW_SIZE, TOTK_FULLSCREEN and TOTK_VK_PRESENT while the game runs, and F11 saves the fullscreen state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:35:24 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
c3b3c297cf
Merge main into task/menu: keep main's button remapping, Esc cursor release and new settings beside the live settings, with one live mouse sensitivity
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:27:26 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
10a933bc08
Park the menu's input block, gamepad read and C++ build patterns as work in progress
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:25:10 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
31b864380f
Keep the replay on the submitting thread unless TOTK_REPLAY_ASYNC=1, since no timing showed a gain yet, and list async_preempt and replay_async in totk.ini.example
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:23:27 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
84abfaaf2c
Merge the replay of NVN submissions on a queued thread, with reads waiting for the newest writer instead of a drain, behind TOTK_REPLAY_ASYNC
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:22:35 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
0ecfe91063
Merge asynchronous preemption of virtual cores with priority inheritance and the SDK's preemption disable, after MacNativeGames PR #488 , behind TOTK_ASYNC_PREEMPT (on by default)
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:22:25 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
792cc378f5
Merge branch 'main' into task/replayq
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:20:17 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
b0fa74720f
Finish the queue before a host capture only when the replay is asynchronous, so TOTK_REPLAY_ASYNC=0 keeps the old capture path
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:20:17 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
dd4b28b400
Merge main into task/preempt
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:19:18 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
921a5df120
Merge the texture re-upload counters into the perf lines
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:16:22 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
a220b89459
Collect the open work in one list in docs/backlog.md, read the shared shader list's "*" texture kind as 2D, and record measurements from the other test machines
...
The backlog gets one "Open work" section: freezes, bugs (the Yunobo fade with its repro), machine items and paused
branches. prepare_shaders.py no longer stops on the "*" and "*_depth" texture kinds of the newer list revisions.
The playbook records the GTX 1050 Ti, RTX 3090 Ti and 8th-gen i7 numbers and how to get a perf log from those
machines; port-lessons gains the MacNativeGames virtual-core preemption row; totk.ini.example lists mouse_sens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:16:10 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
5eb60404a2
Describe the asynchronous preemption of virtual cores in docs/architecture.md
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 08:01:21 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
bc6294cf46
Wait for the newest recorded writer of the stale textures in a guest read instead of draining the replay queue
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 07:48:33 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
e523898280
Merge branch 'main' into task/replayq
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 07:45:15 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
8553b00c9b
Drop the bisect modes 3 to 5 of TOTK_ASYNC_PREEMPT and log interrupts after the owner is resumed
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 07:44:47 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
9ddbc7b49d
Check the replay queue for room again after taking the core back, since another thread may have filled it meanwhile
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 07:44:43 +03:00
Valiantsin Dzerakh and Claude Opus 5.5
9bf73a3646
Work in progress: guest threads give their virtual core up while they wait for the replay queue, not yet built or run
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-26 00:05:14 +03:00