Repository navigation
Conversation
The switch to the official VIctory (O) is removed: VIctory Try builds and runs this fork only. A config left on the official build by 1.5 is ignored and the fork is rebuilt. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…where With the exe apart from the .rpf files, G: became the game files folder and anything the title keeps beside its exe vanished from its package; a run then crashed early (device slot 0x1b8 and null reads on the worker threads). A path missing from a drive's root is now looked up in the drive's second folder, which run sets to the exe's folder in that case. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Device method 55 makes a pipeline from a base one with parts of its state replaced: (base, part count, parts, iid, out), each part a u32 kind (0 depth/stencil, 1 rasterizer, 2 blend, 3 sample mask, others the console's own) and its description at +4, 0x14c bytes apart. It was missing: the stub returned without an object and the title's worker threads read through the null pipeline (AV at image+0x247a098 about 0.7 s in). The derived pipeline keeps the base's shaders and a copy of its graphics state with the parts applied; console-only parts are skipped. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
A failed update build keeps the last working victory.exe, but the run still printed the newest downloaded commit, so an old build looked new. The run now prints the commit the exe was built from and warns in red when that is older than the fork. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… point at An access violation in title code could only be read with the title's files at hand. Its report now adds, in one print per thread, the 64 bytes before and 32 from the faulting instruction, the 48 bytes before each of the first callers' return addresses, 64 bytes at each register that points at readable memory and 128 bytes of stack; only committed readable pages are read. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…fixes the 1 s crash)
Slots 0x1c8 and 0x218 are Deserialize{Graphics,Compute}PipelineStateX.
This fork's base answered both S_OK without handing out a pipeline, so
the title took its cached pipelines as made and its pipeline workers read
through a null one (AV at title+0x247a098 about a second in, on every
worker). Upstream leaves them unimplemented (E_NOTIMPL) and reaches the
start screen (Marvisak#417). They now return E_NOTIMPL with a null
pipeline, and the title builds its pipelines from their descriptions.
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ors) A black window with every draw run could be a black picture from the title or a picture the window loses, and nothing told them apart outside diagnostics builds. Every build now logs, on the frames the log reports, the brightest channel and mean of a 4x4 grid of the presented texture, a failing Present's HRESULT (once per code), and a present with no resource, with a texture nothing wrote, or that was not shown. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
The title presents its start screens on a UI plane over a scene plane that stays black (upstream Marvisak#841: visible only with multi-plane compositing). Only plane 0 was shown, so the window stayed black. Plane parameters take their 0x48-byte stride; every plane's first resource is shown, plane 0 opaque and scaled to the window, planes 1.. over it with premultiplied alpha (a small built-in pass). One plane keeps the plain copy. If the pass cannot be made, plane 0 alone. The logged picture levels read the composited frame. After upstream JMAN730#211 (Yaekai). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
World rendering, lighting, frame-rate and memory work for Grand Theft Auto VI (Xbox Series X profile) on one Windows PC with an NVIDIA RTX 4070. The README describes the state, the changes and the credits. Based on VIctory by Marvisak and contributors (GPL-3.0-or-later); XCL by ivall and contributors was used as a reference. No game files are included. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On an RTX 4060 the title's 1,245,184-slot view heap kept 737,856 title slots (2^18 dynamic ones on a 1,000,000 cap), and the title filled them in order before its first screen: every view from 737,856 up had no host descriptor. A capped heap now keeps 2^17 dynamic slots (868,928 title slots); uncapped heaps are unchanged. The 'title slot past the host heap' warning logged every slot of a heap filled in order (thousands of lines); now once per 4096. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
As a Series X the title presents one 3840x2160 plane, black on every host so far (upstream Marvisak#841). As a Series S it presents its menus on a UI plane over a 1080p scene plane (upstream JMAN730#211), which VIctory now composites. C switches the console (remembered in config.json). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
The world removed the device (0x887A0006) on an RTX 4060 about 75 s after the dynamic descriptor slots first ran out. A table that did not fit was then used in place, at the title's slot, which past the capped host heap (index up to 1,245,183 in a 1,000,000-view heap) is past its end or in other draws' dynamic slots; a root SRV with no slot kept a stale table. Such draws and dispatches are now dropped. The capped view heap keeps 2^18 dynamic slots again (2^17 ran dry): the title writes every slot of its heap at start, so no cut keeps them all, and the menus came from compositing the planes, not the slots. A free run of dynamic slots across the search cursor is found (Xvania7, upstream Marvisak#887). Composited presents log each plane's pixels (with alpha) on the logged frames. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…MAN730#439's console flow JMAN730#439 (next commit) runs the same programs, and also those whose lanes branch apart, which the emulation refused. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…w (NVIDIA) Port of upstream Marvisak#439 (r4tedx, shader/console-flow-lds, 28aca3b), with contributions by Peter Bonanni, ifBars, swarm, Noname0202 and timorjay as in that branch. A wave64 compute program whose lanes read only their own half runs as two 32-lane waves (WaveSize(32)); one that reads masks whole, lanes of the other half, branches apart or shares LDS within one console wave runs in the console flow (structure_console): every lane through every block, vector instructions guarded by EXEC, branches wave-wide via a group-shared exchange of each half's ballot. Whole-wave reductions cross the halves. Translation now targets the host's wave range (emit::Target, from D3D12 OPTIONS1, part of the shader cache key; translate --host-lanes). On an RTX 2070S title A/B (Marvisak#1132): 127 wave64 E_INVALIDARG refusals to 0, 106 programs recovered, no regressions. Adapted to this tree: replaces the group-shared emulation of JMAN730#734 (taken back in the previous commit); numeric selects (select_condition) also take masks the structure tracks or holds as numbers; v_permlane and implicit-LOD quad samples count as in-half reads. Co-authored-by: CitizenCInema <fredericlaura.fl@pm.me> Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ads across halves Port of r4tedx/VIctory shader/wave-per-group plus r4tedx#12 (MichaelSmithAI, f3f61f9), the follow-ups to upstream JMAN730#439: - Groups of several wave64 console waves without LDS are emitted as one host group of 64 threads per console wave (HostShader::group_waves); direct dispatches multiply x (within 65535), indirect ones of such pipelines are dropped until the clamp pass multiplies the records. These were 43 programs on a 32-lane host (16x16, 1024x1, 8x16 ...). - A v_readfirstlane whose source may differ between the host halves takes the console flow in groups of 33-64 threads (a plain read in the upper half returned lane 32, not 0). Uniform scalar loads stay per-lane. - A mask joined across divergent paths and read as a number takes the console flow (moey424); whole-wave sections in groups of 32 threads or fewer. Co-authored-by: Swarm <swarm@users.noreply.github.com> Co-authored-by: moey424 <mohammad.allami75@gmail.com> Co-authored-by: CitizenCInema <fredericlaura.fl@pm.me> Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- 59 of the 64 trace programs and the irradiance-cache shading program translate; 51 programs leave the approximate wave64 forms. - The workspace passes the lint with warnings as errors in both feature sets; a few style lints are let through in Cargo.toml for this fork. - README status updated (relay and in-place memory results); docs/fork-ray-tracing.md describes what the title does and what is built. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…umbers Port of upstream Marvisak#1407 (marquezinii, a855757). A mask set in every lane outside EXEC where it is written (s_not of a compare in a branch, saved EXEC without the current one) is the ballot of the lanes there plus every lane not there (~WaveActiveBallot(true)); a join of masks and constants read as a number takes the constant where the join was checked per lane. 39 compute programs refused this way in the user's gameplay log. Adapted to JMAN730#439: the structure's `numbers` are JMAN730#439's `others`; the console flow keeps its own exchange. Co-authored-by: CitizenCInema <fredericlaura.fl@pm.me> Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Port of KenzoPortela/VIctory codetable-readfirstlane (4f52170): an s_getpc_b64-based address plus a per-lane index, moved back to SGPRs with v_readfirstlane before an s_load, is the program's own constant table (avgLuminanceCompute_ColorDownsample(Init)CS was refused as "an address not from a root parameter"). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…on divergent s_barrier Port of upstream Marvisak#587 (FibbS6, 1052a90). Mesh threads past the declared vertex or primitive maximum write nothing; every declared primitive is culled first in as many passes as needed; an s_barrier control-dependent on a per-lane branch keeps its memory fences but not SYNC_THREAD_GROUP, which deadlocks a 32-lane host when one warp skips it (a GPU hang, 0x887A0006). Adapted: the index bounds this tree already had stay; the console flow (JMAN730#439), where every thread reaches every barrier, keeps the sync. Co-authored-by: CitizenCInema <fredericlaura.fl@pm.me> Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…pill only with s16 free Port of the rest of upstream Marvisak#489 (Brazlucas: 915d13d, 608f150, fe7210e; JMAN730#302 was already in). Spill-table loads read the root arguments as they were at entry even after the program overwrote the SGPR; the spill rule applies only when the hardware puts nothing in s16 (with 16 user SGPRs the group id sits there), and victory translate uses the same rule; a spill-table pointer mask must keep every address bit. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…f plane 0 On Series X the title draws the world at 2560x1440 and upscales it into the 3840x2160 plane, which stays black here (upstream Marvisak#841); mpDom found the 1440p target holds the picture (mpDom/VIctory d6897fa, diagnostics only there). Now in every build: VICTORY_PRESENT_1440P=1 presents the last 2560x1440 8/10-bit color target the frame rendered to as plane 0 (composited and scaled as usual), =<w>x<h> another size (Series S), =auto the largest such target. Frames without one (menus) show the title's own planes. Co-authored-by: mpDom <mpDom@users.noreply.github.com> Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
(cherry picked from commit 4b96c59) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: ZazaJr24 <218105339+ZazaJr24@users.noreply.github.com>
Upstream JMAN730#783 (rocobalt1's measurement and region-scan idea): a copy that meets one unmapped page redid the whole range 64 KiB at a time in the kernel, 2 784 calls for a 174 MB range with one hole, 2 300-2 500 such fallbacks per world frame; one VirtualQuery per region and one ReadProcessMemory per committed readable region cut copies 275 -> 120 ms there. Kept the kernel copy (not memcpy) so a page unmapped after the query still cannot fault; such a region is redone page by page. The copy-back (write_mapped) walks writable regions the same way. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Upstream Marvisak#982 (chemokita13): every footprint copy and large scratch made and freed its own committed upload buffer; now they come from a host pool (best fit no more than twice the size or 1 MiB, new ones rounded to a power of two, at least 64 KiB) and go back when the list resets, at most 64 buffers / 256 MiB kept. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…world Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… every submission Port of upstream JMAN730#464 (wbkepler) by hand onto our watch.rs: a view block that cannot be made read-only because nothing is committed there is noted absent and reported clean until the runtime maps it (title_memory_remapped). Measured there: fallback path 383-1021 ms -> 7-67 ms per world frame, copies 163-484 -> 103-256 ms. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Port of upstream JMAN730#490 (the view half; JMAN730#464 is the commit before): the block an asking starts at is remembered as a view until the runtime remaps it, so the system is asked once instead of every submission (100-230 ms per world frame measured there). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ning - Shader tests: a software adapter given as the default device is not taken for a hardware device, so the tests that need a real card skip there. - Diagnostics: the stencil plane of dumped depth-stencil targets and the title's descriptions of its stencil views. - README: the newest commits lose the GPU device shortly after start on the test machine; the cause is not found yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ng screens pre-load textures, full detail until 85 %, faster streaming Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…backlog is large, full detail when it drains) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… needs 30 frames in a row, no rush behind loading, unrush, fewer library saves under memory pressure Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… first, newest/oldest turns), staging buffer pool, library read-ahead, ReBAR on its own switch, ambient 0.45 with levels Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…teresis), texture pass profiler Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…PU copies, card fetches in flight, fill light follows the scene, texture pass cap Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… 384 lists in flight, in-flight fetch switch, upscaler DLL lookup waits for its load Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… parallel refresh, half views, PAGE_WRITES fixes) Squash merge of fxceless/victory-fork e4245f3 into the 6.7 branch, conflicts resolved by hand: the texture pass takes the heap worker's Into (list or worker batch) and the skin-bake runs, and keeps 6.3-6.6 budgets (loading screen, curtain, frame share, squeeze); the relay keeps copy-back of only what is read and the copy-engine fetch beside the copy-queue lane and the refetch of pieces fetched beside flights; pipelines follow the bound target formats; fills and copies over flights' writes go ahead (fill_ahead) before the late-readback rules. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
….rs, duplicate host_tiled / bare_cost / walls_census), monitorx / mwaitx patched in place, wide pool at most 8 Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…; half_views in tests), try.ps1 6.8 (fxceless speed set on Y, low preset on X, in-flight fetch off by default), docs Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…re not merged) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…T_REST=1 (ours takes nothing by default) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…y-7900XTX c9c932c + Belobug) as the default engine, with play.ps1's settings, renderer patches, shaders translated and pipelines made with the game closed; CI checks it builds Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…n this engine (VICTORY_OUTPUT; from avatarmanz/VIctory-7900XTX f63b4b1), the plan (scripts/try/PLAN.md), settings.txt in the report, docs Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ets tight on PCs under 32 GB; CI notes what it checked Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… DexNom ab34a8b) with FSR 3.1 fallback; sharper own resolve; avm native shader reader - victory-hle fidelityfx: the title's FidelityFX loader served by AMD's PC upscaler DLL (VICTORY_FIDELITYFX_DIR) on every profile; provider FSR 4.1.2, else newest (FSR 3.1 on NVIDIA), next one if refused; undone dispatches fall back to our temporal resolve. Ported from Belobug/VIctory-Belobug-AMD cd8dfc0 (from DexNom/VIctory ab34a8b), GPL-3.0-or-later. - victory-gpu external: host list recording for host libraries. - over/temporal: Catmull-Rom colour, sharpen against a tent blur (no rendered-grid blocks on bright surfaces), sharpen 10%. - victory-shader native: avm e70e031 (kind 0x0c) and FSPX parser (66afb2b). - ffx: jittered-upscale counts every 600. - try.ps1 6.10: own engine default (one-time), downloads AMD's signed upscaler once, T = FSR / own / off; PLAN/README/RELEASE. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… translated once per build, joined submissions, finer copy-back jobs (lepotane c6c9da9f), anisotropic point-mip samplers (avatarmanz 011735f), policy limit for Rust sources Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…d them as repository files); policy violations shown in the annotations Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…main pass (CI checks pull requests merged onto main and failed on them every run) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…s neither built nor run; NaN scrub - try.ps1 MAX (VICTORY_TRY_ALL_OUT=1): reads the PC's threads, memory and card memory and lifts VICTORY's caps to all of it but ~1% (threads-1 for copy-back, detiling, pipeline compiles; high priority; textures to 99% of the card, no texture cap; the memory guard at 1% free). Off by itself after a lost card. - New settings: VICTORY_PIPELINE_WORKERS, VICTORY_PIPELINE_HEAVY, VICTORY_PRIORITY=high, VICTORY_WORKING_SET_PERCENT, VICTORY_PRESSURE_RAM_MB / _COMMIT_MB / _CARD_PERCENT (mild,critical); VICTORY_TEXTURE_ROOM_PERCENT up to 99. - Passes that only serve rays (bvh skinning, ray resolve, probe ray activation, traces against unbuilt structures) are left out with VICTORY_SKIP_RT=1, and never built (make, prepare). Ported from edsuuu/VI-BR-PORT ab4571d, 1556de8, f1e5e45, 24f8d2e (GPL-3.0+). - scripts/try/rt-off-hashes.txt as VICTORY_DENY_PIPELINES with B, and VICTORY_NAN_SCRUB (pixel colour exports): from trustno1-coder/VIctory-NVIDIA 77e13a9 (GPL-3.0+). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- VICTORY_WINDOWS_BAR_MB: windows outside buffers in a GPU upload heap (Resizable BAR), own cap; Try sets it under 24 GB of RAM. From trustno1-coder/VIctory-NVIDIA cda4987 + 85a529b (Indy2l). - Texture read-backs written by a thread of their own (VICTORY_TEXBACK_ASYNC). From trustno1-coder/VIctory-NVIDIA 2d1dc38 (Indy2l). - Card compare submitted on its own (D3D12 error 538). From trustno1-coder/VIctory-NVIDIA d1fe0bd (Jeremy Goldberg). - A slow pipeline is waited for in one frame only; compute pipelines start at creation. From edsuuu/VI-BR-PORT dc3fa30, b9d4f96. - Decoration bake programs found by name. From edsuuu/VI-BR-PORT 10ac68f. - Texture change lists compacted, not cleared, 2^18 ranges. From edsuuu/VI-BR-PORT 87dc307, 47fa23c (myokex). All GPL-3.0-or-later. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- Copy-engine fetches and barrier trimming on their own switches, no longer locked out with the 3.8 set by an old lost card (the relay waited 130 ms a frame for fetches queued behind the flights; 0 barriers trimmed) - Lazy copy-back on again once (one-time migration) - VICTORY_ASYNC_SUBMIT=1 + VICTORY_ASYNC_PRESENT=1: one frame ahead, as the console runs (Kelvaroq 0040/0048 by stellarr-studio) - VICTORY_CARD_HASH_WIDE=1 (fork Marvisak#1014 martindevbr, Kelvaroq 0041) - Relay fetch copies of neighbouring pieces joined (Kelvaroq 0032), VICTORY_RELAY_COPY_RUNS=0 goes back - Lost-card chain: wide hashes, one-frame-ahead, ..., trim, copy fetch last Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ong first line went over) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…brary saves, cool_fox stability fixes - Stand-ins on their own Try switch; VICTORY_STAND_IN_FIRST takes a same-shape stand-in before any wait (after Kelvaroq 0050); wait 250 ms - Library: store later (cool_fox 4a028f31, Esteban Viera), one save at a time on its own thread, every 300 s in the world (1.1 GB saves lined up with the 0.4-5.2 s frames of the 6.12 report) - Panicking pipeline builds refused (cool_fox 744c09ba, Filip Michalski) - alias_of holds the texture (cool_fox 94f35b7f, cccw) Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ests (face flicker), shader cache per build + disk tidy, card meter in every run Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft, opened so the Windows CI (
.github/workflows/ci.yml: clippy + tests on windows-latest) compiles this branch. The gpu crate can't be built in the agent sandbox.This branch now stands on fxceless/victory-gta6 (merge
54ba028, its history kept). Added on top:VIctory-report-20261124-232758.zip
VIctory-report-20261124-231948.zip
VICTORY_DUMP_FAILED;Do not merge yet.