0.5.1-rc1
This is a release candidate for 0.5.1: a test build ahead of the release, not the default download. Please report what breaks for you, and how the new settings below work on your PC, in their issues or in a new one. 0.5.0 stays the recommended version until 0.5.1 is out.
Most worth testing: the new settings below, the code mods the setup used to refuse (Challenge Mode, Magic of the Kingdom, Zonai Fieldworks), and the setup itself.
New settings to test (off by default)
These are off until players confirm them. Turn one on in totk.ini and tell us in its issue whether it helps.
- AMD FSR 4 upscaling on Windows (#1409).
scene_upscaler = fsr4(or AMD FSR 4 in the menu's scene upscaler row) upscales the 3D scene with AMD's FSR 4.1 through AMD's own libraries, which the setup downloads when its AMD FSR box is ticked (ticked by default on AMD graphics). Best on Radeon RX 9000; older Radeons may get it at a higher GPU cost; not on Linux. Like DLSS and FSR 3.1 it raises the frame rate only where the graphics card holds the game back (1440p, 4K, weaker GPUs); where the processor is the limit it costs about as much as FSR 3.1. - AMD Anti-Lag 2 on Radeon graphics. The Low Latency setting has a new value, Auto (
reflex = autointotk.ini): NVIDIA Reflex on GeForce, AMD Anti-Lag 2 on Radeon with a driver that has it. It cuts the delay between a button press and the picture where the graphics card holds the game back; frame rate stays the same. On and On + Boost stay NVIDIA-only as before. - Faster starts with mods (
restbl_cache = 1). With mods on, the game rebuilds the table of resource sizes at every start (about 1 s with The Second Quest, longer with large texture packs). With the setting on it keeps the table from the last start and uses it again while the game, the port and every mod file are unchanged; any change rebuilds it. - Intel HD and UHD graphics (6th to 10th generation) on Windows: crash right after the logo (#1343).
null_attach = 1gives the game's render passes a small stand-in image where they leave a colour slot empty, which may avoid the crash in Intel's older driver. Untested on that driver; other GPUs do not need it. - Intel graphics on Linux: white or dark flashes in campfire smoke, clouds and the sky (#927).
anv_vs_barrier = 1stops them on Intel with Mesa on Linux. It costs about 5% of the frame rate on an Iris Xe; other GPUs do not need it.
Code mods to test
The setup now builds in plugins it refused before, and the whole mod no longer stays off. If you play one of these, tell us whether it starts and works as on the Switch.
- Challenge Mode and other code mods with long hooks start (#578, #1360). The setup refused plugins whose hooks land on a conditional branch, a tbz/cbz or an address load (Challenge Mode, also when merged by TKMM); they now build in, and the hooked game code sees the plugin's checks as on the Switch.
- Magic of the Kingdom and other code mods built with a newer exlaunch start (#1388). The setup refused plugins whose hooks save the float registers through exlaunch's newer hook entry; they now build in.
- Zonai Fieldworks and other code mods that switch their features while you play start (#1388). The setup refused plugins that hook the middle of a game function, swap pointers in the game's data, keep files on the SD card or point their hooks at other code during play; they now build in. Their SD card files live in the
sdcardfolder of the game's profile. A plugin may also call anything in the system library that the game itself calls (threads, input, time, files), where it used to be held to a short list. With such a mod the setup translates the game code once or twice more, a few minutes longer. - Code mods work when the install folder has a space or # in its path. The setup dropped an accepted plugin when its folder path had a space (
D:\Zelda TotK) or#, and the plugin never ran.
Setup
- The setup no longer stops with "hactool merge failed" on some dumps (#1326). hactool's warning about the update's ACID signature, which says nothing about the game data, counted as an error; the merge now goes on when all six RomFS hash levels and the image hash check out.
- The setup no longer calls a complete NSZ dump damaged. Some
.nszfiles store padding after an uncompressed block; the setup counted that padding as game data and could stop with a damage report such as "49,664 of 49,664 bytes". It now reads each block's own bytes only, as the nsz tool does. - The setup explains a failed computer check (#1345, #875). When the Vulkan layer of an overlay, recorder or tuning tool crashes Vulkan programs, the setup names that layer and how to turn it off, instead of stopping at "The computer check did not run (exit code 3221225477)"; the game would have crashed on it too. When Smart App Control, an App Control policy or an antivirus blocks the setup's programs, it says so instead of ending with an error dump.
- The setup window no longer runs off small screens (#744). On a small display or with large text scaling the setup's screens scroll, and Start, Cancel and Close stay in view; on other screens the window looks as before.
- The setup reads totk.ini as the game does. A resolution, button style or HUD width written in quotes, or followed by an empty line for the same key, now gets its layouts prepared at setup instead of at the game's first start; a repeated
langline is changed where the game reads it. - A damaged setup state file gives a clear message. When
totk-install.jsonheld a field of the wrong type, the setup stopped with an error dump; it now reports the file as unreadable, as it does for other damaged state files. - A damaged shader cache pack is rebuilt. A pack whose header gave an impossible entry count made the setup's last step ask for up to 192 GiB of memory and fail; it now rebuilds the pack from the loose files.
- The setup's compile no longer pages on a PC with little free memory. It starts as many compile jobs as the free memory holds, not as many as the installed RAM would.
- Linux: the setup builds in a folder whose path has an apostrophe, parentheses, quotes or a
$. The compile commands quoted such paths the Windows way, so the shell changed them or stopped before compiling.
Fixes
- Thunderstorms above 30 fps no longer have extra lightning (#1287). Distant bolts and lightning flashes come as often as at 30 fps at any frame rate; at 30 fps and below nothing changes.
lightning_fix = 0brings back the game's own chances. - FSR 3.1 and frame generation no longer turn the picture into noise on Radeon graphics under Linux. Their images landed in a kind of video memory the game does not turn on (RADV, seen on a Radeon 780M). On Windows and on NVIDIA nothing changes.
- GPUs without
VK_EXT_external_memory_hostcan run the game. Such GPUs were skipped and the game exited before the title: Qualcomm Adreno on Windows, some older or mobile drivers, and RenderDoc captures. They now run with copies of the game's memory pools, which cost some memory and frame time. Other GPUs see no change.
Features
- The settings menu (F1) in German, French, Spanish, Italian, Dutch, Japanese, Korean and Vietnamese, and the setup in Vietnamese. The menu follows Windows' language or
langintotk.ini; other languages still fall back to English.
Performance
- The setup's last step, folding the shader cache, takes less time on slow disks or with an antivirus scanning each file. It reads the cache's files on several threads (up to 8, one on a PC with little free memory); the result is the same file, and on a fast disk the step takes as long as before.
Thanks
Thanks to Icing-weaponry for reporting the failed merge on the Steam Deck with its log and ICUMADETHIS for the fix (#1326), ovilers for reporting the storms at high frame rates and shinodanpen for counting the bolts and fixing them (#1287), rhyzk and joliziox for reporting the failed computer check and Smart App Control block and ShannoonRuaaa for the fix (#1345, #875), ChrisYuanZhong for reporting the setup window running off the screen and ICUMADETHIS for the fix (#744) and for the plugin path fix, the NSZ, setup state, shader cache pack, totk.ini, Linux path and test runner fixes, and ShannoonRuaaa for the compile memory budget and the ISA check, and littleK0i and Seriy500 for reporting Challenge Mode staying off with logs (#578, #1360), and CWhedgehog for reporting Magic of the Kingdom staying off with logs and Scalvo619 for reporting Zonai Fieldworks staying off (#1388), and mattheuspaivadini for tracking down the flashes on Intel under Linux (#927), and ShannoonRuaaa for running on GPUs without host memory import, and Kateto0401 for asking for FSR 4 (#1409), VictorSCosta for the first FSR 4 integration (#876), codexx-dev for carrying it onto the current code and tuning its sharpness (#1245), CatDogFishFrog for the setup fix and the mask review, and itaskaev2 for testing it on NVIDIA, gurrgur for the FSR 3.1 noise fix on RADV, and ShannoonRuaaa for the faster shader cache step, and ripps818 for AMD Anti-Lag 2, and itaskaev2 for the menu in eight more languages, and itaskaev2 for keeping the mods' size table between starts, and ShannoonRuaaa for the stand-in attachments for Intel's older driver (#1343).