Commit Graph
1598 Commits
Author SHA1 Message Date
Valiantsin DzerakhandClaude Opus 5.5 9cf4d060d1 A plugin loop that spins on a yield with no call in its body gets a spin line, so its back-edges go through rt_spin_gate and hand the virtual core to a waiting thread (#1388)
Zonai Fieldworks guards its hook wrappers with an exclusive byte lock (plugin+0xe3ff4 on 1.4.3). On the Switch the
holder has its own core; here a spinner kept the virtual core the holder waited for, and the game froze when a member
was switched off. exefs_plugins.py now finds such loops by word (a direct back-edge of at most 512 bytes to a head
whose body holds a yield and no bl, blr or svc): 21 in Fieldworks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:11:19 +03:00
Valiantsin DzerakhandClaude Opus 5.5 fc2863a15c nvnCommandBufferFenceSync is implemented: the sync waits for the fence of the submit that carries the record (#1388)
Zonai Fieldworks' native-font renderer (Cryonis in its BotW Abilities member) records it, and the weak stub ended the
game with "NVN nvnCommandBufferFenceSync is not implemented". The record is a new op, OP_FENCE_SYNC, that every replay
skips; at QueueSubmitCommands the syncs named in the submitted handles get that submit's fence value, which completes
no earlier than the console's point. The game itself never records the op, so its submits pay one flag load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:23:19 +03:00
Valiantsin DzerakhandClaude Opus 5.5 4fccaa5bef Each exlaunch inline stub a plugin writes back to back at init is a lift entry, with its callback (#1388, #1451)
Zonai Fieldworks writes one stub per member hook in a row at init and points a gate slot at it when the player switches
the member on. init_code took only the first stub of the row as a start and read the 8-byte callback after it as more
code, so the other stubs (Hookshot at plugin2+0x135048, Fleet Sync at plugin2+0x1350f0) were never lifted and switching
them on ended the game with "no function at guest pc".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:19:50 +03:00
Valiantsin DzerakhandClaude Opus 5.5 340da7c6e6 A plugin hook on main's module header gets only its expect line, not a lift site (#1422, #1461)
exlaunch adds a table offset to main's base, so an update the plugin's table lacks hooks main+0x0 (Challenge
Mode's Enemy Health Regeneration names 1.0.0 to 1.4.1). Nothing runs there, on the Switch either; the site line
made the generator refuse the lift ("patched instruction is a trap") and the installer dropped every plugin. The
report notes such a hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:06:28 +03:00
Valiantsin DzerakhandClaude Opus 5.5 5c5c6d1dd0 With a mod plugin on, read-only module data stays writable on the host, so Zonai Fieldworks can swap main's RELRO entries when a member is switched on in play (#1451)
QueryMemory still reports the permission the game asked for. Material Columns swaps 11 dispatch slots in main's
RELRO from its own code at switch time; on the platforms the mod is made for that write goes through, here it
faulted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:06:27 +03:00
Valiantsin Dzerakh d4794238d4 Merge branch 'dev' into task/plugself 2026-11-25 20:44:52 +03:00
Valiantsin DzerakhandClaude Opus 5.5 08284c107d Merge task/sadef: sync_ahead is on by default and frame generation runs with it (#1129, #1192)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:41:47 +03:00
Valiantsin DzerakhandClaude Opus 5.5 e7439d4f9e sync_ahead is on by default, and frame generation runs with it: the replay and the presents keep their order with the frame wait one frame late, and each submission waits until the present thread submitted the blit, so the two alternating generated pictures stay safe (#1129, #1192)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:41:46 +03:00
Valiantsin DzerakhandClaude Opus 5.5 6841675942 Merge pull request #1459: the UI is laid out for any screen shape from 4:3 to 32:9, 4:3, 7680x2160 and phone sizes join the list, the Purah Pad frame, the map and the loading screen fill wide screens; vert_plus (the 16:9 width at narrower shapes) is off by default with a row under the field of view (itaskaev2) (#632, #1453)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:36 +03:00
Valiantsin DzerakhandClaude Opus 5.5 519d6628a2 Merge pull request #1442: with dlaa_effects_after = 1 the upscaler runs after the fog layer and the clouds, so distant ridges no longer get a bright outline; the option is named Particles after DLAA (codexx-dev)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:33:29 +03:00
Valiantsin DzerakhandClaude Opus 5.5 abadb60861 Merge pull request #1466: the gameplay map zoom works with menu_cursor = 0, the map is still found while gameplay_map_zoom is on (ShannoonRuaaa) (#1376)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:33:27 +03:00
Valiantsin DzerakhandClaude Opus 5.5 6c76ca86ed Merge pull request #1465: under Steam on Linux the gamepad pauses while the window has no focus, so Steam's overlay and menus get its presses alone; pad_background = 1 keeps it playing, Windows unchanged (ShannoonRuaaa) (#1462)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:33:26 +03:00
Valiantsin DzerakhandClaude Opus 5.5 b13875340e Merge pull request #1467: the Linux setup names a system library the game cannot start without and the package that has it, before the lift and after a start the loader stopped (ShannoonRuaaa) (#1428, #1315, #1419)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:33:25 +03:00
Valiantsin DzerakhandClaude Opus 5.5 b51dccd969 The Steam check of pad_background is left out on Windows, where the game window is not SDL's: the hint stays on there as before (#1462)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:32:57 +03:00
Valiantsin DzerakhandClaude Opus 5.5 f69d170484 Ship vert_plus off by default and give it a row under the field of view in the Display tab
A new setting starts off: on by default, Steam Deck (1280x800) and other 16:10, 3:2 and 4:3 players would get a
wider view than the game's with a GPU cost nobody measured on the weakest target. The toggle is live, as
resolution.c res_fov_live re-reads it. res_fov_live starts from the game's own view (shown_vp 0), so at 16:9 the
first present writes nothing and logs nothing, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:29:01 +03:00
Valiantsin Dzerakh 1b366cac61 Merge pull request #1442 2026-11-25 16:22:43 +03:00
Valiantsin Dzerakh a7d5a6159f Merge pull request #1466 2026-11-25 16:22:37 +03:00
Valiantsin DzerakhandClaude Opus 5.5 73aafc3c12 Merge pull request #1459: lay the UI out for screen shapes from 4:3 to 32:9, offer 4:3 and phone sizes, keep the 16:9 width at narrower shapes (itaskaev2) (#632, #1453)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:22:24 +03:00
Valiantsin Dzerakh 9aec84889c Merge pull request #1465 2026-11-25 16:22:22 +03:00
Valiantsin Dzerakh ba6e22cf5c Merge pull request #1467 2026-11-25 16:22:16 +03:00
Valiantsin DzerakhandClaude Opus 5.5 20e27a2d33 Merge task/drs: with sync_ahead, timestamps the late frame wait did not cover read as the newest one written at that wait, so dynamic resolution no longer drops to its lowest level for half a second at a time (#1123)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:17:45 +03:00
Valiantsin DzerakhandClaude Opus 5.5 6f97dca93a A plugin's call to a function it defines itself is its own code, not an import (#1422, #1461)
A plugin built with default visibility calls its own exported functions
through its PLT. Challenge Mode's Enemy Health Regeneration plugin
(exefs subsdk8) does so for the std::vector<const char*> constructor it
carries, and the service run counted that as a library call outside the
reviewed list, so the plugin was refused and its whole mod stayed off.

runtime/loader.c resolve binds such a JUMP_SLOT straight to the plugin's
own definition (a host override still wins and stays counted), and
tools/exefs_plugins.py plt_imports maps the PLT stub to that code, so
the reach check follows into it instead of naming an import.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:06:54 +03:00
Valiantsin DzerakhandClaude Opus 5.5 47eb44d1b2 With sync_ahead, a timestamp the frame wait did not cover reads as the newest one written at that wait, so the dynamic resolution controller never reads a wrapped GPU time (#1123)
The game converts the end and then the begin report of a pair and subtracts them unsigned. With the frame wait one
frame late the end could be unwritten (0) or hold the value of the report before it, and the difference wrapped to
about 2^64: an over-budget frame for the controller, two in a row drop the game to its lowest quality level. Reads of
a report that holds 0, a time after the bound, or whose newest replayed report is not done read the bound instead,
so a pair in submission order never reads end < begin. Guest memory, RENDER_COND and samples-passed counts are
unchanged. TOTK_SYNC_AHEAD_TIMESTAMPS=0 turns it off, =check counts without replacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:46:45 +03:00
itaskaev2andClaude Opus 5.5 c03fffd7cd Give the camera's album window the screen's shape and keep the inn's clock under its choices at shapes narrower than 16:9
The "save to the album?" window showed a 4:3 or 16:10 photo in a 16:9 frame, stretched across: N_FirstOut_00's
scale_y k, there for the compendium's square photos, also undid N_InOut_00's taller frame for the album photo under
it. The scale goes on N_PictureBook_00 and the album's question and buttons (N_AlbumCon_00) instead, and those move
out by the frame's extra half height. The clock of an inn's choices (Time_00) stayed in the middle 16:9 while
MessageDialog_00 went to the bottom edge, so it covered the last choices; it goes to the bottom edge too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 11:29:22 +01:00
itaskaev2andClaude Opus 5.5 f51308cb8f Fill shapes narrower than 16:9 with the map instead of black above and below it
AppMap_00's capture, cut, backing and shadow panes are 1080 high, the height of a 16:9 layout, in the layout and in the full map's keys of AppMap_00_MiniMap, which win over the layout's sizes. On a 4:3 or 16:10 canvas they now take the screen's height, 1080 / k, so the map reaches the Purah Pad frame at the top and bottom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:58:40 +01:00
itaskaev2andClaude Opus 5.5 24662dbf60 List ultrawide monitors and the other screen shapes in the README's features
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:43:34 +01:00
ShannoonRuaaaandClaude Opus 5.5 b0990047b4 The Linux setup names a system library the game cannot start without, before the lift and after a start the loader stopped (#1428)
The libSDL3.so.0 the release puts next to the game links system libraries a minimal system may lack (libXss.so.1 on AnataseOS in #1315 and #1428, libdecor-0.so.0 on Batocera in #1419). The loader then stopped totk --prepare-shaders with exit code 127 after the half hour of lift and compile, and the setup reported only that preparing the shaders failed.

The check step now runs ldd on the release's libraries (Linux, not in a repository build) and stops with check.libraries_missing, naming the missing files and, for the common ones, the package that provides them on Fedora, Debian/Ubuntu and Arch (LIBRARY_PACKAGES). When the game still fails to start in the prepare step, the loader's "error while loading shared libraries" lines in its log give prepare.libraries_missing in place of prepare.shaders_failed. Both messages are in all twelve catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:16:20 -08:00
ShannoonRuaaaandClaude Opus 5.5 3b7c4bea3c The gameplay map zoom works with the menu cursor off: the map is still found while gameplay_map_zoom is on (#1376)
gameplay_tweaks.c map_zoom_allowed zooms only on the map that menu_cursor.c finds in eui's open screens, and with menu_cursor = 0 that scan did not run, so the scroll wheel neither zoomed the map nor did the mouse move its cursor, with gameplay_map_zoom = 1 set. menu_cursor_poll now scans for the map while that zoom is on, as it scans for the dialogue box for dialogue_click; the pointer, the menus, the strips and the camera stay off with menu_cursor = 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:11:37 -08:00
ShannoonRuaaaandClaude Opus 5.5 58fd4f6f68 The gamepad pauses while the window has no focus in a game Steam started, so Steam's overlay and menus get its presses alone (#1462)
Since #971, SDL passes gamepad events to the game while its window has no focus (SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS). On Linux the window is SDL's, and under Steam the focus goes to Steam's overlay and menus while they are open (the Quick Access menu in SteamOS's Game Mode): the game took the presses meant for them too, which 0.4.1 did not.

The new setting pad_background (auto, 1, 0; read at start) decides the hint. auto, the default, keeps it on unless Steam started the game (SteamGameId or SteamOverlayGameId in the environment, set for Steam games and non-Steam shortcuts alike); 1 keeps the gamepad playing behind other windows under Steam too, 0 pauses it everywhere. input_map.c input_pad_background_pick holds the decision and cfg_probe checks it. On Windows the game window is not SDL's, and nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:08:22 -08:00
itaskaev2andClaude Opus 5.5 9932ac2892 Fill wide screens with the map and the loading screen instead of black bars
The full map's width was held at 2250 by AppMap_00_MiniMap's size keys (they win over the layout's sizes): wide_anim sets them to 2250 / k, so the map is drawn across a 32:9 screen; the layer tabs and the time and position move to the screen's edges. The loading map is a capture of the 3 x 3 world map tiles of 840 units around the player's tile (TOTK_DUMP: nine 840x840 tile draws into the capture), so a capture wider than about 1680 shows black where the player stands near a tile's edge: loading_map keeps it at most 1660 wide from the screen's left edge, moves the map's slide keys (LoadingFade_00_BarIn and BarOut) with it, and widens the side panel, a window whose frame keeps its proportions, to the screen's right edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:47:01 +01:00
itaskaev2andClaude Opus 5.5 66bb3c749a Keep the Purah Pad frame's width and an unstretched loading map at wide shapes
AppMenuOverlay_00 keeps a full-width root, so the stone and light pieces of the map's side frame (N_Frame_00, P_Frame{L,R}*) were stretched across a 21:9 or 32:9 screen; they now take scale k at the edges. The loading screen widened N_Base_00 back to the screen, which stretched the map capture inside it; instead the capture panes and their pictures get a size of 1920/k - 450 (1470 at 16:9), so more map shows unstretched, and the side panel stays at the right edge at its own width. The map's cut and backing panes (AppMap_00 N_Cut_00 and the others) take 2250/k as a size. ultrawide_layout.py gains the pane width field (+76); tests/hud_layout_test.py leaves these three layouts out of its byte comparison with the older implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:30:47 +01:00
itaskaev2andClaude Opus 5.5 463af9cb14 Offer 7680x2160, the 32:9 size of 57-inch dual-4K monitors
It takes the 32:9 layout folder (3840x1080's, cfg.c cfg_shape_size); totk.ini.example names the common 21:9 and 32:9 sizes and hud_width for the HUD in the middle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:10:34 +01:00
itaskaev2andClaude Opus 5.5 ce156ff76b Keep the 16:9 width of the view at shapes narrower than 16:9 (vert_plus) (#632)
The camera kept the game's vertical view angle at every shape, so 16:10, 3:2 and 4:3 showed less of the world at the sides than 16:9. res_fov_live now also multiplies the fov patch's factor by 2 atan(tan(v/2) k) / v, k = 16:9 over the aspect and v = 51.2 degrees, the game's default vertical angle measured from a 4:3 frame at fov 130 against 16:9 (scale 0.730). Measured after: 4:3 frames are 16:9 ones scaled by 0.752 (0.750 is exact), 16:10 by 1.000 (1.106 without). vert_plus = 0 keeps the game's vertical view; it multiplies with fov.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:02:37 +01:00
itaskaev2andClaude Opus 5.5 13b4b0ca9b Lay the UI out for any screen shape from 4:3 to 32:9, and offer 4:3 and phone sizes (#632, #1453)
A game resolution whose shape the fifteen listed sizes did not cover (13:6 on a phone streamed to, 4:3) drew 16:9 with bars: neither the setup's Shapes step (installer/screens.py shape_size) nor the game's background generator (runtime/romfs.c romfs_folders_prepare) made a layout for it, though tools/ultrawide_layout.py handles any aspect ratio and runtime/romfs.c overlay_init already loads a folder of the exact size. cfg.c cfg_shape_size and screens.py shape_size now give an unlisted shape from 4:3 to 32:9 its own size, so both make romfs-patches-<w>x<h> for it; a display of an unlisted shape still keeps the 1920x1080 default and gets no folder. The list gains 4:3 (1440x1080, 1600x1200, 2048x1536, 2732x2048) and 19.5:9 and 20:9 phone sizes (2340x1080, 3120x1440, 2400x1080, 3200x1440), in the menu's game resolution row too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:50:55 +01:00
Valiantsin DzerakhandClaude Opus 5.5 ed8fa04034 Merge task/plugstale: a mod plugin whose start-up writes a value into the game's data that redirects nothing (Zonai Fieldworks' Self Recall and its memory pool size) no longer goes stale when render_scale grows the pool, and a plugin the game found stale makes the rebuild lift and compile again instead of looping (#1437, #1388)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:00:15 +03:00
Valiantsin DzerakhandClaude Opus 5.5 6205940caf Merge pull request #1448: skip_cs leaves out the dispatches of listed compute shaders, a bisecting tool for the Intel 1.2.1 boot freeze (ShannoonRuaaa) (#1402, #994)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:12:15 +03:00
Valiantsin DzerakhandClaude Opus 5.5 c91046781f skip_cs names the offending entry when it is not 1 to 16 hex digits, not the whole value
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:12:06 +03:00
Valiantsin DzerakhandClaude Opus 5.5 28d8a43bfe A plugin the game found stale makes the rebuild run the lift and the compile (#1437, #1388)
build-cache/plugins.stale changes no input of the lift or compile key, so the rebuild the game started planned only
check and cleanup, never ran the plugin's service run again, and the plugin stayed stale. A non-empty plugins.stale
now makes Lift and Compile not current (installer/steps.py plugins_stale); Compile too, since the transient lift runs
only with the step after it. Lift.run clears the file, so the next start plans nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:46:41 +03:00
Valiantsin DzerakhandClaude Opus 5.5 cc749d8679 A plugin's write into main's data that points at no plugin code is matched by place only at start (#1437, #1388)
The expect line of such a word says `* *` (tools/exefs_plugins.py plugin_lines), recomp/patches.py carries it into
RT_PLUGIN_WRITES as a flag, and runtime/plugin_init.c check_writes accepts any value there through
runtime/plugin_writes.h plugin_write_find. Hook branches in .text and pointers into a plugin's .text keep the exact
match. Zonai Fieldworks' Self Recall takes its storage off a pool size at main+0x3ad6eb8 that grows with the texture
heap of render_scale, so its plugin went off at every start with a grown heap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:46:33 +03:00
Valiantsin Dzerakh 453e83f564 Merge branch 'pr1448' into task/pr1448 2026-11-24 21:30:20 +03:00
ShannoonRuaaaandClaude Opus 5.5 1910ffb609 The skip_cs setting leaves out every dispatch of the compute shaders it lists, named by the id the pass marks print.
Issue #1402 reports a GPU hang on Intel (Mesa ANV) right after the startup logo on game 1.2.1, which the pass marks put in one dispatch of cs 75be3722f62cb67e. #994 reports the same freeze on Intel's Windows driver with 1.2.1, while 1.4.3 boots. The cause is not found yet. skip_cs takes the named dispatches out so a tester can confirm the shader is the cause and get past it, at the cost of what the shader would write. An id shorter than 16 hex digits matches every shader whose id starts with it. The log names each listed id and the first dispatch skipped of each. The setting is registered in cfg.c, documented as Risky in docs/settings.md, and docs/agents/symptoms.md gets a row for the freeze.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:59:15 -08:00
Valiantsin DzerakhandClaude Opus 5.5 7da078d1ab Merge task/bmerge: barrier_merge is on by default and ends the pass when a draw samples a target written in the pass that it does not write itself, as Savage Wind does; shrine passes 581 -> 128 a frame on an RDNA2 iGPU with the GPU time unchanged on AMD's Windows driver, RADV waterfall GPU 8.3 -> 4.1 ms (#1237)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:15:52 +03:00
Valiantsin DzerakhandClaude Opus 5.5 dca69306fb barrier_merge is on by default
With the unwritten-read rule every read that stays merged comes from a draw that samples a target it also writes,
the case Savage Wind runs the same way on every GPU. Shrine on the RDNA2 iGPU (AMD Windows driver, 1080p): passes
581 -> 128 a frame, GPU time unchanged (37.2 ms off, 38.0 and 36.5 ms on), the picture the same. PR #1237 measured
the waterfall on RADV at 1105 -> 117 passes and GPU 8.3 -> 4.1 ms, and an RTX 4080 shrine at +3% mean fps with the
1% low 83 -> 98. barrier_merge = 0 brings back a full barrier at each such Barrier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:15:23 +03:00
Valiantsin DzerakhandClaude Opus 5.5 3c977bf78c Merge pull request #1435: Linux opens a text entry window for the software keyboard (horse naming) with keyboard and controller grid input, and falls back to the default name when no window opens (cheat45681) (#401)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:07:57 +03:00
Valiantsin DzerakhandClaude Opus 5.5 c3cd1e31c2 Text entry on SDL: hint lines come from the catalog, a password shows stars, a surrogate pair goes in and out whole and obeys the length limit, TOTK_SWKBD_TEST=ok presses OK, and the window redraws when exposed (#401)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:07:09 +03:00
Valiantsin DzerakhandClaude Opus 5.5 5aaa718eb6 barrier_merge ends the pass when a draw samples a target written in the pass that it does not write itself
The by-region barrier inside a merged pass orders only the pixel a fragment writes. A draw that reads a target other
draws wrote, without writing it, may read neighbouring pixels (blur, ambient occlusion, light composites), which only
the game's full Barrier orders on every driver. Such a draw now ends the pass, as Savage Wind does for the same case.
TOTK_TRACE=gfx counts these restarts by colour and depth. Shrine, town and field on 1.4.3: 0 restarts; every read
after a merged Barrier comes from a draw that writes the target it samples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:04:48 +03:00
cheat45681 37551aedad Linux text entry: controller letter grid (D-pad, bottom add, right delete, Start OK, top cancel); keyboard unchanged 2026-11-24 09:03:38 +03:00
cheat45681 a5c95fb971 Linux: add a text entry window for the software keyboard (horse naming, #401) 2026-11-24 09:03:38 +03:00
Valiantsin DzerakhandClaude Opus 5.5 be7ca2c275 Merge task/demoteini: on AMD's Windows driver a discarded pixel keeps running only in shaders that take a derivative after the discard, so grass, foliage and other alpha-tested draws no longer pay for their discarded pixels; demote is a totk.ini key (#1365, #164)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:57:41 +03:00
Valiantsin DzerakhandClaude Opus 5.5 c8b88f7428 Demote a discard only where a derivative follows it, and read demote from the ini (#164, #1365)
spirv_demote turned every OpKill inside a selection into OpDemoteToHelperInvocation on AMD's Windows driver. A
demoted fragment runs the rest of the shader, so every alpha-tested draw (grass, foliage, hair) paid for its
discarded pixels. The cloud fringe of #164 came from OpImageQueryLod after the discard. Now a discard is demoted only
when an OpImageQueryLod, an explicit derivative or a function call follows it in its function; the rest keep the
plain discard, as before 0.4.1. On the field save 1 of 128 shaders with a discard is demoted, and the picture keeps
the fix.

demote has a row in the settings table and a description in totk.ini.example, so demote = 0 or 1 in the ini no
longer logs an unknown key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:56:03 +03:00