From 1c3ff5bc7cc9f699236871dccb60cc8d8b4ee4cf Mon Sep 17 00:00:00 2001 From: readmet3xt-lab <238408149+readmet3xt-lab@users.noreply.github.com> Date: Wed, 2 Dec 2026 02:13:02 +0530 Subject: [PATCH] Docs and script help: 'the program' for the title; no test-PC details architecture, findings, fork-ray-tracing, replay, saves and multi-frame-generation, and the help comments and messages of play-foxhound.ps1 and play.ps1: 'the title' becomes 'the program', and the test PC is a 12 GB RTX card with 32 GB RAM. Platform terms (title id, title profile) are kept. Texts only. Co-Authored-By: Claude Opus 5.5 --- docs/architecture.md | 10 +++++----- docs/findings.md | 24 ++++++++++++------------ docs/fork-ray-tracing.md | 26 +++++++++++++------------- docs/multi-frame-generation.md | 4 ++-- docs/replay.md | 18 +++++++++--------- docs/saves.md | 10 +++++----- scripts/play-foxhound.ps1 | 22 +++++++++++----------- scripts/play.ps1 | 6 +++--- 8 files changed, 60 insertions(+), 60 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index 90baaf9..5d4a6cb 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -21,7 +21,7 @@ victory-shader ◄─► cache_dir ``` -Shaders are translated when the title creates a pipeline, from the bytes it +Shaders are translated when the program creates a pipeline, from the bytes it passes, wherever it loaded them from (executable, archive, memory). Converting them ahead of time from files is only a warm-up. @@ -31,13 +31,13 @@ Converting them ahead of time from files is only a warm-up. |-------|------| | `victory-core` | config, asset-policy guard, logging | | `victory-pe` | read-only PE32+ and import-library analysis | -| `victory-loader` | prepare, map, bind and start the title image | +| `victory-loader` | prepare, map, bind and start the program image | | `victory-hle` | console API implementations, host pass-through policy | | `victory-gpu` | D3D12.X objects, command lists and GPU memory → host D3D12 | | `victory-shader` | Xbox shader containers → host shaders | | `victory-formats` | the GPU's texture layouts (sizes, tiling, detiling), BCPack, audio codecs | | `victory-pipeline` | converter trait, content-addressed cache | -| `victory-game` | the title-specific formats, build identities, hooks | +| `victory-game` | the program-specific formats, build identities, hooks | | `apps/victory` | command-line front end | | `xtask` | asset-policy check, git hooks | | `tests/fixtures/hle-probe` | a stand-in "title" (our own code) for loader tests | @@ -47,11 +47,11 @@ any Xbox Series title. ## Import resolution -For every `dll!function` the title imports, in order: +For every `dll!function` the program imports, in order: 1. our implementation in `victory-hle::modules` (always wins); 2. the host's own function, if `HostPolicy` allows that DLL; -3. an export of a DLL the title ships beside its executable, mapped like +3. an export of a DLL the program ships beside its executable, mapped like the executable (only DLLs neither of the above serves); 4. a generated stub that names the import when called (`--unimplemented trap` breaks into the debugger and aborts; `zero` logs once and returns 0). diff --git a/docs/findings.md b/docs/findings.md index 1ae9581..8097df9 100644 --- a/docs/findings.md +++ b/docs/findings.md @@ -10,11 +10,11 @@ under about 5 % as nothing. What a switch does is in the comment where it is rea Median of whole runs, same part of the first scene: 280 ms, then 124, 103, 75, now 46-65. In a water scene 46-53 ms. -The title needs 33 ms. Of a 55 ms frame on the water: +The program needs 33 ms. Of a 55 ms frame on the water: - **The thread that prepares submissions: 48 ms.** It is the wall. Steps of the lists 18 (refreshes of host copies 10), steps done on the card 7, waiting for descriptor - records 6, asking the write watch 5, copies in the card's memory 4, the title's bytes + records 6, asking the write watch 5, copies in the card's memory 4, the program's bytes under shader writes 4. - **The card: about 41 ms busy**, the next wall. - **List calls: 36,000 a frame, 230 ms of work** spread over eight threads. In a street @@ -27,7 +27,7 @@ The title needs 33 ms. Of a 55 ms frame on the water: On the console the CPU and the graphics processor share memory. Here they do not, so everything one writes and the other reads must be noticed and moved. Every large cost -is one of four: **noticing** writes of the title (write watch, guards), **noticing** +is one of four: **noticing** writes of the program (write watch, guards), **noticing** writes of shaders (hashes on the card, compares on the CPU), **moving** them, and **waiting** until an order is safe. Gains came from making each of them narrower (dwords, not pages), wider (threads, AVX2) or later (on the card, behind the frame), @@ -48,7 +48,7 @@ in that order of size: ## Faults found, and what they were - **Floating objects sank.** The water's height and displacement maps are - textures that compute passes write and the title's physics sample on the CPU. They were + textures that compute passes write and the program's physics sample on the CPU. They were never brought back to title memory. Fixed by Geckomacabre's read-back as merged in fxceless/victory-fork f5c03f3b; on by default here (`VICTORY_TEXTURE_BACK=0`: off). With it they stay up through a whole run; without it sank in every one. @@ -110,18 +110,18 @@ each commit naming its source. In short: constant buffer bookkeeping (romainhedouin). - ZJOU: render targets not set again; some shader corrections are being looked at. -# What was learned on the RTX 4070 SUPER (2026-11-28) +# What was learned on a 12 GB RTX card (2026-11-28) -One PC: Ryzen 7 7800X3D, 32 GB, RTX 4070 SUPER 12 GB, Series X profile, 1440p, DLSS Quality. Short launches +One PC: a 12 GB RTX card with 32 GB RAM, Series X profile, 1440p, DLSS Quality. Short launches from one save (80 s, measured in the first heavy scenes), timelines of 60 frames 55 s and 70 s after the start, a stack profile of 12 s in a heavy heavy scene, and one played session of 20 minutes. ## Where a frame goes now -Gameplay standing still holds the title's 33.3 ms. What is over it: +Gameplay standing still holds the program's 33.3 ms. What is over it: -- **A scene's first seconds**: frames of 40 to 100 ms. In their chains: the title's own threads, streaming - requests (16 workers unpack what the console's hardware unpacks; below normal priority already), the title's +- **A scene's first seconds**: frames of 40 to 100 ms. In their chains: the program's own threads, streaming + requests (16 workers unpack what the console's hardware unpacks; below normal priority already), the program's page mapping calls, threads woken with no processor free, texture refreshes. - **Heavy scenes** (6,000 to 10,000 draws): the submitting thread needs 32 to 37 ms a frame, 18 to 25 fps. Its profile has no single place left: the refreshes spread over helpers and the wait for them about 30 %, the @@ -133,7 +133,7 @@ Gameplay standing still holds the title's 33.3 ms. What is over it: | What | Before | After | |---|---|---| -| Retired objects released by the thread that tells the title the card is done | that stage 533 ms in 60 frames, 12 stalls of 10-27 ms | about 100 ms, none or one | +| Retired objects released by the thread that tells the program the card is done | that stage 533 ms in 60 frames, 12 stalls of 10-27 ms | about 100 ms, none or one | | Single-channel one-level textures uploaded by every list every frame | 21 % of the submitting thread, frames 48-69 ms | 2 %, 33-43 ms | | Stores into guarded memory (`VICTORY_STORE_BESIDE`, `VICTORY_GUARD_HOT`) | guards waited for 8.7 ms a frame, protections 14.3 ms | 2.5 ms, 8.7 ms | @@ -144,7 +144,7 @@ of 5 s). The count is cheap; the end of host objects is what costs. ## Measured and not worth it - `VICTORY_PORT_CONSTANTS=1`: constant fills 4,693 to 68 a frame and the submitting thread 31.5 to 27.5 ms, but - the frame 34.3 to 37.2 ms and the card 98 % busy (it reads the title's memory over the bus). + the frame 34.3 to 37.2 ms and the card 98 % busy (it reads the program's memory over the bus). - `VICTORY_WC_BAR=1` (buffers in card memory the CPU maps): flicker, broken faces. - `VICTORY_COPY_BESIDE=1`: textures waiting 3,800 to 13,000, slower frames. - `VICTORY_GUARD_HOT` alone: nothing; with `VICTORY_STORE_BESIDE` a little. @@ -154,7 +154,7 @@ of 5 s). The count is cheap; the end of host objects is what costs. - List translation: its eight threads are about 90 % idle. It is not a limit. - A pass of clippy's performance lints over the workspace: nothing in the paths a frame runs. -## The title's own settings +## The program's own settings Its graphics settings object (the one that holds the frame rate) differs between the console profiles in some 38 fields: levels of 1 to 3 on Series X where Series S has 0 or 1, one scale of 1.0 against 0.8, the output size. diff --git a/docs/fork-ray-tracing.md b/docs/fork-ray-tracing.md index a70abe3..d1de3fe 100644 --- a/docs/fork-ray-tracing.md +++ b/docs/fork-ray-tracing.md @@ -16,7 +16,7 @@ Such a title need not use a ray-tracing API: - Traversal can be ordinary compute-shader code: a per-thread stack in shared memory, and loads through raw 40-bit addresses of title memory. -- Acceleration structures can come pre-built in the title's data, in the +- Acceleration structures can come pre-built in the program's data, in the console GPU's native node format (64-byte nodes: box nodes with four children and 16-bit float bounds, 128-byte box nodes with 32-bit float bounds, triangle nodes, instance nodes), unpacked on the GPU. @@ -30,15 +30,15 @@ Such a title need not use a ray-tracing API: denominator and barycentric numerators). So mapping this onto the host's own ray tracing (DXR) is not practical: the -layer would have to know the geometry behind structures the title never -describes to it, and the traversal loops live in the title's own programs. +layer would have to know the geometry behind structures the program never +describes to it, and the traversal loops live in the program's own programs. This fork runs the builder and traversal as translated shaders and emulates the one instruction. ## What this fork adds 1. **The builder programs translate** (all 52, with host pipelines on the RX - 7900 XTX; the title creates 53 such pipelines). They pass buffer addresses in a spilled parameter table + 7900 XTX; the program creates 53 such pipelines). They pass buffer addresses in a spilled parameter table rather than in descriptors. Added: the spilled user-data table, root unordered-access views (translator and host binding), byte and 16-bit buffer accesses, and several control-flow shapes. @@ -58,11 +58,11 @@ the one instruction. plain numbers on some paths, and exact forms for programs written for 64-lane waves running on a GPU with 32-lane waves. 5. **A safety rule on the host side.** The builder's stages run only while - every builder pipeline the title has created has a host pipeline; otherwise + every builder pipeline the program has created has a host pipeline; otherwise none run (`VICTORY_BVH_BUILDER=1` asks for it; `VICTORY_BVH_QUARANTINE=1` also keeps the builder's stores out of title memory, for a first test). A partly working builder wrote garbage bounds into title memory and crashed - the title. + the program. ## The structures (from saved copies of the arenas, `VICTORY_MEMORY_DUMP`) @@ -78,7 +78,7 @@ the one instruction. - The static world's structures are shipped **packed ("dehydrated")** and unpacked in place, once, by the builder's unpacking programs (header, box nodes of both widths, leaves) when they have been streamed in (3,000 in the first scene). -- Dynamic ones are built, their compacted size read back by the title from a +- Dynamic ones are built, their compacted size read back by the program from a small buffer, and copied to a place of that size. ## How title memory by address is held (`memory.rs`) @@ -108,13 +108,13 @@ dispatches, faults and what came. ## Known gaps - Dynamic structures overlap each other (8 of 65 good in run light-10, 48 of - 275 in light-15). Part of the cause, run light-11's trace (`VICTORY_BVH_TRACE=1`): the title asks for a new + 275 in light-15). Part of the cause, run light-11's trace (`VICTORY_BVH_TRACE=1`): the program asks for a new structure's compacted size, reads it one or two frames later without looking whether it is there, takes memory of that size and has the structure copied - into it. Our submissions land up to two frames late; the title read what the + into it. Our submissions land up to two frames late; the program read what the slot held before, another structure's size, and the copy wrote over the neighbours. Waiting for a submission that asks (`VICTORY_BVH_SIZES_WAIT=1`) - did not mend it and costs some 20 ms a frame (light-15): the title asks in + did not mend it and costs some 20 ms a frame (light-15): the program asks in every frame, and what it read was as old as before. Open. - What a structure that was written over says of its size sent the builder's copy of it through gigabytes of other structures; bounded now @@ -154,11 +154,11 @@ dispatches, faults and what came. ## Without rays: the stand-in (`crates/victory-gpu/src/ambient.rs`) -Without structures every ray misses. The title's program that resolves the +Without structures every ray misses. The program's program that resolves the diffuse light of its screen probes (its temporal resolve, list 184 of a frame) then leaves the sky's light outdoors, nothing indoors, and in blocks of tiles what the probes' memory held. `VICTORY_AMBIENT=` raises -it to an estimate right after that program: the title keeps, for its own screen +it to an estimate right after that program: the program keeps, for its own screen traces, the light visible surfaces send out (its radiance cache, 1280x720, the frame before); its mean in 64x36 cells is gathered at 160x90 points, each cell weighted by the share of the surroundings it covers, as a @@ -172,7 +172,7 @@ fork's constant. | variable | does | |---|---| -| `VICTORY_AMBIENT=` | the estimate, 1 all of it (unset: the title's own) | +| `VICTORY_AMBIENT=` | the estimate, 1 all of it (unset: the program's own) | | `VICTORY_AMBIENT=constant:` | the same light everywhere | | `VICTORY_AMBIENT_SHADE=,` | the creases (1,0.6) | | `VICTORY_AMBIENT_AIR=` | what the air scatters is bounded by a multiple of the light around (off: the brown veil in the day room stays with it, light-14) | diff --git a/docs/multi-frame-generation.md b/docs/multi-frame-generation.md index 14241ba..8241136 100644 --- a/docs/multi-frame-generation.md +++ b/docs/multi-frame-generation.md @@ -40,9 +40,9 @@ instead of renaming it to a system DLL beside `victory.exe` (why: see below). * **It loads before the layer.** `victory.exe` imports `winmm.dll`, so a `winmm.dll` beside it runs before the layer's first line: before the address space the layer keeps free for - the title's large heaps and for ray tracing's upload memory (`reserve_title_spare`, + the program's large heaps and for ray tracing's upload memory (`reserve_title_spare`, `reserve_upload_space`). Whatever it allocates at that moment can sit where those - reservations were meant to go. Crashes at the title's first large allocation, or "failed + reservations were meant to go. Crashes at the program's first large allocation, or "failed to allocate upload buffer", with an unlocker present should be retried without it. * **The layer's own mod folder is the cleaner way in.** Every DLL in `%LOCALAPPDATA%\victory\mods` is loaded by name after those reservations and before diff --git a/docs/replay.md b/docs/replay.md index 74095ff..c255634 100644 --- a/docs/replay.md +++ b/docs/replay.md @@ -2,7 +2,7 @@ A diagnostics build can write down one frame's D3D12 work (what the host layer sends to the card, and the memory it reads) and run it again without -the title, to see where the card's time goes and to try changes in seconds. +the program, to see where the card's time goes and to try changes in seconds. Code: `crates/victory-gpu/src/replay`. ## Recording @@ -23,7 +23,7 @@ were all recorded; the next frame is captured: everything sent to the drawing queue between two presents (the first may be the swap chain's own work for the frame before). One capture per process. At the frame's first submission the card is drained and its memory copied out; before each later one the card -is drained again and what the CPU changed is written. The title stands still +is drained again and what the CPU changed is written. The program stands still meanwhile. `frame recorder: the frame is captured` in the log and `frame.bin` in the folder mean it is done; `failed.txt` that it failed. @@ -31,19 +31,19 @@ in the folder mean it is done; `failed.txt` that it failed. (and in every replay's report). Only the line with the totals, waits of the drawing queue and lists of another queue (the relay's copies) are expected. -Measured on a made-up frame of a title's size (12,000 resources, 1.5 million +Measured on a made-up frame of a large program's size (12,000 resources, 1.5 million views, 30 submissions, 40,000 calls): a frame takes 3-10 ms more with the recorder on, the capture stands still for 5.4 s and is 9 GB (8 GB of the card's memory at 2.3 GB/s, 1 GB the CPU wrote). The recorder holds a copy of the memory both sides see that the frame reads, and 1 GB or more of read-back buffers, until it is done. -In a real frame of the title the capture can be much slower (foxhound #18: +In a real frame of the program the capture can be much slower (foxhound #18: 1.27 GB written in 30 s on an RTX 5060 Ti with `VICTORY_RELAY=2`), and the title ends itself when one of its threads has not moved for 30 s. So the capture of the card's memory is given up after `VICTORY_RECORD_LIMIT_S` seconds (20 when unset; 0: no limit): `failed.txt` says how far it got, the -recorder stops, and the title goes on. +recorder stops, and the program goes on. ## Running it @@ -53,7 +53,7 @@ recorder stops, and the title goes on. capture. Each loop puts back what the one before changed and sends the frame without waiting between submissions. Reported, from timestamps on the card: the frame (first list's start to last list's end), each submission, copies -that stand for what the CPU wrote between submissions (not the title's cost), +that stand for what the CPU wrote between submissions (not the program's cost), and gaps. With `--timing detailed`, each command: sums by kind and the costliest pipelines with the names the runtime logs and their DXIL hashes (blake3). A command's time is from the end of the one before to its own end: @@ -76,7 +76,7 @@ with the presented one. | `--only 3..7` | runs these lists; of the others only barriers | | `--no-merge` | copies of what the CPU wrote also overwrite the card's own results (below) | | `--skip-shader ` | leaves out what runs pipelines with the text in their name or DXIL hash (repeatable) | -| `--shaders ` | takes shaders from the folder where it has them: `.dxil`, by the hash the runtime names the title's shader by (a pass of ours: its own DXIL hash); with `--compare --shaders-b ` a second set, turn by turn with the first | +| `--shaders ` | takes shaders from the folder where it has them: `.dxil`, by the hash the runtime names the program's shader by (a pass of ours: its own DXIL hash); with `--compare --shaders-b ` a second set, turn by turn with the first | | `--retranslate ` | only writes that folder: the capture's shaders translated by this build with the `VICTORY_*` switches of this run (`--view-limit`, `--raw-views`: the view heap's null slot and where raw views start, as the capture's shaders have them) | | `--no-restore` | leaves what a loop changed, and makes no copies to restore from (of a capture that does not fit in the card's memory with them) | | `--pace ` | a wait after each submission sent: the card stands idle between them, as in a game that prepares the next one | @@ -86,7 +86,7 @@ with the presented one. Use the median of several loops; the first is slower. An experiment that leaves out waits or work can draw another picture and, with wild data, lose -the device: save work in other programs first. Do not run the title at the +the device: save work in other programs first. Do not run the program at the same time. ## What draws a pixel @@ -115,7 +115,7 @@ unseen". Copies of 3D textures' targets are of the slice drawn to. ## Runs that differ -Shaders that give out places with atomics (the title's culling) give other +Shaders that give out places with atomics (the program's culling) give other ones in every run. The host layer brings such results to title memory and sends 64 KiB pieces of it up again, so the recorded copies hold the recorded run's results. Put over a replay's own, lists and what points into them are of diff --git a/docs/saves.md b/docs/saves.md index 7226942..b192523 100644 --- a/docs/saves.md +++ b/docs/saves.md @@ -1,6 +1,6 @@ # Game saves: where they are, backing them up, bringing them back -The layer gives a title one offline user. The title saves and loads through its +The layer gives a title one offline user. The program saves and loads through its own menus as it would on the console; there is no separate "load" step in the launcher. This page says where those saves end up on the PC and how to keep them. @@ -10,19 +10,19 @@ Everything a title keeps lives in the **data folder**, never in the cache folder ``` %LOCALAPPDATA%\victory\data\\ - saves\ the title's game saves + saves\ the program's game saves storage\ its persistent local storage (settings and the like; some titles keep progress here too) temp\ temporary files (safe to lose) ``` -* `<title id>` is the title's id, eight hexadecimal digits (one folder per title). +* `<title id>` is the program's id, eight hexadecimal digits (one folder per title). * The data folder can be moved: `DATA_DIR=<folder>` in the launcher's further switches (`VICTORY_DATA_DIR`), or `data_dir` in `victory.toml`. The folder named is the data folder itself, the one that holds the `<title id>` folders; copy them there first. * "Clear old" and changing the cache folder in the launcher never touch the data folder. Inside `saves` there is one folder for the offline user (`0009000000000001`), in it one -folder per save configuration of the title, and in that one folder per save container: +folder per save configuration of the program, and in that one folder per save container: ``` saves\0009000000000001\<configuration>\<container>~<16 hex digits>\v<N>\ @@ -38,7 +38,7 @@ in `.new` or `.gone` are such leftovers and are cleaned up on the next start. 1. Close the game (F1, Quit, or close its window), so that no save is being written. 2. Copy the whole `%LOCALAPPDATA%\victory\data\<title id>` folder somewhere else - (`saves` and `storage` together: the title may need both). + (`saves` and `storage` together: the program may need both). That copy is the backup. Nothing else is needed: the cache folder is rebuilt on its own. diff --git a/scripts/play-foxhound.ps1 b/scripts/play-foxhound.ps1 index 122e1c0..368bc5d 100644 --- a/scripts/play-foxhound.ps1 +++ b/scripts/play-foxhound.ps1 @@ -1,8 +1,8 @@ -# Starts the installed copy of the title on foxhound with the settings tested on an RTX 4070 SUPER (Series X profile, +# Starts a program on foxhound with the settings tested on a 12 GB RTX card (Series X profile, # 2560x1440 output, DLSS Quality when NVIDIA Streamline is set up). # # .\scripts\play-foxhound.ps1 -Exe 'D:\Games\MyCopy' -# .\scripts\play-foxhound.ps1 -Exe ... -Dlss off the title's own upscaling, no DLSS +# .\scripts\play-foxhound.ps1 -Exe ... -Dlss off the program's own upscaling, no DLSS # .\scripts\play-foxhound.ps1 -Exe ... -Dlss balanced -FrameGen # .\scripts\play-foxhound.ps1 -Exe ... -SeriesS Series S profile (1280x720 inside, faster, softer) # .\scripts\play-foxhound.ps1 -Exe ... -Build diag diagnostics build (slower; captures, timelines) @@ -10,7 +10,7 @@ # .\scripts\play-foxhound.ps1 -Exe ... -PrepareOnly translate shaders and compile pipelines, do not start # .\scripts\play-foxhound.ps1 -Exe ... -NoPrepare start at once (the run compiles what is missing: stutter) # -# Before the title starts, the launcher translates the title's shaders (a few minutes, once per build of foxhound +# Before the program starts, the launcher translates the program's shaders (a few minutes, once per build of foxhound # and per set of switches) and compiles every pipeline earlier runs asked for (minutes after a new build or driver, # seconds otherwise). Both use the very switches of the run: translations made with other switches are not found # by the run, which then translates and compiles while you play. @@ -22,14 +22,14 @@ param( [ValidateSet('diag', 'release')][string]$Build = 'release', [switch]$SeriesS, # 1440: output and scene 2560x1440 (Series X, the image is patched); 3440: output and scene 3440x1440 - # ultrawide (Series X, the image is patched); 1080to1440: scene 1920x1080 upscaled by the title; + # ultrawide (Series X, the image is patched); 1080to1440: scene 1920x1080 upscaled by the program; # 4k: the stock Series X output (3840x2160). [ValidateSet('1440', '3440', '1080to1440', '4k')][string]$Res = '1440', - # DLSS Super Resolution in place of the title's upscaling; needs NVIDIA Streamline (README). + # DLSS Super Resolution in place of the program's upscaling; needs NVIDIA Streamline (README). [ValidateSet('off', 'dlaa', 'quality', 'balanced', 'performance')][string]$Dlss = 'balanced', # DLSS Frame Generation (RTX 40 or later, hardware-accelerated GPU scheduling on); needs DLSS. [switch]$FrameGen, - # Frames begin every 1/Fps s whatever the title asks (it asks 1/30); the frame time is the layer's limit. + # Frames begin every 1/Fps s whatever the program asks (it asks 1/30); the frame time is the layer's limit. [ValidateRange(1, 1000)][int]$Fps = 0, [switch]$PrepareOnly, [switch]$NoPrepare, @@ -44,7 +44,7 @@ $settings = @{ VICTORY_UPLOAD_AHEAD = '1'; VICTORY_SHOW_AFTER = '1'; VICTORY_MAP_THREADS = '1' # Shader writes into big write-combined copies stay on the card (-5 ms a frame) VICTORY_WC_NO_BACK = '1'; VICTORY_WC_NO_BACK_MIN_KB = '1024' - # The title's page-mapping copies kept without Windows views (no heavy scene freezes at scene cuts) + # The program's page-mapping copies kept without Windows views (no heavy scene freezes at scene cuts) VICTORY_SOFT_VIEWS = 'copies' # Textures: pool with no blocks made ahead, 16 ms a pass, no catch-up, levels not on demand (sharp) VICTORY_TEXTURE_POOL = '1'; VICTORY_RIPE_BLOCKS = '0'; VICTORY_TEXTURE_NO_WAIT = '1'; VICTORY_TEXTURE_CATCHUP = '0' @@ -65,13 +65,13 @@ $settings = @{ # The layer's own threads that a frame waits for run above normal priority (one run each: heavy scene frame time # mean 37.2 -> 36.6 ms, worst second 74.8 -> 63.8, median unchanged) VICTORY_HELPER_PRIORITY = '1' - # Light without the title's ray tracing: an estimate of indirect light and of reflections + # Light without the program's ray tracing: an estimate of indirect light and of reflections VICTORY_AMBIENT = '0.8'; VICTORY_AMBIENT_AIR = '1.5'; VICTORY_AMBIENT_SPECULAR = '1' # Pixel programs keep the console's early depth test VICTORY_EARLY_DEPTH = '1' # Left out: the decal heap's defragmentation (5.6 ms of GPU a frame) and the heat-haze pass (smeared blocks) VICTORY_LEAVE_OUT = 'a5a5000000000002,a5a500000000002a' - # Pipelines the title makes are written down, so `victory warm` can make them ahead + # Pipelines the program makes are written down, so `victory warm` can make them ahead VICTORY_PIPELINE_BOOK = '1' } if (-not $SeriesS) { @@ -99,7 +99,7 @@ if (-not (Test-Path -LiteralPath $Exe)) { Write-Host "No $Exe."; return } if (Test-Path -LiteralPath $Exe -PathType Container) { $found = @(Get-ChildItem -LiteralPath $Exe -Filter *.exe -File) if ($found.Count -gt 1) { $found = @($found | Where-Object Name -like 'game*') } - if ($found.Count -ne 1) { Write-Host "$Exe is a folder without one clear executable: give the title's .exe."; return } + if ($found.Count -ne 1) { Write-Host "$Exe is a folder without one clear executable: give the program's .exe."; return } $Exe = $found[0].FullName } # Switches left over in this window are cleared; path settings stay (victory.toml gives them otherwise). @@ -121,7 +121,7 @@ if (-not $NoPrepare) { $stamp = "$($exeInfo.Length) $($exeInfo.LastWriteTimeUtc.Ticks) $env:VICTORY_HOST_WAVE " + (($settings.GetEnumerator() | Sort-Object Name | ForEach-Object { "$($_.Name)=$($_.Value)" }) -join ' ') $stampFile = Join-Path $env:LOCALAPPDATA "victory\prepared-$Build.txt" if ((Get-Content $stampFile -Raw -ErrorAction SilentlyContinue) -ne $stamp) { - Write-Host 'Translating the title''s shaders (once per build: a few minutes, up to 15 on a first install; it uses the processor, not the card)...' + Write-Host 'Translating the program''s shaders (once per build: a few minutes, up to 15 on a first install; it uses the processor, not the card)...' & $victory shaders (Split-Path -Parent $Exe) 2>&1 | ForEach-Object { $l = "$_"; if ($l -match '^\d+ shaders in the cache') { Write-Host " $l" } elseif ($l -notmatch '^\d{4}-\d\d-\d\dT') { $l } } | Select-Object -Last 3 if ($LASTEXITCODE -eq 0) { [IO.File]::WriteAllText($stampFile, $stamp) } } diff --git a/scripts/play.ps1 b/scripts/play.ps1 index 8d176a5..92b6857 100644 --- a/scripts/play.ps1 +++ b/scripts/play.ps1 @@ -1,7 +1,7 @@ -# Starts the title with the settings this fork is played with (README.md, "How to run it"). -# scripts\play.ps1 -Exe <path of the installed copy's executable> +# Starts the program with the settings this fork is played with (README.md, "How to run it"). +# scripts\play.ps1 -Exe <path of the program's executable> # -Safe without the newer, faster ways (the first thing to try when something is wrong) -# -RayTracing the title's own ray-traced indirect light: lit interiors, about a third slower +# -RayTracing the program's own ray-traced indirect light: lit interiors, about a third slower # -Build target\diag (the default, the build all measurements are of) or target\release # -More other settings: -More @{VICTORY_PANEL='1'} # Run it from a normal window, not as administrator: the driver then keeps its shader cache elsewhere.