From 4fa4f9188b28752e17ddf8415d312d057aaa901e Mon Sep 17 00:00:00 2001 From: ruckus7382sfgsgdf <355121112+ruckus7382sfgsgdf@users.noreply.github.com> Date: Wed, 25 Nov 2026 10:21:32 -0600 Subject: [PATCH] Triforce v0.8.0 Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes. --- .gitignore | 2 + builder/HookshotBuilder/Storage.cs | 15 +- builder/linux/hookshot_builder.py | 24 +- builder/linux/linux_update.py | 19 +- builder/py/hookshot_builder/core.py | 13 +- docs/development.md | 76 +- docs/sampler-admission.md | 27 +- docs/saves.md | 4 +- gpu/PROVENANCE.md | 3 + gpu/render/rx_nvn.h | 2 + gpu/vk/auto_settings.h | 181 + gpu/vk/colour_vision.h | 10 + gpu/vk/compile_level.h | 66 + gpu/vk/compute_gate.h | 181 + gpu/vk/compute_pin.h | 15 + gpu/vk/crash_markers.h | 99 + gpu/vk/cxx_escape.h | 194 + gpu/vk/dlss_actor.h | 94 + gpu/vk/dlss_math.h | 7 +- .../backend/spirv/emit_spirv.cpp | 20 +- .../backend/spirv/emit_spirv.h | 66 +- .../backend/spirv/emit_spirv_atomic.cpp | 7 + .../spirv/emit_spirv_floating_point.cpp | 5 + .../backend/spirv/emit_spirv_image.cpp | 2 +- .../backend/spirv/emit_spirv_image_atomic.cpp | 54 +- .../backend/spirv/emit_spirv_instructions.h | 12 + .../backend/spirv/emit_spirv_memory.cpp | 10 + .../backend/spirv/emit_spirv_mesh.cpp | 274 +- .../backend/spirv/emit_spirv_warp.cpp | 1210 ++- .../backend/spirv/mma_layout.h | 80 + .../backend/spirv/mma_software.h | 228 + .../backend/spirv/spirv_emit_context.cpp | 539 +- .../backend/spirv/spirv_emit_context.h | 62 +- .../frontend/ampere/lower_to_maxwell.h | 42 +- .../frontend/ampere/lower_to_maxwell_regmap.h | 75 +- .../frontend/ampere/program_address_map.h | 8 +- .../frontend/ampere/program_capture.h | 4 +- .../frontend/ir/ir_emitter.cpp | 4 + .../frontend/ir/ir_emitter.h | 1 + .../shader_recompiler/frontend/ir/opcodes.cpp | 4 +- .../shader_recompiler/frontend/ir/opcodes.h | 6 +- .../shader_recompiler/frontend/ir/opcodes.inc | 2 + .../impl/internal_stage_buffer_entry_read.cpp | 6 +- .../frontend/maxwell/translate_program.cpp | 15 +- .../ir_opt/collect_shader_info_pass.cpp | 4 + .../ir_opt/sim_turf_pool_pass.h | 500 ++ gpu/vk/eden/shader_recompiler/profile.h | 4 + gpu/vk/eden/shader_recompiler/runtime_info.h | 3 + gpu/vk/eden/shader_recompiler/shader_info.h | 16 + gpu/vk/evil_hd.h | 44 + gpu/vk/fallback_lanes.h | 80 + gpu/vk/fallback_size_policy.h | 1 + gpu/vk/fps_cap.h | 4 + gpu/vk/fps_levels.h | 128 + gpu/vk/framegen_idle.h | 12 +- gpu/vk/framegen_rows.h | 9 + gpu/vk/fsr4_models.cpp | 709 ++ gpu/vk/fsr4_models.h | 130 + gpu/vk/fsr4_tune.h | 230 + gpu/vk/game_language.h | 7 + gpu/vk/gpu_write_history.h | 193 + gpu/vk/grass_distance.h | 40 + gpu/vk/hold_gpu.h | 28 + gpu/vk/host_shaders/astc_decoder_comp_spv.h | 7676 ++++++++-------- gpu/vk/host_shaders/astc_decoder_lds.comp | 1459 +++ .../host_shaders/astc_decoder_lds_comp_spv.h | 4616 ++++++++++ gpu/vk/host_shaders/bc7_encoder.comp | 263 + gpu/vk/host_shaders/bc7_encoder_comp_spv.h | 937 ++ .../block_linear_unswizzle_2d_comp_spv.h | 429 +- gpu/vk/load_default.h | 141 + gpu/vk/menu_i18n.h | 4764 ++++++++++ gpu/vk/module_ids.h | 121 + gpu/vk/native_fadd.h | 62 + gpu/vk/occ_answer.h | 27 +- gpu/vk/oot_cheat_items.h | 1 + gpu/vk/output_modes.h | 50 + gpu/vk/output_sizes.h | 16 +- gpu/vk/page_table_census.h | 199 + gpu/vk/prepare_journal.h | 219 + gpu/vk/program_carry.h | 4 +- gpu/vk/program_life.h | 135 + gpu/vk/reactive_policy.h | 57 + gpu/vk/renderer_guard.h | 52 + gpu/vk/reshade/fx_builtin.h | 152 + gpu/vk/reshade/fx_clarity.h | 105 + gpu/vk/reshade/fx_compile.cpp | 129 + gpu/vk/reshade/fx_compile.h | 42 + gpu/vk/reshade/fx_files.cpp | 92 + gpu/vk/reshade/fx_files.h | 28 + gpu/vk/reshade/fx_pipeline_cache.cpp | 77 + gpu/vk/reshade/fx_pipeline_cache.h | 28 + gpu/vk/reshade/fx_preset.cpp | 130 + gpu/vk/reshade/fx_preset.h | 28 + gpu/vk/reshade/fx_runtime.cpp | 893 ++ gpu/vk/reshade/fx_runtime.h | 32 + gpu/vk/reshade/fx_texture.cpp | 46 + gpu/vk/reshade/fx_texture.h | 19 + gpu/vk/reshade_menu.h | 243 + gpu/vk/shaders/colour_vision.comp | 46 + gpu/vk/shaders/colour_vision_comp_spv.h | 198 + gpu/vk/shaders/evil_ao.comp | 96 + gpu/vk/shaders/evil_ao_apply.comp | 64 + gpu/vk/shaders/evil_ao_apply_comp_spv.h | 298 + gpu/vk/shaders/evil_ao_comp_spv.h | 353 + gpu/vk/shaders/evil_shafts.comp | 73 + gpu/vk/shaders/evil_shafts_comp_spv.h | 318 + gpu/vk/shaders/fg_hud.comp | 47 + gpu/vk/shaders/fg_hud_comp_spv.h | 146 + gpu/vk/shaders/fg_hud_composite.comp | 37 + gpu/vk/shaders/fg_hud_composite_comp_spv.h | 161 + gpu/vk/shaders/fg_hud_layer.comp | 82 + gpu/vk/shaders/fg_hud_layer_comp_spv.h | 289 + .../fsr3_fi_disocclusion_mask_comp_spv.h | 1604 ++-- ...sr3_fi_game_motion_vector_field_comp_spv.h | 1622 ++-- ...vector_field_inpainting_pyramid_comp_spv.h | 2766 +++--- gpu/vk/shaders/fsr3_fi_inpainting_comp_spv.h | 1242 ++- .../fsr3_fi_inpainting_pyramid_comp_spv.h | 2669 +++--- gpu/vk/shaders/fsr3_fi_interpolate_comp_spv.h | 2663 +++--- ...r3_fi_optical_flow_vector_field_comp_spv.h | 1518 ++-- .../fsr3_fi_reconstruct_and_dilate_comp_spv.h | 785 +- ...3_fi_reconstruct_previous_depth_comp_spv.h | 595 +- gpu/vk/shaders/fsr3_fi_setup_comp_spv.h | 358 +- gpu/vk/shaders/reactive_mask.comp | 35 + gpu/vk/shaders/reactive_mask_comp_spv.h | 119 + gpu/vk/sim_turf.h | 36 + gpu/vk/sim_turf_capacity.h | 102 + gpu/vk/sim_turf_settings.h | 396 + gpu/vk/sirit/include/sirit/sirit.h | 10 + gpu/vk/sirit/src/instructions/arithmetic.cpp | 14 + gpu/vk/sirit/src/instructions/atomic.cpp | 6 + gpu/vk/sirit/src/instructions/group.cpp | 5 + gpu/vk/sparse_spare.h | 67 + gpu/vk/spirv_operands.h | 878 ++ gpu/vk/spirv_unroll.h | 276 + gpu/vk/submit_retry.h | 35 + gpu/vk/target_pool.h | 89 + gpu/vk/temporal_jitter.h | 33 + gpu/vk/tests/far_branch_test.cpp | 112 + gpu/vk/tests/regmap_marker_test.cpp | 40 +- gpu/vk/tex_pack.h | 41 + gpu/vk/texture_tiles.h | 43 + gpu/vk/threaded_rendering.h | 132 + gpu/vk/upscaler_rows.h | 59 +- gpu/vk/vk_aa.cpp | 182 +- gpu/vk/vk_antilag.cpp | 41 +- gpu/vk/vk_antilag.h | 6 + gpu/vk/vk_api.h | 208 +- gpu/vk/vk_cache_set.cpp | 7 +- gpu/vk/vk_coopmat.cpp | 460 +- gpu/vk/vk_dlss.cpp | 36 +- gpu/vk/vk_draw.cpp | 3115 ++++++- gpu/vk/vk_draw.h | 4 + gpu/vk/vk_framegen.cpp | 560 +- gpu/vk/vk_framegen.h | 8 + gpu/vk/vk_fsr3.cpp | 109 +- gpu/vk/vk_fsr3.h | 3 + gpu/vk/vk_fsr3_inputs.cpp | 38 +- gpu/vk/vk_fsr3_inputs.h | 2 + gpu/vk/vk_fsr3fi.cpp | 334 +- gpu/vk/vk_fsr3fi.h | 51 +- gpu/vk/vk_fsr4.cpp | 1142 ++- gpu/vk/vk_fsr4.h | 16 + gpu/vk/vk_game_font.h | 9 + gpu/vk/vk_imgui.cpp | 121 + gpu/vk/vk_internal.h | 158 +- gpu/vk/vk_jobs.cpp | 22 +- gpu/vk/vk_jobs.h | 7 +- gpu/vk/vk_loader.h | 3 +- gpu/vk/vk_main.cpp | 364 +- gpu/vk/vk_memory.cpp | 902 +- gpu/vk/vk_menu.cpp | 2281 ++++- gpu/vk/vk_menu.h | 100 +- gpu/vk/vk_menu_i18n.cpp | 242 + gpu/vk/vk_menu_i18n.h | 40 + gpu/vk/vk_mods.cpp | 5 + gpu/vk/vk_mods.h | 3 + gpu/vk/vk_pipelines.h | 62 + gpu/vk/vk_predict.cpp | 10 +- gpu/vk/vk_programs.cpp | 808 ++ gpu/vk/vk_programs.h | 160 + gpu/vk/vk_reactive.cpp | 297 + gpu/vk/vk_reactive.h | 51 + gpu/vk/vk_recorder.h | 455 +- gpu/vk/vk_reflex.cpp | 16 + gpu/vk/vk_reflex.h | 6 + gpu/vk/vk_replay.cpp | 1326 ++- gpu/vk/vk_shader.cpp | 1015 ++- gpu/vk/vk_shader.h | 87 +- gpu/vk/vk_sim_turf.cpp | 80 + gpu/vk/vk_startup_screen.h | 7 +- gpu/vk/vk_temporal.cpp | 469 +- gpu/vk/vk_temporal.h | 26 + gpu/vk/vk_texture.cpp | 1778 +++- gpu/vk/vk_texture.h | 65 + gpu/vk/vk_ui.h | 122 +- gpu/vk/vk_vma.cpp | 197 +- gpu/vk/vk_xess.cpp | 687 ++ gpu/vk/vk_xess.h | 51 + gpu/vk/vk_xfer.cpp | 90 +- gpu/vk/vram_compact.h | 12 + gpu/vk/warm_bounded.h | 54 + gpu/vk/xess_rules.h | 81 + host/amiibo.h | 133 +- host/audio_output_devices.c | 209 + host/audio_output_devices.h | 36 + host/audio_source.c | 325 + host/audio_source.h | 204 + host/bug_capture.c | 359 +- host/control.c | 2585 ++++++ host/control.h | 132 + host/discord_activity.c | 377 + host/discord_activity.h | 69 + host/discord_rpc.c | 100 +- host/display.c | 122 +- host/evil_hd.c | 37 + host/evil_hd.h | 95 + host/flight_jump.h | 31 + host/frame_whole.h | 14 + host/hold_toggle.h | 23 + host/hos.h | 19 +- host/hos_chain.c | 105 + host/hos_crash_dialog.c | 1296 +++ host/hos_crash_dialog.h | 468 + host/hos_crash_record.c | 931 ++ host/hos_crash_record.h | 54 + host/hos_main.c | 849 +- host/hos_mem.c | 33 + host/hos_relaunch.c | 24 + host/hos_report_prefixes.h | 7 + host/hos_report_run.c | 63 + host/hos_report_run.h | 11 + host/hos_sdl.c | 601 +- host/hos_sdl.h | 47 +- host/hos_svc.c | 20 +- host/hos_thread.c | 222 +- host/hos_update.c | 41 +- host/hos_wide_ui.c | 1356 +++ host/input_movie.c | 1139 +++ host/input_movie.h | 924 ++ host/log_redact.c | 260 + host/log_redact.h | 33 + host/loop_step.h | 53 + host/mark_bitmap.c | 41 + host/mic_gain.c | 7 + host/mic_gain.h | 88 + host/mkw_glue.c | 217 +- host/mouse_native.c | 90 +- host/nn_applet.c | 21 +- host/nn_audio.c | 762 +- host/nn_audio_in.c | 91 +- host/nn_codec.c | 6 +- host/nn_diag.c | 4 +- host/nn_fs.c | 86 +- host/nn_hid.c | 887 +- host/nn_nfp.c | 130 +- host/nn_os_sync.c | 215 +- host/nn_vi.c | 201 +- host/nn_video.c | 43 + host/nvdrv.c | 9 +- host/nvn_native.c | 46 +- host/oot_area_names.c | 126 + host/oot_area_names.h | 8 + host/oot_autoload.c | 86 + host/oot_autoload.h | 81 + host/oot_autosave.c | 36 + host/oot_barrier.c | 121 + host/oot_barrier.h | 106 + host/oot_damage.c | 21 + host/oot_damaged_files.c | 73 + host/oot_fov.c | 46 + host/oot_heart_containers.c | 200 + host/oot_heart_containers.h | 24 + host/oot_high_fps.c | 281 +- host/oot_high_fps.h | 221 +- host/oot_menu.c | 73 +- host/oot_ocb_hold.c | 63 + host/oot_ocb_hold.h | 184 + host/oot_opening.c | 89 + host/oot_play.h | 74 + host/oot_shadow.c | 21 + host/oot_shadow_fit.c | 277 + host/oot_sprint.h | 6 + host/oot_state_tap.c | 561 ++ host/oot_teleport_check.h | 24 + host/oot_tex_compact.c | 7 +- host/oot_text_size.c | 61 + host/oot_wide_hud.c | 12 +- host/oot_wide_hud.h | 8 +- host/pad_sdl.c | 437 +- host/pad_speaker.c | 581 ++ host/pad_speaker.h | 48 + host/posix/display_sdl.c | 64 +- host/posix/mmsystem.h | 1 + host/posix/prof.c | 5 + host/posix/win32_posix.c | 130 +- host/posix/windows.h | 9 +- host/pouch_live.h | 23 + host/prepare_args.h | 50 + host/prompts.c | 861 +- host/redact_line.h | 69 + host/rumble_renhdrum.c | 773 ++ host/rumble_renhdrum.h | 64 + host/rx_backend.c | 110 +- host/save_files.c | 41 + host/short_sleep.h | 7 +- host/steam_pads.h | 91 + host/vibration.h | 124 + host/ws_floor.h | 68 + launcher/App/Backend.Settings.cs | 1 + launcher/App/Backend.TexturePack.cs | 120 + launcher/App/Backend.cs | 2 +- launcher/Logic/Benchmark.cs | 2 +- launcher/Logic/BuildInfo.cs | 3 + .../Logic/GameOptions/GameOptionsSchema.cs | 285 +- launcher/Logic/Guard/Report.cs | 22 +- launcher/Logic/TexturePack.cs | 202 + launcher/LogicTests/Tests.Core.cs | 7 + launcher/LogicTests/Tests.GameOptions.cs | 44 +- launcher/LogicTests/Tests.TexturePack.cs | 128 + launcher/ui/app.css | 32 + launcher/ui/app.js | 33 + launcher/ui/demo.js | 22 +- launcher/ui/index.html | 2 + nx2/build.py | 1074 ++- nx2/build_jobs.py | 96 + nx2/chunks.py | 103 +- nx2/cmpflags.py | 102 + nx2/dead_flags.py | 42 + nx2/discover.py | 183 + nx2/disk.py | 115 +- nx2/emit_pool.py | 155 +- nx2/fastfp.py | 786 ++ nx2/host_cpu.py | 49 +- nx2/image.py | 26 + nx2/insn.py | 56 +- nx2/lift.py | 48 +- nx2/lift_fixes.py | 26 + nx2/lift_store.py | 203 + nx2/make_game.py | 1233 ++- nx2/nup.py | 145 +- nx2/object_store.py | 181 + nx2/oot_patches.py | 1367 ++- nx2/oot_wide.py | 101 +- nx2/pipeline_states.py | 283 +- nx2/prompt_assets.py | 357 +- nx2/prompt_faces.py | 26 +- nx2/prompt_faces/README.md | 4 + nx2/prompt_faces/ps4/Controller_Pro.png | Bin 0 -> 55487 bytes nx2/prompt_faces/ps5/Controller_Pro.png | Bin 0 -> 55487 bytes nx2/prompt_faces/steamdeck/Controller_Pro.png | Bin 0 -> 23163 bytes nx2/prompt_faces/xbox/Controller_Pro.png | Bin 0 -> 57523 bytes nx2/released_translation_stamp.json | 468 +- nx2/reshade_fx.py | 64 + nx2/rtgen.py | 15 +- nx2/split_giants.py | 406 + nx2/test_cbuf_table_extent.py | 8 +- nx2/test_image_arrays.py | 218 + nx2/version.py | 3 +- nx2/walk.py | 98 + nx2/whole_write.py | 11 +- readme.md | 50 +- scripts/chain.py | 326 + scripts/fsr3_shaders.py | 195 +- scripts/gen_spirv_operands.py | 50 + scripts/hardware_report.py | 9 +- scripts/linux/appimage.sh | 13 + scripts/oot_saves.py | 110 +- scripts/prof.py | 61 +- scripts/renhdrum.py | 472 + scripts/reshade/check_fx.py | 111 + scripts/reshade/examples/TintedHighlights.fx | 44 + scripts/reshade/examples/TintedHighlights.ini | 1 + scripts/reshade/fx_probe.cpp | 115 + scripts/triforce_ctl.py | 694 ++ scripts/vkprof.py | 2 +- tests/amiibo_test.c | 76 + tests/audio_aux_test.c | 237 + tests/audio_mix_effects_test.c | 48 + tests/audio_output_devices_test.c | 84 + tests/audio_output_errors_test.c | 246 +- tests/audio_wave_buffer_release_test.c | 2 + tests/cmpflags_test.c | 96 + tests/compute_gate_test.cpp | 221 + tests/control_test.c | 1172 +++ tests/crash_record_test.c | 135 + tests/cxx_escape_test.cpp | 202 + tests/debug_link_test.c | 4 + tests/display_startup_failure_test.cpp | 4 + tests/draw_stream_visibility_test.cpp | 8 + tests/fallback_buffer_cleanup_test.cpp | 31 +- tests/fastfp_fma_test.c | 188 + tests/fsr4_models_test.cpp | 478 + tests/fsr4_tune/layer.hlsl | 19 + tests/fsr4_tune/layer.spv | Bin 0 -> 2200 bytes tests/fsr4_tune/written.hlsl | 11 + tests/fsr4_tune/written.spv | Bin 0 -> 1220 bytes tests/global_load_16_ir.cpp | 124 + tests/hold_gpu_test.cpp | 58 + tests/image_arrays_ir.cpp | 233 + tests/input_background_test.c | 120 +- tests/invalidate_vcore_test.cpp | 2 +- tests/load_default_test.cpp | 76 + tests/menu_sound_test.c | 2 + tests/mesh_args_cleanup_test.cpp | 29 +- tests/module_ids_test.cpp | 72 + tests/nonuniform_image_arrays_ir.cpp | 270 + tests/pad_speaker_test.c | 426 + tests/page_table_stream_test.cpp | 4 + tests/parallel_init_order_test.cpp | 132 +- tests/parallel_table_order_test.cpp | 4 + tests/pipeline_cache_save_test.cpp | 1 + tests/present_source_crop_test.cpp | 19 +- tests/program_cache_cleanup_test.cpp | 18 + tests/program_life_test.cpp | 111 + tests/run_all.py | 7 + tests/sampler_admission_test.cpp | 181 +- tests/save_share_test.c | 9 + tests/screensaver_test.c | 6 +- tests/sim_turf_capacity_policy.cpp | 93 + tests/sim_turf_pools_ir.cpp | 356 + tests/sim_turf_settings_test.cpp | 180 + tests/srccut.py | 207 + tests/stack_commit_test.c | 144 + tests/test_a64_helper_flags.py | 46 + tests/test_aa_row.py | 27 +- tests/test_acquire_ahead.py | 14 +- tests/test_amd_fragment_warp.py | 4 +- tests/test_amd_subgroup_profiles.py | 32 +- tests/test_amiibo.py | 43 +- tests/test_appimage_licenses.py | 6 + tests/test_async_safe_frees.py | 154 + tests/test_audio_aux.py | 73 + tests/test_audio_in.py | 60 +- tests/test_audio_mix_effects.py | 17 +- tests/test_audio_output_devices.py | 68 + tests/test_audio_output_errors.py | 5 +- tests/test_audio_source.py | 201 + tests/test_audio_source_load.py | 249 + tests/test_audio_speaker_layout.py | 90 + tests/test_audio_voice_biquad.py | 6 + tests/test_audio_wave_buffer_release.py | 17 +- tests/test_auto_settings.py | 134 + tests/test_bc_raw_targets.py | 51 +- tests/test_bc_small_layers.py | 23 +- tests/test_bg_import_held.py | 1 + tests/test_bound_keys.py | 85 +- tests/test_bug_capture.py | 58 +- tests/test_build_hash_cache.py | 177 + tests/test_build_jobs.py | 147 + tests/test_cache_set.py | 2 +- tests/test_cap_free_async.py | 2 +- tests/test_capture_behind.py | 26 +- tests/test_capture_spare_reuse.py | 4 + tests/test_capture_tables.py | 2 +- tests/test_chain.py | 87 + tests/test_chain_input.py | 99 + tests/test_chunk_default.py | 4 +- tests/test_chunk_parts.py | 6 +- tests/test_chunk_split.py | 39 +- tests/test_chunks_corrupt.py | 44 + tests/test_chunks_save_folder.py | 37 + tests/test_cmpflags.py | 201 + tests/test_commit_limit.py | 2 +- tests/test_compile_level.py | 125 + tests/test_compile_retry_jobs.py | 6 +- tests/test_compiler_failure.py | 4 + tests/test_compute_gate.py | 50 + tests/test_compute_pin.py | 4 +- tests/test_compute_pipeline_atomic.py | 38 + tests/test_control.py | 60 + tests/test_control_local_only.py | 75 + tests/test_cpu_target.py | 73 + tests/test_crash_dialog.py | 375 + tests/test_crash_record.py | 224 + tests/test_cursor_hidden_in_play.py | 141 + tests/test_cv_signal_wake.py | 66 + tests/test_cxx_escape.py | 179 + tests/test_damaged_rom_files.py | 216 + tests/test_damaged_translation.py | 83 + tests/test_dead_flags.py | 100 + tests/test_debug_pages.py | 10 +- tests/test_debug_tab_layout.py | 3 +- tests/test_device_lost_exit.py | 3 +- tests/test_dialog_dim.py | 4 +- tests/test_discord_activity.py | 292 + tests/test_discover.py | 197 + tests/test_disk_rotational.py | 124 + tests/test_disk_warning.py | 79 + tests/test_dispatch_quiet.py | 4 +- tests/test_display_startup_failure.py | 2 +- tests/test_dlss_actor.cpp | 78 + tests/test_dlss_checks.py | 3 +- tests/test_dlss_math.cpp | 20 + tests/test_dlss_sdk_cache.py | 14 +- tests/test_draw_stream_visibility.py | 24 +- tests/test_drive_target.py | 381 + tests/test_early_compile.py | 8 +- tests/test_env_file.py | 22 +- tests/test_equal_depth_margin.py | 21 +- tests/test_evict_reason.py | 2 +- tests/test_evil_hd.py | 146 + tests/test_evil_hd_foliage.py | 201 + tests/test_fallback_buffer_cleanup.py | 2 +- tests/test_fallback_lanes.cpp | 93 + tests/test_fallback_lanes.py | 49 + tests/test_fallback_size_policy.py | 2 +- tests/test_fastfp_fma.py | 81 + tests/test_fastfp_override.py | 269 + tests/test_fastfp_regions.py | 447 + tests/test_finish_installed.py | 2 +- tests/test_flight_jump.py | 137 + tests/test_float_add_subgroup.py | 317 + tests/test_flush_nothing_held.py | 14 +- tests/test_foliage_shadow.py | 20 +- tests/test_fps_cap_monitor.py | 39 +- tests/test_fps_levels.py | 78 + tests/test_frame_carry_cap60.py | 201 + tests/test_frame_rate_cap_step.py | 5 + tests/test_frame_whole.py | 10 +- tests/test_framegen_amd.py | 2 +- tests/test_framegen_fsr4.py | 2 +- tests/test_framegen_idle.py | 3 +- tests/test_framegen_preset.py | 11 + tests/test_framelog_clock.py | 4 +- tests/test_fs_path_utf8.py | 56 +- tests/test_fsr3_history.py | 16 +- tests/test_fsr3_inputs_scene_format.py | 2 +- tests/test_fsr3_native_aa.py | 10 +- tests/test_fsr3_own_motion.py | 4 +- tests/test_fsr3_shader_options.py | 107 + tests/test_fsr3fi_hud_layer.py | 324 + tests/test_fsr3fi_hudless_colour.py | 168 + tests/test_fsr4_bind_dispatch.py | 155 + tests/test_fsr4_models.py | 51 + tests/test_fsr4_own_cache.py | 79 + tests/test_fsr4_tune.py | 323 + tests/test_fsr4_upscaler.py | 10 +- tests/test_game_language.py | 17 +- tests/test_global_table_loop.py | 134 + tests/test_gpl_cold_library.py | 2 +- tests/test_gpu_hang_watch.py | 135 + tests/test_gpu_write_history.py | 184 + tests/test_gyro_rearm.py | 100 + tests/test_handle_table_count.py | 217 + tests/test_hdr_sdr_why.py | 245 + tests/test_header_ext_deps.py | 217 + tests/test_heart_containers.py | 251 + tests/test_high_fps_fixes.py | 288 +- tests/test_hle_guest_ranges.py | 141 + tests/test_hold_gpu.py | 90 + tests/test_hold_toggle.py | 114 + tests/test_horse_jump_step.py | 183 + tests/test_host_depfiles.py | 128 + tests/test_input_background.py | 42 +- tests/test_input_movie.py | 1074 +++ tests/test_insn_fixed_convert.py | 187 + tests/test_invalidate_quick.py | 6 + tests/test_jobs_failure.cpp | 88 + tests/test_jobs_failure.py | 108 + tests/test_jobs_wait_runs_queued.py | 4 +- tests/test_jump_takeoff_step.py | 323 + tests/test_kept_depfiles.py | 77 + tests/test_kept_translation.py | 166 + tests/test_keys_player_input.py | 36 + tests/test_lazy_wb_cpu_gens.py | 1 + tests/test_lazy_wb_host.py | 7 + tests/test_lift_cleanup_error.py | 16 +- tests/test_lift_entry_below.py | 177 + tests/test_lift_key_env.py | 16 + tests/test_lift_lookups.py | 87 + tests/test_lift_progress.py | 70 + tests/test_lift_store.py | 110 + tests/test_lift_zero_bytes.py | 86 + tests/test_light_passes.py | 71 + tests/test_link_skip.py | 276 + tests/test_linux_audio_output.py | 98 + tests/test_linux_builder_jobs.py | 5 +- tests/test_linux_preflight.py | 117 + tests/test_load_default.py | 58 + tests/test_log_levels.py | 166 + tests/test_log_off_lock.py | 19 +- tests/test_log_redact.py | 211 + tests/test_loop_step.py | 256 + tests/test_make_game_ngx.py | 9 +- tests/test_make_game_prepare.py | 89 + tests/test_mark_bitmap.py | 171 + tests/test_masked_clear_failure.py | 80 + tests/test_mem_gate_leases.py | 4 + tests/test_mem_trim.py | 3 + tests/test_memory_priority.py | 3 +- tests/test_memory_trial.py | 3 +- tests/test_menu_ahead.py | 1 + tests/test_menu_bound_keys.py | 3 +- tests/test_menu_hit.py | 2 +- tests/test_menu_hooks.py | 28 +- tests/test_menu_i18n.py | 154 + tests/test_menu_i18n_count.py | 72 + tests/test_menu_keys.py | 17 +- tests/test_menu_sound_events.py | 13 +- tests/test_menu_vanilla_look.py | 14 +- tests/test_merged_rows.py | 2 +- tests/test_mesh_args_cleanup.py | 4 +- tests/test_mesh_fallback.py | 4 +- tests/test_mesh_fallback_strict_fmul.py | 199 + tests/test_met_wait_capture.py | 90 + tests/test_mic_test_row.py | 82 + tests/test_mirror_spare.py | 4 +- tests/test_mma_software.py | 268 + tests/test_mod_cheat_rows.py | 4 +- tests/test_module_ids.py | 58 + tests/test_motion_background.py | 92 + tests/test_mouse_native.py | 9 + tests/test_mouse_settings.py | 15 +- tests/test_movie_pace.py | 10 +- tests/test_movie_shape.py | 105 + tests/test_multiwait_wake.py | 13 +- tests/test_n64_3d.py | 2 +- tests/test_n64_pace.py | 2 + tests/test_n64_row.py | 18 +- tests/test_n64_tv.py | 14 +- tests/test_native_float_atomic_add.py | 397 + tests/test_nonuniform_image_arrays.py | 305 + tests/test_notes_carry.py | 123 + tests/test_nvn_device_modes.py | 87 + tests/test_object_store.py | 151 + tests/test_ocarina_note_bindings.py | 184 + tests/test_ocarina_notes.py | 310 + tests/test_ocarina_wait.py | 116 + tests/test_ocb_hold.py | 504 ++ tests/test_occ_answer.py | 4 +- tests/test_occ_depth_only.py | 2 +- tests/test_occ_gated_visible.py | 188 + tests/test_oot_barrier.py | 642 ++ tests/test_oot_camera_clearance.py | 165 + tests/test_oot_cloth_60.py | 235 + tests/test_oot_cloth_time.py | 244 + tests/test_oot_first_night.py | 171 + tests/test_oot_menu_linux_half.py | 20 + tests/test_oot_menu_mouse.py | 112 +- tests/test_oot_saves.py | 173 + tests/test_oot_shadow_res.py | 72 + tests/test_oot_state_tap.py | 1246 +++ tests/test_oot_tex_compact.py | 2 +- tests/test_oot_title_movie.py | 1 + tests/test_oot_wide_bubble.py | 113 + tests/test_open_file_vcore.py | 18 +- tests/test_options_writers.py | 1 + tests/test_order_wake.py | 10 +- tests/test_os_yield.py | 2 + tests/test_output_modes.py | 60 + tests/test_output_resolution.py | 9 +- tests/test_overlap_read.py | 78 + tests/test_pace_steady.py | 2 +- tests/test_packed_romfs.py | 2 +- tests/test_pad_headphones_reader.py | 110 + tests/test_pad_speaker.py | 87 + tests/test_pads_after_menu.py | 172 + tests/test_page_table_census.py | 399 + tests/test_parallel_init_order.py | 16 +- tests/test_patch_hooks_defined.py | 34 + tests/test_pc_texts.py | 108 + tests/test_perf_overlay.py | 22 +- tests/test_pipe_wait.py | 2 +- tests/test_pipe_warm.py | 4 +- tests/test_pipeline_contrib.py | 2 +- tests/test_pipeline_notes_open.py | 5 +- tests/test_pipeline_state_counts.py | 6 +- tests/test_pipeline_state_portable.py | 234 + tests/test_pipeline_states.py | 121 +- tests/test_play_rows.py | 643 ++ tests/test_posix_thread_priority.py | 91 + tests/test_pouch_live.py | 104 + tests/test_precompile_compute_guard.py | 3 +- tests/test_predict_check.py | 7 +- tests/test_predict_stream.py | 2 +- tests/test_prepare_cache_save.py | 1 + tests/test_prepare_journal.py | 157 + tests/test_present_aspect.py | 2 +- tests/test_present_aspect_vulkan.py | 2 +- tests/test_present_geometry_trace.py | 2 +- tests/test_present_hold.py | 6 +- tests/test_present_image_free.py | 2 +- tests/test_present_semaphores.py | 2 +- tests/test_present_smooth.py | 4 +- tests/test_present_surface_lost.py | 4 +- tests/test_present_thread.py | 13 +- tests/test_present_trace.py | 1 + tests/test_program_answer_domains.py | 5 +- tests/test_program_carry.py | 79 +- tests/test_program_life.py | 28 + tests/test_program_read_once.cpp | 14 + tests/test_program_read_once.py | 2 +- tests/test_prompt_font_bind.py | 67 +- tests/test_prompt_guide_lines.py | 71 + tests/test_prompt_keys_table.py | 45 +- tests/test_prompt_picture_tint.py | 80 + tests/test_prompts_live.py | 175 + tests/test_query_memory_free.py | 119 + tests/test_radv_vrs_drop.py | 5 +- tests/test_reactive_mask.cpp | 71 + tests/test_reactive_mask.py | 121 + tests/test_recording_admission.py | 22 +- tests/test_reflex_swapchain_lifetime.py | 3 +- tests/test_renderer_depfiles.py | 200 + tests/test_renhdrum.py | 382 + tests/test_replay_threads_row.py | 12 +- tests/test_reserved_core_mask.py | 123 + tests/test_reshade_fx.py | 23 + tests/test_rumble_curve.py | 2 +- tests/test_rumble_menu.py | 11 + tests/test_sampler_admission.py | 22 +- tests/test_sampler_stack_walk.py | 173 + tests/test_save_rows.py | 6 +- tests/test_saved_turn_rate.py | 153 + tests/test_sdiv_overflow.py | 196 + tests/test_sdl_audio_library.py | 10 +- tests/test_sdl_pad_diagnostics.py | 219 + tests/test_shader_list_skip.py | 68 + tests/test_shader_profile_caps.py | 154 + tests/test_shader_stamp_cache.py | 12 +- tests/test_shadow_bias_once.py | 33 + tests/test_sharpen_rules.py | 7 +- tests/test_short_sleep_timer.py | 9 +- tests/test_sim_turf_capacity_policy.py | 34 + tests/test_sim_turf_floor.py | 83 + tests/test_sim_turf_group_limit.py | 184 + tests/test_sim_turf_pools.py | 127 + tests/test_sim_turf_settings.py | 34 + tests/test_song_note_cue.py | 257 + tests/test_sparse_bc_usage.py | 186 + tests/test_sparse_bind_failure.py | 127 + tests/test_sparse_spare.cpp | 66 + tests/test_sparse_spare.py | 49 + tests/test_spawn_emit.py | 43 +- tests/test_split_before_draw.py | 8 + tests/test_split_giants.py | 652 ++ tests/test_sprint.py | 2 + tests/test_spv_fog.py | 2 +- tests/test_spv_nan_select.py | 2 +- tests/test_spv_store.py | 17 +- tests/test_stack_commit.py | 143 + tests/test_stage_code_lazy.cpp | 2 +- tests/test_staging_burst.py | 3 + tests/test_state_list_plain.py | 66 + tests/test_steam_pads.py | 178 + tests/test_step_steady.py | 4 +- tests/test_stick_dead_zone.py | 74 +- tests/test_stick_inversion_rest.py | 121 + tests/test_stick_own_zone.py | 22 +- tests/test_stick_rest.py | 3 +- tests/test_stream_order.py | 2 +- tests/test_subgroup_pin_limit.py | 153 + tests/test_target_image_pool.py | 3 +- tests/test_target_pool_rules.py | 25 +- tests/test_teleport_check.py | 228 + tests/test_temporal_jitter.py | 117 + tests/test_tex_bc1.py | 16 +- tests/test_tex_detail.py | 5 +- tests/test_tex_pack.py | 62 + tests/test_tex_pressure.py | 2 +- tests/test_texture_tile_upload.py | 97 + tests/test_threaded_rendering.py | 129 + tests/test_tls_once.py | 2 +- tests/test_translation_pools.py | 143 + tests/test_triforce_ctl.py | 561 ++ tests/test_triforce_ctl_finite.py | 108 + tests/test_trigger_rest.py | 222 + tests/test_ub_gap.py | 26 +- tests/test_ub_snapshot_default.py | 104 + tests/test_ub_snapshot_gpu_writes.py | 312 + tests/test_udmabuf_limit_unreadable.py | 3 +- tests/test_unpack_damage_check.py | 18 +- tests/test_upload_same.py | 8 +- tests/test_upscale_fallback.py | 10 + tests/test_upscale_label.py | 2 +- tests/test_upscaler_rows.cpp | 38 +- tests/test_upscaler_rows.py | 5 +- tests/test_vcore_escape.py | 284 + tests/test_vibration_pick.py | 127 + tests/test_video_hold_early.py | 131 + tests/test_video_input_limit.py | 7 +- tests/test_view_keep.py | 4 +- tests/test_vk_pgo.py | 4 +- tests/test_vram_compact.cpp | 8 + tests/test_vsync_row.py | 6 +- tests/test_vulkan_clear_mip.py | 55 +- tests/test_wait_hold_pause.py | 2 +- tests/test_walk.py | 128 + tests/test_walk_key.py | 7 +- tests/test_warm_bounded.py | 55 + tests/test_warm_computes.py | 6 +- tests/test_water_substeps.py | 168 + tests/test_wb_no_reup.py | 6 +- tests/test_wb_spans.py | 247 + tests/test_wide_fades_whole.py | 9 +- tests/test_wide_ui.py | 224 + tests/test_windows_pipe_busy.py | 140 + tests/test_ws_floor.py | 150 + tests/test_xess_rules.py | 149 + tests/test_xinput_thread.py | 194 + tests/test_xinput_trigger_rest.py | 98 + tests/vcore_spin_test.c | 5 +- tests/warm_bounded_test.cpp | 61 + tests/windows_display_startup_test.c | 1 + third_party/renhdrum/Cargo.lock | 32 + third_party/renhdrum/Cargo.toml | 28 + third_party/renhdrum/LICENSE-APACHE | 201 + third_party/renhdrum/LICENSE-MIT | 21 + third_party/renhdrum/NOTICE | 118 + third_party/renhdrum/PROVENANCE.md | 35 + third_party/renhdrum/build.rs | 62 + third_party/renhdrum/include/renhdrum.h | 441 + third_party/renhdrum/src/backend/mod.rs | 7 + .../renhdrum/src/backend/nintendo_hd.rs | 946 ++ .../renhdrum/src/detectors/click_detector.rs | 411 + third_party/renhdrum/src/detectors/dense.rs | 255 + third_party/renhdrum/src/detectors/mod.rs | 7 + .../renhdrum/src/detectors/short_pulse.rs | 180 + .../renhdrum/src/dualsense/bt_haptics.rs | 474 + third_party/renhdrum/src/dualsense/haptics.rs | 1060 +++ third_party/renhdrum/src/dualsense/mod.rs | 37 + third_party/renhdrum/src/dualsense/motor.rs | 1021 +++ .../renhdrum/src/dualsense/motor_replay.rs | 341 + .../renhdrum/src/dualsense/opus_codec.rs | 223 + .../renhdrum/src/dualsense/settings.rs | 207 + third_party/renhdrum/src/dualsense/speaker.rs | 1130 +++ .../renhdrum/src/dualsense/speaker_replay.rs | 602 ++ .../renhdrum/src/dualsense/tri_replay.rs | 296 + .../renhdrum/src/dualsense/tri_trigger.rs | 998 +++ .../renhdrum/src/dualsense/trigger_effect.rs | 214 + .../renhdrum/src/dualsense/trigger_profile.rs | 452 + third_party/renhdrum/src/encoding/amfm.rs | 760 ++ third_party/renhdrum/src/encoding/click.rs | 590 ++ .../renhdrum/src/encoding/crisp_notes.rs | 199 + third_party/renhdrum/src/encoding/mod.rs | 4 + third_party/renhdrum/src/encoding/standard.rs | 384 + third_party/renhdrum/src/ffi.rs | 2424 +++++ third_party/renhdrum/src/ipc.rs | 822 ++ third_party/renhdrum/src/lib.rs | 51 + third_party/renhdrum/src/nx2.rs | 370 + third_party/renhdrum/src/options.rs | 482 + .../renhdrum/src/planner/amfm_measure.rs | 455 + .../renhdrum/src/planner/amfm_planner.rs | 2049 +++++ third_party/renhdrum/src/planner/mod.rs | 9 + third_party/renhdrum/src/play_report.rs | 914 ++ third_party/renhdrum/src/preset.rs | 172 + third_party/renhdrum/src/settings.rs | 1243 +++ third_party/renhdrum/src/status.rs | 853 ++ third_party/renhdrum/src/test_pattern.rs | 27 + third_party/renhdrum/src/trace.rs | 148 + third_party/renhdrum/src/valve/grip.rs | 630 ++ third_party/renhdrum/src/valve/mod.rs | 8 + third_party/renhdrum/src/xbox/classify.rs | 633 ++ third_party/renhdrum/src/xbox/direct.rs | 249 + third_party/renhdrum/src/xbox/mod.rs | 2302 +++++ third_party/renhdrum/src/xbox/rotor.rs | 89 + third_party/reshade_fx/LICENSE.md | 9 + third_party/reshade_fx/PROVENANCE.md | 10 + .../reshade_fx/source/effect_codegen.hpp | 422 + .../source/effect_codegen_spirv.cpp | 2594 ++++++ .../reshade_fx/source/effect_expression.cpp | 637 ++ .../reshade_fx/source/effect_expression.hpp | 252 + .../reshade_fx/source/effect_lexer.cpp | 1220 +++ .../reshade_fx/source/effect_lexer.hpp | 112 + .../reshade_fx/source/effect_module.hpp | 421 + .../reshade_fx/source/effect_parser.hpp | 88 + .../reshade_fx/source/effect_parser_exp.cpp | 1819 ++++ .../reshade_fx/source/effect_parser_stmt.cpp | 2766 ++++++ .../reshade_fx/source/effect_preprocessor.cpp | 1389 +++ .../reshade_fx/source/effect_preprocessor.hpp | 158 + .../reshade_fx/source/effect_symbol_table.cpp | 456 + .../reshade_fx/source/effect_symbol_table.hpp | 103 + .../source/effect_symbol_table_intrinsics.inl | 4587 ++++++++++ .../reshade_fx/source/effect_token.hpp | 279 + third_party/stb_image/LICENSE | 38 + third_party/stb_image/PROVENANCE.md | 7 + third_party/stb_image/stb_image.h | 7812 +++++++++++++++++ third_party/xess/PROVENANCE.md | 21 + third_party/xess/inc/MIT.txt | 17 + third_party/xess/inc/xess/xess.h | 426 + third_party/xess/inc/xess/xess_vk.h | 253 + 881 files changed, 179428 insertions(+), 15581 deletions(-) create mode 100644 gpu/vk/auto_settings.h create mode 100644 gpu/vk/colour_vision.h create mode 100644 gpu/vk/compile_level.h create mode 100644 gpu/vk/compute_gate.h create mode 100644 gpu/vk/crash_markers.h create mode 100644 gpu/vk/cxx_escape.h create mode 100644 gpu/vk/eden/shader_recompiler/backend/spirv/mma_software.h create mode 100644 gpu/vk/eden/shader_recompiler/ir_opt/sim_turf_pool_pass.h create mode 100644 gpu/vk/evil_hd.h create mode 100644 gpu/vk/fallback_lanes.h create mode 100644 gpu/vk/fps_levels.h create mode 100644 gpu/vk/fsr4_models.cpp create mode 100644 gpu/vk/fsr4_models.h create mode 100644 gpu/vk/fsr4_tune.h create mode 100644 gpu/vk/gpu_write_history.h create mode 100644 gpu/vk/grass_distance.h create mode 100644 gpu/vk/hold_gpu.h create mode 100644 gpu/vk/host_shaders/astc_decoder_lds.comp create mode 100644 gpu/vk/host_shaders/astc_decoder_lds_comp_spv.h create mode 100644 gpu/vk/host_shaders/bc7_encoder.comp create mode 100644 gpu/vk/host_shaders/bc7_encoder_comp_spv.h create mode 100644 gpu/vk/load_default.h create mode 100644 gpu/vk/menu_i18n.h create mode 100644 gpu/vk/module_ids.h create mode 100644 gpu/vk/native_fadd.h create mode 100644 gpu/vk/output_modes.h create mode 100644 gpu/vk/page_table_census.h create mode 100644 gpu/vk/prepare_journal.h create mode 100644 gpu/vk/program_life.h create mode 100644 gpu/vk/reactive_policy.h create mode 100644 gpu/vk/renderer_guard.h create mode 100644 gpu/vk/reshade/fx_builtin.h create mode 100644 gpu/vk/reshade/fx_clarity.h create mode 100644 gpu/vk/reshade/fx_compile.cpp create mode 100644 gpu/vk/reshade/fx_compile.h create mode 100644 gpu/vk/reshade/fx_files.cpp create mode 100644 gpu/vk/reshade/fx_files.h create mode 100644 gpu/vk/reshade/fx_pipeline_cache.cpp create mode 100644 gpu/vk/reshade/fx_pipeline_cache.h create mode 100644 gpu/vk/reshade/fx_preset.cpp create mode 100644 gpu/vk/reshade/fx_preset.h create mode 100644 gpu/vk/reshade/fx_runtime.cpp create mode 100644 gpu/vk/reshade/fx_runtime.h create mode 100644 gpu/vk/reshade/fx_texture.cpp create mode 100644 gpu/vk/reshade/fx_texture.h create mode 100644 gpu/vk/reshade_menu.h create mode 100644 gpu/vk/shaders/colour_vision.comp create mode 100644 gpu/vk/shaders/colour_vision_comp_spv.h create mode 100644 gpu/vk/shaders/evil_ao.comp create mode 100644 gpu/vk/shaders/evil_ao_apply.comp create mode 100644 gpu/vk/shaders/evil_ao_apply_comp_spv.h create mode 100644 gpu/vk/shaders/evil_ao_comp_spv.h create mode 100644 gpu/vk/shaders/evil_shafts.comp create mode 100644 gpu/vk/shaders/evil_shafts_comp_spv.h create mode 100644 gpu/vk/shaders/fg_hud.comp create mode 100644 gpu/vk/shaders/fg_hud_comp_spv.h create mode 100644 gpu/vk/shaders/fg_hud_composite.comp create mode 100644 gpu/vk/shaders/fg_hud_composite_comp_spv.h create mode 100644 gpu/vk/shaders/fg_hud_layer.comp create mode 100644 gpu/vk/shaders/fg_hud_layer_comp_spv.h create mode 100644 gpu/vk/shaders/reactive_mask.comp create mode 100644 gpu/vk/shaders/reactive_mask_comp_spv.h create mode 100644 gpu/vk/sim_turf.h create mode 100644 gpu/vk/sim_turf_capacity.h create mode 100644 gpu/vk/sim_turf_settings.h create mode 100644 gpu/vk/sparse_spare.h create mode 100644 gpu/vk/spirv_operands.h create mode 100644 gpu/vk/spirv_unroll.h create mode 100644 gpu/vk/submit_retry.h create mode 100644 gpu/vk/temporal_jitter.h create mode 100644 gpu/vk/tests/far_branch_test.cpp create mode 100644 gpu/vk/tex_pack.h create mode 100644 gpu/vk/texture_tiles.h create mode 100644 gpu/vk/threaded_rendering.h create mode 100644 gpu/vk/vk_menu_i18n.cpp create mode 100644 gpu/vk/vk_menu_i18n.h create mode 100644 gpu/vk/vk_pipelines.h create mode 100644 gpu/vk/vk_programs.cpp create mode 100644 gpu/vk/vk_programs.h create mode 100644 gpu/vk/vk_reactive.cpp create mode 100644 gpu/vk/vk_reactive.h create mode 100644 gpu/vk/vk_sim_turf.cpp create mode 100644 gpu/vk/vk_xess.cpp create mode 100644 gpu/vk/vk_xess.h create mode 100644 gpu/vk/warm_bounded.h create mode 100644 gpu/vk/xess_rules.h create mode 100644 host/audio_output_devices.c create mode 100644 host/audio_output_devices.h create mode 100644 host/audio_source.c create mode 100644 host/audio_source.h create mode 100644 host/control.c create mode 100644 host/control.h create mode 100644 host/discord_activity.c create mode 100644 host/discord_activity.h create mode 100644 host/evil_hd.c create mode 100644 host/evil_hd.h create mode 100644 host/flight_jump.h create mode 100644 host/hold_toggle.h create mode 100644 host/hos_chain.c create mode 100644 host/hos_crash_dialog.c create mode 100644 host/hos_crash_dialog.h create mode 100644 host/hos_crash_record.c create mode 100644 host/hos_crash_record.h create mode 100644 host/hos_report_prefixes.h create mode 100644 host/hos_report_run.c create mode 100644 host/hos_report_run.h create mode 100644 host/hos_wide_ui.c create mode 100644 host/input_movie.c create mode 100644 host/input_movie.h create mode 100644 host/log_redact.c create mode 100644 host/log_redact.h create mode 100644 host/loop_step.h create mode 100644 host/mark_bitmap.c create mode 100644 host/mic_gain.c create mode 100644 host/mic_gain.h create mode 100644 host/oot_area_names.c create mode 100644 host/oot_area_names.h create mode 100644 host/oot_autoload.c create mode 100644 host/oot_autoload.h create mode 100644 host/oot_autosave.c create mode 100644 host/oot_barrier.c create mode 100644 host/oot_barrier.h create mode 100644 host/oot_damage.c create mode 100644 host/oot_damaged_files.c create mode 100644 host/oot_fov.c create mode 100644 host/oot_heart_containers.c create mode 100644 host/oot_heart_containers.h create mode 100644 host/oot_ocb_hold.c create mode 100644 host/oot_ocb_hold.h create mode 100644 host/oot_opening.c create mode 100644 host/oot_play.h create mode 100644 host/oot_shadow.c create mode 100644 host/oot_shadow_fit.c create mode 100644 host/oot_state_tap.c create mode 100644 host/oot_teleport_check.h create mode 100644 host/oot_text_size.c create mode 100644 host/pad_speaker.c create mode 100644 host/pad_speaker.h create mode 100644 host/pouch_live.h create mode 100644 host/prepare_args.h create mode 100644 host/redact_line.h create mode 100644 host/rumble_renhdrum.c create mode 100644 host/rumble_renhdrum.h create mode 100644 host/steam_pads.h create mode 100644 host/vibration.h create mode 100644 host/ws_floor.h create mode 100644 launcher/App/Backend.TexturePack.cs create mode 100644 launcher/Logic/TexturePack.cs create mode 100644 launcher/LogicTests/Tests.TexturePack.cs create mode 100644 nx2/build_jobs.py create mode 100644 nx2/cmpflags.py create mode 100644 nx2/dead_flags.py create mode 100644 nx2/discover.py create mode 100644 nx2/fastfp.py create mode 100644 nx2/lift_store.py create mode 100644 nx2/object_store.py create mode 100644 nx2/prompt_faces/ps4/Controller_Pro.png create mode 100644 nx2/prompt_faces/ps5/Controller_Pro.png create mode 100644 nx2/prompt_faces/steamdeck/Controller_Pro.png create mode 100644 nx2/prompt_faces/xbox/Controller_Pro.png create mode 100644 nx2/reshade_fx.py create mode 100644 nx2/split_giants.py create mode 100644 nx2/test_image_arrays.py create mode 100644 nx2/walk.py create mode 100644 scripts/chain.py create mode 100644 scripts/gen_spirv_operands.py create mode 100644 scripts/renhdrum.py create mode 100644 scripts/reshade/check_fx.py create mode 100644 scripts/reshade/examples/TintedHighlights.fx create mode 100644 scripts/reshade/examples/TintedHighlights.ini create mode 100644 scripts/reshade/fx_probe.cpp create mode 100644 scripts/triforce_ctl.py create mode 100644 tests/audio_aux_test.c create mode 100644 tests/audio_output_devices_test.c create mode 100644 tests/cmpflags_test.c create mode 100644 tests/compute_gate_test.cpp create mode 100644 tests/control_test.c create mode 100644 tests/crash_record_test.c create mode 100644 tests/cxx_escape_test.cpp create mode 100644 tests/fastfp_fma_test.c create mode 100644 tests/fsr4_models_test.cpp create mode 100644 tests/fsr4_tune/layer.hlsl create mode 100644 tests/fsr4_tune/layer.spv create mode 100644 tests/fsr4_tune/written.hlsl create mode 100644 tests/fsr4_tune/written.spv create mode 100644 tests/hold_gpu_test.cpp create mode 100644 tests/image_arrays_ir.cpp create mode 100644 tests/load_default_test.cpp create mode 100644 tests/module_ids_test.cpp create mode 100644 tests/nonuniform_image_arrays_ir.cpp create mode 100644 tests/pad_speaker_test.c create mode 100644 tests/program_life_test.cpp create mode 100644 tests/sim_turf_capacity_policy.cpp create mode 100644 tests/sim_turf_pools_ir.cpp create mode 100644 tests/sim_turf_settings_test.cpp create mode 100644 tests/srccut.py create mode 100644 tests/stack_commit_test.c create mode 100644 tests/test_a64_helper_flags.py create mode 100644 tests/test_async_safe_frees.py create mode 100644 tests/test_audio_aux.py create mode 100644 tests/test_audio_output_devices.py create mode 100644 tests/test_audio_source.py create mode 100644 tests/test_audio_source_load.py create mode 100644 tests/test_audio_speaker_layout.py create mode 100644 tests/test_auto_settings.py create mode 100644 tests/test_build_hash_cache.py create mode 100644 tests/test_build_jobs.py create mode 100644 tests/test_chain.py create mode 100644 tests/test_chain_input.py create mode 100644 tests/test_chunks_corrupt.py create mode 100644 tests/test_chunks_save_folder.py create mode 100644 tests/test_cmpflags.py create mode 100644 tests/test_compile_level.py create mode 100644 tests/test_compute_gate.py create mode 100644 tests/test_compute_pipeline_atomic.py create mode 100644 tests/test_control.py create mode 100644 tests/test_control_local_only.py create mode 100644 tests/test_crash_dialog.py create mode 100644 tests/test_crash_record.py create mode 100644 tests/test_cursor_hidden_in_play.py create mode 100644 tests/test_cv_signal_wake.py create mode 100644 tests/test_cxx_escape.py create mode 100644 tests/test_damaged_rom_files.py create mode 100644 tests/test_damaged_translation.py create mode 100644 tests/test_dead_flags.py create mode 100644 tests/test_discord_activity.py create mode 100644 tests/test_discover.py create mode 100644 tests/test_disk_rotational.py create mode 100644 tests/test_drive_target.py create mode 100644 tests/test_evil_hd.py create mode 100644 tests/test_evil_hd_foliage.py create mode 100644 tests/test_fallback_lanes.cpp create mode 100644 tests/test_fallback_lanes.py create mode 100644 tests/test_fastfp_fma.py create mode 100644 tests/test_fastfp_override.py create mode 100644 tests/test_fastfp_regions.py create mode 100644 tests/test_flight_jump.py create mode 100644 tests/test_float_add_subgroup.py create mode 100644 tests/test_fps_levels.py create mode 100644 tests/test_frame_carry_cap60.py create mode 100644 tests/test_fsr3_shader_options.py create mode 100644 tests/test_fsr3fi_hud_layer.py create mode 100644 tests/test_fsr3fi_hudless_colour.py create mode 100644 tests/test_fsr4_bind_dispatch.py create mode 100644 tests/test_fsr4_models.py create mode 100644 tests/test_fsr4_own_cache.py create mode 100644 tests/test_fsr4_tune.py create mode 100644 tests/test_global_table_loop.py create mode 100644 tests/test_gpu_hang_watch.py create mode 100644 tests/test_gpu_write_history.py create mode 100644 tests/test_gyro_rearm.py create mode 100644 tests/test_handle_table_count.py create mode 100644 tests/test_hdr_sdr_why.py create mode 100644 tests/test_header_ext_deps.py create mode 100644 tests/test_heart_containers.py create mode 100644 tests/test_hle_guest_ranges.py create mode 100644 tests/test_hold_gpu.py create mode 100644 tests/test_hold_toggle.py create mode 100644 tests/test_horse_jump_step.py create mode 100644 tests/test_host_depfiles.py create mode 100644 tests/test_input_movie.py create mode 100644 tests/test_insn_fixed_convert.py create mode 100644 tests/test_jobs_failure.cpp create mode 100644 tests/test_jobs_failure.py create mode 100644 tests/test_jump_takeoff_step.py create mode 100644 tests/test_kept_depfiles.py create mode 100644 tests/test_kept_translation.py create mode 100644 tests/test_keys_player_input.py create mode 100644 tests/test_lift_entry_below.py create mode 100644 tests/test_lift_lookups.py create mode 100644 tests/test_lift_progress.py create mode 100644 tests/test_lift_store.py create mode 100644 tests/test_lift_zero_bytes.py create mode 100644 tests/test_light_passes.py create mode 100644 tests/test_link_skip.py create mode 100644 tests/test_linux_audio_output.py create mode 100644 tests/test_linux_preflight.py create mode 100644 tests/test_load_default.py create mode 100644 tests/test_log_levels.py create mode 100644 tests/test_log_redact.py create mode 100644 tests/test_loop_step.py create mode 100644 tests/test_mark_bitmap.py create mode 100644 tests/test_masked_clear_failure.py create mode 100644 tests/test_menu_i18n.py create mode 100644 tests/test_menu_i18n_count.py create mode 100644 tests/test_mesh_fallback_strict_fmul.py create mode 100644 tests/test_met_wait_capture.py create mode 100644 tests/test_mic_test_row.py create mode 100644 tests/test_mma_software.py create mode 100644 tests/test_module_ids.py create mode 100644 tests/test_motion_background.py create mode 100644 tests/test_movie_shape.py create mode 100644 tests/test_native_float_atomic_add.py create mode 100644 tests/test_nonuniform_image_arrays.py create mode 100644 tests/test_notes_carry.py create mode 100644 tests/test_nvn_device_modes.py create mode 100644 tests/test_object_store.py create mode 100644 tests/test_ocarina_note_bindings.py create mode 100644 tests/test_ocarina_notes.py create mode 100644 tests/test_ocarina_wait.py create mode 100644 tests/test_ocb_hold.py create mode 100644 tests/test_occ_gated_visible.py create mode 100644 tests/test_oot_barrier.py create mode 100644 tests/test_oot_camera_clearance.py create mode 100644 tests/test_oot_cloth_60.py create mode 100644 tests/test_oot_cloth_time.py create mode 100644 tests/test_oot_first_night.py create mode 100644 tests/test_oot_shadow_res.py create mode 100644 tests/test_oot_state_tap.py create mode 100644 tests/test_oot_wide_bubble.py create mode 100644 tests/test_output_modes.py create mode 100644 tests/test_overlap_read.py create mode 100644 tests/test_pad_headphones_reader.py create mode 100644 tests/test_pad_speaker.py create mode 100644 tests/test_pads_after_menu.py create mode 100644 tests/test_page_table_census.py create mode 100644 tests/test_patch_hooks_defined.py create mode 100644 tests/test_pc_texts.py create mode 100644 tests/test_pipeline_state_portable.py create mode 100644 tests/test_play_rows.py create mode 100644 tests/test_posix_thread_priority.py create mode 100644 tests/test_pouch_live.py create mode 100644 tests/test_prepare_journal.py create mode 100644 tests/test_program_life.py create mode 100644 tests/test_prompt_guide_lines.py create mode 100644 tests/test_prompt_picture_tint.py create mode 100644 tests/test_prompts_live.py create mode 100644 tests/test_query_memory_free.py create mode 100644 tests/test_reactive_mask.cpp create mode 100644 tests/test_reactive_mask.py create mode 100644 tests/test_renderer_depfiles.py create mode 100644 tests/test_renhdrum.py create mode 100644 tests/test_reserved_core_mask.py create mode 100644 tests/test_reshade_fx.py create mode 100644 tests/test_sampler_stack_walk.py create mode 100644 tests/test_saved_turn_rate.py create mode 100644 tests/test_sdiv_overflow.py create mode 100644 tests/test_sdl_pad_diagnostics.py create mode 100644 tests/test_shader_list_skip.py create mode 100644 tests/test_shader_profile_caps.py create mode 100644 tests/test_shadow_bias_once.py create mode 100644 tests/test_sim_turf_capacity_policy.py create mode 100644 tests/test_sim_turf_floor.py create mode 100644 tests/test_sim_turf_group_limit.py create mode 100644 tests/test_sim_turf_pools.py create mode 100644 tests/test_sim_turf_settings.py create mode 100644 tests/test_song_note_cue.py create mode 100644 tests/test_sparse_bc_usage.py create mode 100644 tests/test_sparse_bind_failure.py create mode 100644 tests/test_sparse_spare.cpp create mode 100644 tests/test_sparse_spare.py create mode 100644 tests/test_split_giants.py create mode 100644 tests/test_stack_commit.py create mode 100644 tests/test_state_list_plain.py create mode 100644 tests/test_steam_pads.py create mode 100644 tests/test_stick_inversion_rest.py create mode 100644 tests/test_subgroup_pin_limit.py create mode 100644 tests/test_teleport_check.py create mode 100644 tests/test_temporal_jitter.py create mode 100644 tests/test_tex_pack.py create mode 100644 tests/test_texture_tile_upload.py create mode 100644 tests/test_threaded_rendering.py create mode 100644 tests/test_translation_pools.py create mode 100644 tests/test_triforce_ctl.py create mode 100644 tests/test_triforce_ctl_finite.py create mode 100644 tests/test_trigger_rest.py create mode 100644 tests/test_ub_snapshot_default.py create mode 100644 tests/test_ub_snapshot_gpu_writes.py create mode 100644 tests/test_vcore_escape.py create mode 100644 tests/test_vibration_pick.py create mode 100644 tests/test_video_hold_early.py create mode 100644 tests/test_walk.py create mode 100644 tests/test_warm_bounded.py create mode 100644 tests/test_water_substeps.py create mode 100644 tests/test_wb_spans.py create mode 100644 tests/test_wide_ui.py create mode 100644 tests/test_windows_pipe_busy.py create mode 100644 tests/test_ws_floor.py create mode 100644 tests/test_xess_rules.py create mode 100644 tests/test_xinput_thread.py create mode 100644 tests/test_xinput_trigger_rest.py create mode 100644 tests/warm_bounded_test.cpp create mode 100644 third_party/renhdrum/Cargo.lock create mode 100644 third_party/renhdrum/Cargo.toml create mode 100644 third_party/renhdrum/LICENSE-APACHE create mode 100644 third_party/renhdrum/LICENSE-MIT create mode 100644 third_party/renhdrum/NOTICE create mode 100644 third_party/renhdrum/PROVENANCE.md create mode 100644 third_party/renhdrum/build.rs create mode 100644 third_party/renhdrum/include/renhdrum.h create mode 100644 third_party/renhdrum/src/backend/mod.rs create mode 100644 third_party/renhdrum/src/backend/nintendo_hd.rs create mode 100644 third_party/renhdrum/src/detectors/click_detector.rs create mode 100644 third_party/renhdrum/src/detectors/dense.rs create mode 100644 third_party/renhdrum/src/detectors/mod.rs create mode 100644 third_party/renhdrum/src/detectors/short_pulse.rs create mode 100644 third_party/renhdrum/src/dualsense/bt_haptics.rs create mode 100644 third_party/renhdrum/src/dualsense/haptics.rs create mode 100644 third_party/renhdrum/src/dualsense/mod.rs create mode 100644 third_party/renhdrum/src/dualsense/motor.rs create mode 100644 third_party/renhdrum/src/dualsense/motor_replay.rs create mode 100644 third_party/renhdrum/src/dualsense/opus_codec.rs create mode 100644 third_party/renhdrum/src/dualsense/settings.rs create mode 100644 third_party/renhdrum/src/dualsense/speaker.rs create mode 100644 third_party/renhdrum/src/dualsense/speaker_replay.rs create mode 100644 third_party/renhdrum/src/dualsense/tri_replay.rs create mode 100644 third_party/renhdrum/src/dualsense/tri_trigger.rs create mode 100644 third_party/renhdrum/src/dualsense/trigger_effect.rs create mode 100644 third_party/renhdrum/src/dualsense/trigger_profile.rs create mode 100644 third_party/renhdrum/src/encoding/amfm.rs create mode 100644 third_party/renhdrum/src/encoding/click.rs create mode 100644 third_party/renhdrum/src/encoding/crisp_notes.rs create mode 100644 third_party/renhdrum/src/encoding/mod.rs create mode 100644 third_party/renhdrum/src/encoding/standard.rs create mode 100644 third_party/renhdrum/src/ffi.rs create mode 100644 third_party/renhdrum/src/ipc.rs create mode 100644 third_party/renhdrum/src/lib.rs create mode 100644 third_party/renhdrum/src/nx2.rs create mode 100644 third_party/renhdrum/src/options.rs create mode 100644 third_party/renhdrum/src/planner/amfm_measure.rs create mode 100644 third_party/renhdrum/src/planner/amfm_planner.rs create mode 100644 third_party/renhdrum/src/planner/mod.rs create mode 100644 third_party/renhdrum/src/play_report.rs create mode 100644 third_party/renhdrum/src/preset.rs create mode 100644 third_party/renhdrum/src/settings.rs create mode 100644 third_party/renhdrum/src/status.rs create mode 100644 third_party/renhdrum/src/test_pattern.rs create mode 100644 third_party/renhdrum/src/trace.rs create mode 100644 third_party/renhdrum/src/valve/grip.rs create mode 100644 third_party/renhdrum/src/valve/mod.rs create mode 100644 third_party/renhdrum/src/xbox/classify.rs create mode 100644 third_party/renhdrum/src/xbox/direct.rs create mode 100644 third_party/renhdrum/src/xbox/mod.rs create mode 100644 third_party/renhdrum/src/xbox/rotor.rs create mode 100644 third_party/reshade_fx/LICENSE.md create mode 100644 third_party/reshade_fx/PROVENANCE.md create mode 100644 third_party/reshade_fx/source/effect_codegen.hpp create mode 100644 third_party/reshade_fx/source/effect_codegen_spirv.cpp create mode 100644 third_party/reshade_fx/source/effect_expression.cpp create mode 100644 third_party/reshade_fx/source/effect_expression.hpp create mode 100644 third_party/reshade_fx/source/effect_lexer.cpp create mode 100644 third_party/reshade_fx/source/effect_lexer.hpp create mode 100644 third_party/reshade_fx/source/effect_module.hpp create mode 100644 third_party/reshade_fx/source/effect_parser.hpp create mode 100644 third_party/reshade_fx/source/effect_parser_exp.cpp create mode 100644 third_party/reshade_fx/source/effect_parser_stmt.cpp create mode 100644 third_party/reshade_fx/source/effect_preprocessor.cpp create mode 100644 third_party/reshade_fx/source/effect_preprocessor.hpp create mode 100644 third_party/reshade_fx/source/effect_symbol_table.cpp create mode 100644 third_party/reshade_fx/source/effect_symbol_table.hpp create mode 100644 third_party/reshade_fx/source/effect_symbol_table_intrinsics.inl create mode 100644 third_party/reshade_fx/source/effect_token.hpp create mode 100644 third_party/stb_image/LICENSE create mode 100644 third_party/stb_image/PROVENANCE.md create mode 100644 third_party/stb_image/stb_image.h create mode 100644 third_party/xess/PROVENANCE.md create mode 100644 third_party/xess/inc/MIT.txt create mode 100644 third_party/xess/inc/xess/xess.h create mode 100644 third_party/xess/inc/xess/xess_vk.h diff --git a/.gitignore b/.gitignore index 89b8a7c..1e1efc9 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,5 @@ renodx_spv.h # Triforce Setup's build output (setup\build.ps1, setup\pack_tools.ps1) setup/out/ build1.done +# (Triforce) RenHDrum built by hand (scripts/renhdrum.py): the .dll is *.dll above +third_party/renhdrum/renhdrum.so diff --git a/builder/HookshotBuilder/Storage.cs b/builder/HookshotBuilder/Storage.cs index 1c93a59..5d7dccc 100644 --- a/builder/HookshotBuilder/Storage.cs +++ b/builder/HookshotBuilder/Storage.cs @@ -73,6 +73,18 @@ static class Storage return running.StartsWith(Path.GetFullPath(versionDir).TrimEnd('\\') + "\\", StringComparison.OrdinalIgnoreCase); } + /// (Triforce) make_game.py keep_translation left the lift's small files in sa (its .lift_key marked "kept"): the next update with the + /// same tools skips the lift with them. Not let go after a build (Free up space still lets them go) + static bool KeptTranslation(string sa) + { + try + { + var words = File.ReadAllText(Path.Combine(sa, "gen", ".lift_key")).Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries); + return words.Length >= 3 && words[2] == "kept"; + } + catch (Exception e) when (e is IOException or UnauthorizedAccessException) { return false; } + } + /// What Free lets go. afterBuild: what goes once the game is ready, the compiled objects of the build (objcache, which make_game.py /// prunes to them) and their system headers' stamp kept, so that the next update compiles only what changed (issue 1287: every /// update compiled all ~600 files again, an hour and more). The Free up space button lets those go too. (Triforce) Never an @@ -82,7 +94,8 @@ static class Storage static IEnumerable Freeable(bool afterBuild = false, bool installing = false) { foreach (var d in afterBuild ? new[] { "sa", "exefs", "probe" } : new[] { "objcache", "sa", "exefs", "probe" }) - yield return Path.Combine(Work, d); + if (!(afterBuild && d == "sa" && KeptTranslation(Path.Combine(Work, d)))) + yield return Path.Combine(Work, d); foreach (var d in installing ? new[] { "update" } : new[] { "downloads", "update" }) yield return Path.Combine(Base, d); var versions = Path.Combine(Base, "versions"); diff --git a/builder/linux/hookshot_builder.py b/builder/linux/hookshot_builder.py index 3c1c752..9456317 100644 --- a/builder/linux/hookshot_builder.py +++ b/builder/linux/hookshot_builder.py @@ -42,6 +42,22 @@ DLSS_LICENSE = ( ) +def read_only(text): + """((Triforce, 11-24, after Source A's) text, a tk.Text, read-only as Windows' IsReadOnly box: it selects and copies + (Ctrl+A, Ctrl+C) but typing, paste, cut and delete leave it as it is. Returns the function that adds to its end. Its insert + and delete are refused in Tcl, so Tk's own bindings stay. (Not -state disabled: Tk 8.5 and early 8.6 give a disabled Text + no focus from a click off Windows, so Ctrl+C would not reach it.)""" + w = str(text) + text.tk.call("rename", w, w + "_rw") + text.tk.call("proc", w, "op args", "if {$op in {insert delete replace}} return\n" + "uplevel 1 [list {%s_rw} $op {*}$args]" % w) + # (Tk deletes the widget's own command when the window goes: the proc goes with it) + text.tk.call("trace", "add", "command", w + "_rw", "delete", "apply {{w args} {rename $w {}}} {%s}" % w) + # (Ctrl+A is line start in Tk's X11 bindings: here it selects all, as in the Windows box) + text.bind("", lambda e: (text.tag_add("sel", "1.0", "end"), "break")[1]) + return lambda s: text.tk.call(w + "_rw", "insert", "end", s) + + def ngx_sdk_dir(): """Where NVIDIA's DLSS SDK goes when the player ticks NVIDIA DLSS: beside the builder's versions, kept across updates.""" return os.path.join(linux_update.data_root(), "ngx-sdk") @@ -985,6 +1001,7 @@ class Builder(tk.Tk): self.proc = subprocess.Popen(cmd, cwd=ROOT, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1, encoding="utf-8", errors="replace", start_new_session=True, **env_kw) threading.Thread(target=self.read, args=(self.proc,), daemon=True).start() + self.tick() # ((Triforce, 11-24) the clock once the build runs: asked before it, it stopped at once def read(self, proc): for line in proc.stdout: @@ -999,6 +1016,7 @@ class Builder(tk.Tk): self.compile_started = None self.times = None self.shaders_later = False + self.built = self.error = None # ((Triforce, 11-24) this run's own: what make_game.py says, or Cancel) px = self.px page = self.page = ttk.Frame(self) page.pack(fill="both", expand=True) @@ -1029,6 +1047,7 @@ class Builder(tk.Tk): borderwidth=0, highlightthickness=0, padx=px(10), pady=px(8), insertbackground=INK, selectbackground=BRAND, selectforeground=WHITE) self.log.grid(row=0, column=0, sticky="nsew") + self.add_log = read_only(self.log) # ((Triforce, 11-24) selects and copies, takes no typing scroll = ttk.Scrollbar(lines, orient="vertical", command=self.log.yview, style="Log.Vertical.TScrollbar") scroll.grid(row=0, column=1, sticky="ns") self.log.configure(yscrollcommand=scroll.set) @@ -1134,11 +1153,12 @@ class Builder(tk.Tk): elif line.startswith(make_game.NOT_PREPARED): self.shaders_later = True if hasattr(self, "log"): - self.log.insert("end", line + "\n") + self.add_log(line + "\n") self.log.see("end") def on_exit(self, code): self.proc = None + self.time_text.set("") # ((Triforce, 11-24) the clock and its countdown are a running build's; the line above says how it ended) for w in self.buttons.winfo_children(): w.destroy() folder = getattr(self, "built", None) @@ -1166,7 +1186,7 @@ class Builder(tk.Tk): self.stage_label.configure(style="Go.Stage.TLabel") self.set_step(2) else: - self.stage_text.set("The build stopped: %s" % getattr(self, "error", "see the lines above")) + self.stage_text.set("The build stopped: %s" % (getattr(self, "error", None) or "see the lines above")) ttk.Button(self.buttons, text="Back", command=self.show_form, cursor="hand2").pack(side="right", padx=self.px(4)) self.heading.configure(text="The build stopped") self.stage_label.configure(style="Bad.Stage.TLabel") diff --git a/builder/linux/linux_update.py b/builder/linux/linux_update.py index f122d54..224a002 100644 --- a/builder/linux/linux_update.py +++ b/builder/linux/linux_update.py @@ -231,10 +231,25 @@ def _https(url): return url +class _HttpsRedirects(urllib.request.HTTPRedirectHandler): + """((Triforce, 11-24, after Source A's) A redirect is followed only to another https link. urllib's own follows one to http: + and ftp: too, so _https saw the first link and not where the download came from""" + + def redirect_request(self, req, fp, code, msg, headers, newurl): + return super().redirect_request(req, fp, code, msg, headers, _https(newurl)) + + +_OPENER = urllib.request.build_opener(_HttpsRedirects) + + +def _open(req, timeout): + return _OPENER.open(req, timeout=timeout) + + def _request(url, timeout, limit=MAX_DOWNLOAD): # (no second argument: Request's second is the POST body, and a str body failed every download before connecting) req = urllib.request.Request(_https(url), headers={"User-Agent": "Triforce", "Accept": "application/vnd.github+json"}) - with urllib.request.urlopen(req, timeout=timeout) as response: + with _open(req, timeout) as response: return _read_at_most(response, limit) @@ -254,7 +269,7 @@ def _api_download(url): if asset.get("name") == name: req = urllib.request.Request(_https(asset.get("url")), headers={ "User-Agent": "Triforce", "Accept": "application/octet-stream"}) - with urllib.request.urlopen(req, timeout=120) as response: + with _open(req, 120) as response: return _read_at_most(response, MAX_DOWNLOAD) return None diff --git a/builder/py/hookshot_builder/core.py b/builder/py/hookshot_builder/core.py index aa6307a..d0a8938 100644 --- a/builder/py/hookshot_builder/core.py +++ b/builder/py/hookshot_builder/core.py @@ -241,6 +241,16 @@ def _kept_version(d): return bool(cur) and _same(cur, d) +def kept_translation(sa): + """(Triforce) make_game.py keep_translation left the lift's small files in sa (its .lift_key marked "kept"): the next update with + the same tools skips the lift with them. Not let go after a build (Free up space still lets them go)""" + try: + with open(os.path.join(sa, "gen", ".lift_key"), encoding="utf-8") as f: + return f.read().split()[2:3] == ["kept"] + except (OSError, UnicodeDecodeError): + return False + + def freeable(after_build=False, installing=False): """What free lets go (measure counts it; nothing is changed here). (Triforce) Never an unfinished version that still holds folders of the installed one (setup_parts.lent: its reused.txt): deleted, the installed version lost its Python or its @@ -248,7 +258,8 @@ def freeable(after_build=False, installing=False): (downloads\\, versions\\) stays""" from . import setup_parts for d in (("sa", "exefs", "probe") if after_build else ("objcache", "sa", "exefs", "probe")): - yield os.path.join(work(), d) + if not (after_build and d == "sa" and kept_translation(os.path.join(work(), d))): + yield os.path.join(work(), d) for d in ("update",) if installing else ("downloads", "update"): yield os.path.join(paths.base(), d) v = paths.versions() diff --git a/docs/development.md b/docs/development.md index 4bfade1..657673f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,3 +1,5 @@ +| `RX_VK_WB_SPANS=0` | (Triforce, 11-24) A CPU read of GPU results waits for the newest write-back noted on any 4 KB page it touches, as before. By default a read that covers its first or last page only in part waits there for the write-backs over its own bytes: the game keeps its culling tables double-buffered, two slots back to back whose seam is one page, and each frame's read of one slot waited for the submission that was writing the other. Never a later submission than the page rule's; the captures' looks at a page are unchanged (`gpu/vk/vk_memory.cpp` `wb_spans_on`, `tests/test_wb_spans.py`) | +| `RX_VK_BUFFER_BUDGET=0` | (Triforce, 11-24) A host-visible buffer (the staging arenas, the read-backs' buffers) is made where the allocator prefers it whatever that heap's budget, as before. By default it is first asked for within the budgets, so that the allocator takes the next memory type when the preferred heap is full: on an AMD APU without resizable BAR the preferred heap is the carve-out's 256 MB window, a load's staging overran it and the driver then refused every submit (`submit ... failed (-2)`, a black screen with the sound going on). Where no heap has room the buffer is made as before (`gpu/vk/vk_vma.cpp` `create_buffer`) | # Hookshot (oot-recomp) **Hookshot** is the port's name (as Skybound is TOTKPort's and BlueShell is mkw-recomp's); the maintainer's repository @@ -24,6 +26,12 @@ Studio's C++ tools; on Linux clang and lld. For the Vulkan back end: distro Vulk (`RX_CPM`, else `cpm` in the clone, else the old caches in mkw-recomp's `work/eg` or `..\Eglantine\.cache\cpm`). Without those the standalone build stops. [CONTRIBUTING.md](../CONTRIBUTING.md#development-setup) has the rest. +On Linux, `make_game.py` checks what the build needs before it reads or translates the game, and names every missing one +in one error: the Python modules `requirements.txt` pins (a source build), the renderer's headers (CPM caches first, then +`HOOKSHOT_*_HEADERS`, then `/usr/local` and `/usr`; not with the AppImage's prebuilt renderer), FFmpeg's libraries +(`HOOKSHOT_FFMPEG` with `lib/libavcodec.a`, else `pkg-config`), clang (and clang++), and a test program linked with lld +(`HOOKSHOT_SYSROOT` when set). The button-prompt packages stay optional; nothing is installed. + Run everything with `python -I` from this folder. | Command | What | @@ -54,6 +62,16 @@ background when the existing "Controller in background" option or `HOS_INPUT_BAC alone drives the game until 5 s after its last press; without it the player's devices add to the script's presses. It is not a focus override. +### Log levels + +A log line is info unless it says otherwise: `hos_log` and the renderer's `logf` write it as before. `hos_log_at(HOS_LOG_TRACE, +...)` (`host/hos.h`) and `logf_at(log_trace, ...)` (`gpu/vk/vk_internal.h`) give it another level, written after the thread's +tag: `[hos host] [trace] vk: ...`, and likewise `[error]`, `[warn]` and `[debug]`. The log file keeps every line; a log viewer +can show info and above and keep the rest one step away, and one that does not read the tag shows the line with it. Per-item +lines a player cannot act on (one per program or pipeline, a decoder's details) are debug or trace, among them the movie +upscaler's networks a card leaves out (`vk: program ... not translated: a network left out on this card`, counted apart from +the 30 lines real translation failures get); `HOS_TRACE`'s calls are trace. `tests/test_log_levels.py` checks the tags. + ## Switches for testing and debugging The running game reads its switches from the environment or from `hookshot_env.txt` beside `image.bin` (one @@ -80,10 +98,14 @@ screen. It costs some GPU time on cards that cull quickly, so it is off unless s | `HOS_WINDOW_NOACTIVATE` (set) | The window opens behind the others and does not take the focus (Windows) | | `HOS_FULLSCREEN=1` | Starts in fullscreen; the Insert menu's Fullscreen row is then left alone | | `HOS_ALT_MENU=1` | (Triforce, 11-22, after Casual Gamer's #dev-fixes post) A lone Alt is left to Windows, as before: it enters the menu loop on the window's thread, which during the start-up screen is the one waiting for the shaders, and the screen froze until a key was pressed. By default the window, which has no menu bar, answers that command itself (`host/display.c` `keymenu_dropped`, `tests/test_alt_menu.py`); Alt+Space's system menu, Alt+Enter, F10 and Alt+F4 are as they were | +| `HOS_FLIGHT_JUMP=B` | (Triforce, 11-24) The Debug tab's No-clip flight takes off and lands with a double-tap of B and climbs while B is held, whatever the game's Swap Jump Controls says, as before (`=X`: X always). By default it is the game's own Jump: X (the keyboard's Space), or B with Swap Jump Controls on, read from the game's option `OptionData.IsChangeJumpButton` at Link's update (`host/flight_jump.h`, `host/nn_hid.c` `flight_jump`, `tests/test_flight_jump.py`). With B always, a double-tap of the Jump the player knew never took off | +| `HOS_POUCH_LIVE=0` | (Triforce, 11-24) The Debug tab's Inventory sets an item's count in GameData alone, as before. By default the game's own pouch is given or loses the difference first, through the pouch manager's add (`f_8112d570`, the reason "Script") and remove (`f_833c4fa0`), as its event action OneShotAddOrRemovePouchContent does; the pouch then writes GameData itself, and GameData is set here only where the pouch refuses (the songs) (`host/pouch_live.h`, `host/hos_main.c` `oot_pouch_change`, `tests/test_pouch_live.py`). What the game does when it gives Link something is done for an item given here too: in a run on 11-24 the Kokiri Sword was equipped and the Goron's Bracelet and the Golden Gauntlets were worn at once (the gauntlets and the scales are the game's ability items, `ExpansionAbilityActor` `LiftableGrade` and `DiveDepth`). With GameData alone the pause menu showed them and none of that happened | | `HOS_AUDIO=0` | No sound device is opened (the mixer still runs); `scripts/run-vk.ps1` sets it unless `-Sound` | +| `HOS_AUDIO_AUX=0` | (Triforce, 11-24) The game's Aux effects are accepted and passed through, as before: the mix they are on plays as it came. The default runs them: each 5 ms frame the mix's sent buffers go to the game's own effect code as whole frames (`ReadAuxSendBuffer`) and what it hands back (`WriteAuxReturnBuffer`) takes their place, silence when it has handed nothing back in time. Passed through, an effect's send was heard as one more dry source and the effect itself never. `HOS_AUDIO_EFFECTS=0` leaves them out too (`host/nn_audio.c` "Aux", `tests/test_audio_aux.py`) | | `HOS_AUDIO_EFFECTS=0` | The game's plain reverb, delay and biquad filter effects on its mixes and its splitter destinations' biquad filters are accepted and left out, as before they were emulated (the sound unfiltered and at full level: the "Volcano eruption audio bugged" ticket); the I3DL2 reverb still runs. By default they run on the mix buffers in the order the game added them (`host/nn_audio.c` "mix effects"; `tests/test_audio_mix_effects.py`) | | `HOS_LANGUAGE=` | The game's language for this run, a code from `language.txt` | | `HOS_OUTPUT_RES=<0..8>`, `HOS_OUTPUT_SIZE=x`, `HOS_HANDHELD=1`, `HOS_ASPECT=` | Over the options file: the output resolution (as `output_res` below), Custom's size (as `output_width` and `output_height`), the handheld profile, and the picture's shape whatever the Output resolution and the Ultrawide row say (a ratio, width over height: 2.3889 is 3440x1440's; the picture is the output's height in that shape, kept to 3840x2160's pixels). The Insert menu shows `HOS_OUTPUT_SIZE` and `HOS_ASPECT` in the rows they set, which then have nothing to choose | +| `HOS_WIDE_UI=0\|1`, `HOS_WIDE_UI_LOG=`, `HOS_HUD_MAX_RATIO=` | (Triforce) The HUD's layout on a picture wider than 16:9 (`host/hos_wide_ui.c`, ozwaldorf's pane planner): with the Display tab's HUD position at Screen edges the HUD's side panes move out to the screen's edges, planned at each present from the panes as the game places them (`nx2/oot_wide.py` `UI_SITES`), so the row changes at once; with Menu sides at Extended the menus' side panes too. Middle, the default, plans nothing. Not on a picture narrower than 16:9. `HOS_WIDE_UI=0`: off, and Screen edges moves the HUD's panes as the layouts load (`host/prompts.c` `build_layouts`), as before; `=1`: Screen edges whatever the row. `HOS_WIDE_UI_LOG=` logs the first n changes of the plan, each root layout and the plan's time; `HOS_HUD_MAX_RATIO` (12:5 by default, 0 none) is the widest the HUD's sides go | | `HOS_DYNRES=0`, `HOS_REALTIME_STEP=0`, `HOS_TEXT_SPEED=<0..3>` | Over the options file: Resolution 100% (non-zero: Auto), Game speed Per frame (1: Real time), Text speed | | `RX_VK_FIRST_START_AUTO=1`, `RX_VK_FIRST_START_AUTO=` | (Triforce, 11-22, the performance audit's PRESENT-46, after Source A's; off by default) A first start sized to the card: with no options file, `RX_VK_LOW_SPEC` not asked and `HOS_DYNRES` not set, a weak card starts with the Render resolution row at 50% in place of Auto, or at 33% for an integrated GPU beside 4 processor threads or fewer (`gpu/vk/first_start.h`, `gpu/vk/vk_menu.cpp` `menu_first_start`, called from `mkwvk_init` once the device is made). Weak is Source A's tier 1: an integrated GPU (a handheld's is one; the `SteamDeck` variable is not read, it took desktops for handhelds), a card without mesh shaders, or 4.5 GB of video memory or less. Only that row is set: the upscaler, the textures and the output stay, and nothing is saved, so each start chooses again until the player saves options. A number over 1 plays a card of that many MB (the lab: `=4096` on a large card). Not set or `=0`: as before. Off until the owner decides what a first start on a weak card gets; unmeasured (Source A states no gain and tried it on one RTX 4070 Ti). One `menu: first start:` line says the choice | | `HOS_STEP_STEADY=0` | (Triforce, on by default since the lab's A/B; `=0` the mean of the last five as before) The game's real-time step kept steady, after NX2navi's steady step (`host/step_steady.h`, `host/nn_vi.c` `realtime_step`): the mean of the last 12 present intervals without their longest and shortest in place of the mean of the last five (`HOS_REALTIME_WINDOW`), the paced period itself where that mean is within 3% of it, and what the display showed and the game was not given repaid at a 64th a frame, 10% of the step at most (a quarter second owed at most). A cap the game holds steps it by the period exactly, and a hitch is paid back over most of a second instead of in the next five frames (a 50 ms frame at 240: 200 frames of at most 10% more, where the mean of five gave five steps of 13 ms). Game time still follows the clock | @@ -96,6 +118,7 @@ screen. It costs some GPU time on cards that cull quickly, so it is off unless s | `RX_VK_DLSS_FEATURE_MAX=1` | (Triforce, 11-21, the upscaler audit's UPS-01) NVIDIA DLSS's feature made for the largest render size its quality mode allows, whatever the Render resolution row says, as before. NGX answers that largest size as the output's own, so at a fixed share the feature was made for 2.25 times the pixels it was ever given at Quality (4 at Performance, 9 at Ultra Performance), and the chain's colour, depth and motion images with it; the owner's log has DLSS's own video memory at 1069 MB for such a feature with preset M, where NVIDIA's table has 456 MB at 4K, and NVIDIA's guide says the cost of presets L and M follows the size the feature is initialized for. The default makes a fixed share's feature for its own render size; the row's Auto (the game's dynamic resolution), and any run in which the render size is seen changing under one output, make it for the mode's whole range as before (one feature made again when that is first seen). DLAA's is the output's either way. The `feature N made` line says which, and the status line's `its own ... MB` and `its images ... MB` are the measure (`gpu/vk/dlss_feature.h`, `vk_dlss.cpp` `prepare`). Not built or run in the game when it was written | | `RX_VK_DLSS_PREWARM=1` | (Triforce, 11-22, the performance audit's PRESENT-32, after Source A's: its first step; off by default) NVIDIA DLSS at the output's size takes the scaled quality mode whose range holds that size, and only NVIDIA DLAA the one-size mode (`gpu/vk/dlss_checks.h` `dlaa_feature`, `gpu/vk/vk_dlss.cpp` `prepare`). With the Render resolution row at Auto the game starts at the output's size and lowers it some frames later: before, a one-size feature and then a second one made in play (Source A's save load-in: 119 ms, then 29.5 ms 17 frames on); with the switch one feature, for its mode's whole range. Off by default because DLSS at full size then draws with the scaled mode's network, not DLAA's: a picture to compare first. The rest of the entry is not built: making the feature, the chain's images and a first evaluation ahead in a light frame (a title or loading screen) needs the first gameplay upscale's sizes and colour kind before it has happened, which only a run with DLSS can settle. `tests/test_dlss_prewarm.py` runs the decisions over a load-in | | `RX_VK_FRAMEGEN_REFRESH=1` | (Triforce, 11-21, the upscaler audit's UPS-05; off unless set) The Frame generation row's 2x to 8x make no more frames for each of the game's than the display's refreshes that fall in one frame of the game: the game's recent frame time over the display's period, rounded up, a tenth of a refresh forgiven, never more than the row's number and never fewer than the game's own frame. Without it the row's number is made whatever the display shows: the owner's log has 5x on a 165 Hz display with the game near 66 frames a second, 331 frames a second presented, each present call 2.2 to 3.0 ms (0.03 ms without frame generation) and the display thread's line `0 frames shown on time, 1655 late`. Auto and AMD FSR's row are not touched. A `vk: frame interpolation: N frame(s) for each of the game's` line says each change (`gpu/vk/framegen_refresh.h`, `vk_framegen.cpp` `framegen_record`). Not built or run in the game when it was written | +| `RX_VK_FG_TIMELINE=0` | With the Frame pacing row Off, a fixed frame generation multiplier's frames go out as they come again, all within a millisecond. On unless set to 0: a set with made frames is shown a step apart, each frame at its own time, whatever the row says (with the row on they always were): shown at once on a swapchain that does not wait for a refresh, the game's frame covered the made ones (`gpu/vk/vk_framegen.cpp` `display_main`). Not built or run in the game when it was written | | `RX_VK_FRAMEGEN=0`, `RX_VK_FRAMEGEN_MULT=<0..9>`, `RX_VK_PACE=0`, `RX_VK_UPSCALE=<0..2>` | No frame generation whatever the menu says; over the options file: the Frame generation row's value (0 Off, 1 Auto, 2 to 8 the multiplier, 9 AMD FSR frame generation: a lab run's pin for each generator; `gpu/vk/framegen_rows.h` `env_row`), frame pacing, the upscaling filter | | `RX_VK_FG_OWN_MOTION=0` | (Triforce, FG-4) Frame generation's motion the camera's alone, as before, for comparing. Without it, while NVIDIA DLSS or AMD FSR 4 upscale, the depth and motion frame generation takes (AMD's, NVIDIA DLSS frame generation, FSR 3.1's interpolation) are made from the upscaler chain's frame, with what moves by itself drawn into the motion (`gpu/vk/vk_temporal.cpp` `fg_inputs_from_chain`, `gpu/vk/vk_fsr3_inputs.cpp` `chain_motion`): also where the gameplay network does not translate on the card and the upscaler draws it in its place (RDNA 3), where they were never made before and AMD's frame generation made no frame | | `RX_VK_DLSSG_OWN_MOTION=1` | (Triforce, 11-22) NVIDIA DLSS frame generation is given the upscaler chain's motion, as before (`RX_VK_FG_OWN_MOTION` above). By default it is given the camera's alone, from FSR's inputs: with the chain's the owner's flicker of the whole picture while the camera moved came back on 11-22, with frame generation at 2x and DLSS at 50%, and it stayed with the upscaler audit's commits set back; with `RX_VK_FG_OWN_MOTION=0` it was gone. DLSS frame generation finds what moves by itself with its own optical flow. AMD's frame generation and FSR 3.1's interpolation keep the chain's (`gpu/vk/fg_motion.h`, `vk_fsr3_inputs.cpp` `chain_motion`). Not built when it was written: the same as the run with `RX_VK_FG_OWN_MOTION=0`, for DLSS frame generation alone | @@ -135,11 +158,15 @@ screen. It costs some GPU time on cards that cull quickly, so it is off unless s | `HOS_INPUT_LIVE=` | A file the test appends lines of presses to, read every 30 ms; each line's times count from when it is read. A line `!cheat ` sends a Cheats page action, `!synclog` logs the NVN syncs (`!dump`, `!shots`, `!rdoc` and `!flasharm` are the WebGPU renderer's) | | `HOS_INPUT_FRAME_CLOCK=1` | The script's time runs at 60 game frames a second instead of the wall clock | | `HOS_INPUT_EXCLUSIVE`, `HOS_INPUT_BACKGROUND`, `HOS_INPUT_SCRIPT_BACKGROUND` (set) | As above; the last lets every device count while the window is behind another one | +| `HOS_INPUT_RECORD=` | (Triforce; unset: off) An input recording (`host/input_movie.c`, the format in `host/input_movie.h`): what the game is given each game frame, after every device and filter (the controller word and sticks, the flight and free camera cheats' inputs, the gyroscope, the native mouse camera's turns, the menu mouse's choices, the Debug tools' actions and rows), with Link's position and the camera's state as fingerprints. From the frame after Link's first update; `HOS_INPUT_FROM=boot`: from the game's first read. `HOS_INPUT_ROUTE=1`: no guest words or addresses in it (`HOS_INPUT_SAVE=` noted in its header) | +| `HOS_INPUT_PLAY=` | (Triforce; unset: off) A recording given back in place of the player's devices, the script and the bridge, from the same point, then the player's input again; the log says where Link or the camera first left it, and its end how many updates did. With `HOS_INPUT_RECORD` (another file) the replay is recorded too. `HOS_INPUT_SYNC=` (1; 0: never) puts the camera and Link back every n-th update where they left it, while Link is within `HOS_INPUT_SYNC_MAX` metres (1); past that the replay has diverged. Exact only at the 60 cap with `HOS_REALTIME_STEP=0`, `HOS_FIXED_TIME`, the same save and settings. A run that records or plays from its start has no movie pacing (`host/nn_vi.c`). The control bridge starts and stops either at run time (`triforce_ctl.py record` / `play`) | | `RX_VK_MENU_SCRIPT=:,...` | Timed Insert menu keys: `INS`, `UP`, `DOWN`, `LEFT`, `RIGHT`, `ESC`, `ENTER`, `TABL`, `TABR` | | `RX_VK_UI_PROMPTS=pad` or `keys` | The menu's button prompts for a controller or the keys, whatever was used last (screenshots) | | `RX_VK_UI_GAME_FONT=0` | The menu, the counter and the start-up screen in the included Libertinus, not the game's own font | The presses are `: