Rendering#
The game renders through the Xbox 360's Direct3D 9 runtime, which is linked into default.xex, so the D3D code is part of the guest and shows up in these records with addresses. Most of what the game draws comes from command buffers (display lists) that the engine builds ahead of time, rewrites while the game runs, and chains into the ring once per EDRAM tile. Everything on this page was measured on the recompiled game, whose GPU stream is the one the console would have received.
A race frame is 2,900 to 7,400 draws. In order, the GPU fills shadow atlases and camera depth for a screen-space shadow mask, a few 2x MSAA targets, then the 4x MSAA main scene in three horizontal tiles, then a post chain of about 43 small renderings, and finally the HUD and the swap:
The renderer this project replaced the Xenos emulator with is described under Internals; this page is about what the game itself asks for.
Frame structure and views#
Average draws per frame range from about 50 at boot and 841 in the menus to 3,225 in free roam and 4,508 in a race. The same command buffers are replayed every frame, and the game's per-frame state goes into the segment that calls them.
| Address | Finding | Confidence |
|---|---|---|
| — | race frame structure A race frame issues 2,900-7,400 draws (typically about 4,500-5,100), about 20 clears and 60-95 resolves. By target, the 4x MSAA main scene takes about 61 % of the draws, a 1280-wide 1x depth-only pass 18 % and the 1040-pitch D24S8 depth pass 11 %; the rest are small passes. A race-start frame ran, in order: about 1,080 draws into a D24S8 depth target, 1,090 into a float-depth target, 200 into 2x MSAA color and depth targets, then 2,580 main-scene draws at 4x. The frame splits into about 265-300 runs of draws into one target, and about 4 % of race draws can write no depth, stencil or color.Established by Frame census, per-target draw counts, a RenderDoc capture of a race-start frame and executor counters on desktop and Android. | ConfirmedOctober 24, 2026 R05 census on multivac (Ryzen 7 5800X/RTX 4080, root 34e2f00c, SDK 102fe952): three moving-race samples of 360 frames and three free-roam drive samples of 600 frames each had exactly 121 safe no-color draws per frame. The existing no-attachment skip removed 120; the remaining one had depth NEVER with no depth/stencil write. Destination-only blending, alpha NEVER, unconditional stencil failure, empty extents and zero indices added none. Every memory export, active query and possible depth/stencil writer was excluded. The additional skip was rejected at the roughly 20-draw rarity gate; no timing saving was measured. |
| — | draws per frame by game mode Average draws per frame: boot 50, title and menus 841, free roam 3,225, event menus and car select 2,424, race 4,508, race pause 1,885, pause after a retire 3,569, return to title 99, movies 53, map 631, photo mode 1,226. Distinct shader pairs per mode range from 5 (movies) to 260 (photo mode). Heavy race starts reach 6,000-7,400 draws, a Carson race (Hot Hatch Hustle) about 7,400. Established by Metadata-only census of every draw, clear, copy and swap over 17,580 frames of scripted routes in 60-frame windows; later performance counters on race routes. | ConfirmedMode boundaries are approximate to the 60-frame window. |
| — | race frame workload Per race frame the title uploads about 20 MB of vertex data in 630 requests, 2.7 MB of index data and 2.5 MB of texture data. About 88 texture loads a frame come from earlier resolves (15.3 of 53 million fetches over a run, the 3.7 MB front buffer included). 98 % of render-target binds repeat the current one, and float constant uploads gather about 22 registers in 7 runs each. Established by Per-frame counters over | Confirmed |
| — | command stream repetition A race frame executes 680-1,740 indirect buffers carrying 0.96-1.85 million PM4 dwords, about 3.6 draws a buffer. 96-98 % of the buffers are byte-identical to the previous frame's at the same address (none changes in place; the rest are new addresses). 86-91 % of draws repeat their previous execution's register state, but only 4-15 % also repeat their float constants, because the camera globals change every frame. No two consecutive draws share enough state to be batched. Established by Decoder census hashing every indirect buffer and every draw's state; consecutive-run census. | Confirmed |
| — | shader constant sources About 700,000 constant dwords are written per race frame: about 90 % as register writes inside the command buffers (repeating with them) and about 10 % as one 16-dword LOAD_ALU_CONSTANT per draw (a 4x4 matrix, 3,300-6,000 a frame); inline SET_CONSTANT is never used. About 120 float registers (the frame globals) change at most four times a frame and about 200 carry the per-object changes. A draw carries about 17 register runs (167 float, 25 fetch and 35 other words), and the title often rewrites constants with unchanged values. SCRATCH_REG6 is written 2-4 times a draw and never written back.Established by Decoder counts in 600-frame windows; register-elision and entry census; | ConfirmedResolved by NN-0.10 (Odin race, 2026-10-13): about 5,130 LOAD_ALU_CONSTANT packets a frame load 83,570 dwords (about 16 each) from only about 290 distinct sources (address, type and size), and no load in the race found its source data changed since its previous load. The 16-dword loads are static shader tables referenced from the repeating command buffers, as "engine side of the display lists" says, not a new matrix per draw; the census that found new contents every frame is wrong. The per-object changes travel as register writes in the calling segments. |
| — | CPU-visible packets per frame Besides about 4,500 draws, a race frame's PM4 stream holds about 280 EVENT_WRITE_EXT (screen extents, constant), 25-30 EVENT_WRITE_SHD fences, 5 interrupts and one swap. With the guest vblank interrupt, guest callback code runs about 7 times per 8.33 ms frame.Established by Decoder packet census; critical-region contention counters. | Confirmed |
| — | primitive types Over all modes: triangle strips 16.9 million draws, triangle lists 3.5 million, quad lists 3.3 million, point lists 0.81 million and rectangle lists 0.44 million. No line, fan, polygon or tessellated draws occur. Quad lists appear only in 3D scenes (about 660 draw records in a race dump, 580 in free roam, none on the title or in photo mode), while rectangle lists appear in every frame (27-95). Established by Frame census over 17,580 frames plus 10,980 on later routes; census of the golden frame dumps. | Confirmed |
| — | front buffer and HUD Every swap presents a 1280x720 2_10_10_10_AS_16_16_16_16 front buffer (tiled, little-endian 2_10_10_10 words with red in the high bits); VdSwap accepts 8888 or 2_10_10_10_AS_16 front buffers. The tone map writes the front buffer as 2_10_10_10, then the HUD is drawn last into it through its 2_10_10_10_AS_10_10_10_10 view, with the viewport transform on.Established by Census of swaps, frame dumps and a one-frame draw log ( | Confirmed |
| — | render size ignores the video mode The title renders its 1280x720 16:9 scene, HUD and front buffer whatever video mode the system reports. With VdQueryVideoMode reporting 640x480, not widescreen and not high definition, a race drew and presented exactly as at 720p. The guest calls VdQueryVideoMode (four sites) and VdGetCurrentDisplayInformation (three), but not to size its render targets, so the video mode is no way to make it render smaller.Established by Experiment, 2026-10-31: | Probable |
| — | occlusion queries only while loading The game's occlusion queries use EVENT_WRITE_ZPD: 1,056 events over 48 report addresses, all in two windows, the title-to-free-roam load and the event menus. Race, free roam, map, pause, photo and movie frames issue none in those censuses; the measured gameplay windows add no draws inside a legacy query. The race frame has 24 indirect point draws that write nothing, possibly query probes. At startup one query is ended in a later command buffer than the one it began in.Established by Frame census; an Android counter of query ends (0 in the race); a Vulkan validation message at startup. In an October 18, 2026 exploratory two-minute night run on the Odin 2 Portal (0.5.1 v4, SDK 71e09d4), the cumulative | ConfirmedThat the point draws are query probes is a guess. The night free-roam frame's single-point draws (vertex shader B6C9863F710683EC) only output a constant position and write nothing, with no query around them. Viz queries are not used either: see "light glows have no visibility test". |
| — | no memory export No draw uses memexport in any censused mode: boot, menus, free roam, races, pause, map, photo mode, movies, rewind and the Autoshow. Established by Per-draw census flag over every route, on both renderers. | Confirmed NegativeNight, weather, the livery editor and multiplayer screens were not censused. A Pixel 7 Pro (Mali-G710, no vertexPipelineStoresAndAtomics) logged no vertex shader with memory export when the SDK skips them (vulkan_require_vertex_pipeline_stores_and_atomics=false), which is why that opt-in runs FH1. |
| — | scaled texture binding ownership A texture's fetch constants do not identify its current memory owner. Above 1x, a resolve selects the scaled buffer while a CPU write can return the same allocation to ordinary shared memory. Retaining an outdated texture pointer in the binding memo bypassed that selection even when the fetch constants were unchanged. Outdated entries now select their host texture again; unrelated textures retain their contents. Established by Shared cache source analysis and a backend-independent unit regression exercising CPU-to-resolve-to-CPU transitions, an inactive binding, and an unrelated texture. The fixture uses synthetic allocations, not guest function addresses. | ConfirmedThis establishes a related renderer defect at scaled resolutions. The complete sequence is qualified separately at 1x and 2x with the compressed ownership correction; this memo correction alone did not remove the bad signs. |
| — | livery editor single-channel resolves Opening Add Decals in Design Creator issues RGBA8-to-8-bit unorm resolves (color format 0, destination texture format 2), both single-sampled with sample 0 and 4x MSAA with samples 0123. The native resolve planner originally rejected this destination as unsupported. The format is a byte per texel, so storing a 32-bit word per pixel would overwrite neighbouring texture data. Established by Scripted Paint Shop route on multivac, Windows Vulkan at 2x, from a private stock-MX5 save. Runtime warnings identify c0->t2/1x/s0 and c0->t2/4x/s6 with RB_COPY_DEST_INFO 0x01000100; captures identify the Add Decals screen. | ConfirmedThe trace establishes the unsupported operation; it does not by itself establish the cause of the reported world corruption after saving. |
| — | livery-induced world corruption reproduction Before the complete-ownership check for compressed textures, a stock MX5 with three saved white vinyl layers reproduces the reported world corruption. Reloading the private painted-car save starts with intact festival textures; entering Design Creator and returning makes barrier advertisements show coloured noise and can turn road surfaces black. Travelling to Race Central retains the damaged signs. Correcting scaled binding memo selection and supporting the editor's R8 resolves alone do not eliminate this reproduction. Established by Scripted private-seed A/B on multivac (RTX 4080, Windows Vulkan, 2x). Both the old binding memo with R8 support and the corrected memo show the corrupt signs after painted-car editor re-entry; captures show the white three-layer design saved on the car. | Confirmed |
| — | compressed texture source ownership A compressed texture must have complete scaled-resolve ownership across every stored base and mip range before the whole fetch can use the scaled buffer. The old any-page check retained scaled DXT1 views after CPU asset data reused an old resolve allocation. Two 768x256 sampled identities remained scaled at payload generations 1 and 2; the complete-ownership check keeps them ordinary and restores the corrupted festival signs and road. Fully resolved compressed textures remain eligible, and uncompressed render targets retain partial-resolve handling. Established by Private painted-MX5 re-entry A/B on multivac (RTX 4080, Windows Vulkan, 2x), texture allocation/payload identities and CPU/GPU invalidation ranges. A synthetic 768x256 DXT1 regression fails three of 27 assertions with the old selection and passes all 27 after the correction, including both mixed base/mip ownership directions. | ConfirmedThe recorded texture bases are transient allocations, not static guest symbols. Disabling draw reuse, selective binding reset, partial row/layer reloads, direct resolve writes or one-off readbacks did not remove the bad signs; disabling readbacks also damaged the car. Negative result (2026-10-19): the livery path does not make partly resolved compressed targets, so the rule does not send a GPU-made livery to stale memory. Over a v4 Paint Shop edit, save and Design Creator re-entry at 2x, every compressed texture the rule rejected had a CPU-owned base with leftover resolve pages only in its mips, apart from one transient 8x8 DXT5 during a world reload that did not recur; the livery and world matched 1x. |
| — | FMV YUV draw and composite Movies play as a YUV draw (vertex shader 7156CE05, pixel 31511D87, three 8-bit planes) followed by a composite pass (20A41D46/5F479FC4). When FMV_04 loops, the title skips the YUV draw for about 35 output frames (0.8 s) while the composite still draws, which shows solid green (0, 77, 0): YUV planes of zero convert to green. The title loop with its movie removed shows black.Established by Per-frame census during story movies played from a linked mirror of the game files; same result at 30 fps. | ConfirmedShader keys are our translator's hashes. |
0x823E22F4sub_823E22C8sub_823EAED0v40x8241228C | viewport aspect and culling frustum sub_823E22C8 returns a viewport's width / height in f1 (width at +8, height at +12). sub_823EAED0 builds the culling frustum from it and the camera's field of view, and the projection uses the same value. The main view is 1280x720; render-to-texture views (car thumbnails, reflections) have their own aspect. Scaling the main view's aspect at the return widens rendering and culling together (Hor+).Established by Mid-function hook at the return logging callers, then scaling the value; checked in a 2560x1080 window and on | Confirmed |
0x829A48F40x8263AE18sub_829A4860sub_8263AB90v40x82A58E340x826E30A8sub_82A58DA0sub_826E2E20 | gameplay and pause-map projections The gameplay camera view is projected from sub_829A4860 (its aspect call returns to 0x829A48F4). The pause map projects through the same main view from sub_8263AB90 (return 0x8263AE18), and once opened in free roam the map's view keeps running. The map image, title, menus, Autoshow and loading frames are the title's own 16:9 layers.Established by Return addresses seen at the viewport-aspect hook; widened frames showed clamped texture beside the map. | Confirmed |
0x8284EF94sub_8284EF90v40x828FF264 | camera vertical field of view sub_8284EF90 returns a camera's vertical field of view in radians, read from the camera at +304, to the frustum and projection code, for every camera. The default comes from data (CameraSettings.ini in camera.zip, for example 48.5 degrees for the low chase camera).Established by Mid-function hook at the return scaling f1 live (90 to 130 %). | ConfirmedThe v4 address is the hook site at the return. |
| — | scene world-view-projection constants Scene vertex shaders read the object's world-view-projection matrix from vertex float constants c128-c131, one row each for clip x, y, z and w (clip = matrix times position). The static world shares one matrix: the largest group of equal matrices in a free-roam frame is 600-660 draws. Because the world matrix of static geometry does not change, the previous frame's matrix times the inverse of the current one is the camera's own reprojection; over six static groups it agreed within 6e-4 while driving. Each predicated tile replays the same draws with the same matrices. The lens follows from the matrix: the y row's length is 1 / tan(fov_y / 2), 48.5 degrees for the low chase camera (the CameraSettings.ini value), and the z and w rows give the near plane 0.3 and the far plane about 19,960-20,000.Established by Probe build logging the constants of every depth-tested draw, group census across frames, and the UP-1.4 motion vectors built from it, which keep the static world sharp under FSR 3. | Confirmed |
| — | car world-view-projection constants Car draws (body, wheels, lights, interior: about 520 draws from 60-odd vertex shaders a frame on the free-roam drive) do not read the camera's c128-c131; they read their own world-view-projection from vertex float constants c0-c3, in the same row layout (clip = matrix times position) and without the projection jitter. They test and write the scene's D24FS8 depth but draw into a colour target other than the world's, with alpha blending (RB_BLENDCONTROL0 0x00000706), so a filter on the scene colour target or on opaque blending misses every car. A mesh's four wheels share one vertex shader and vertex buffer, told apart only by their order among that mesh's draws, which is the same every frame. Static props drawn with c0-c3 reproject like the camera within 1/4096 of clip space.Established by Probe build logging each depth-tested draw's targets, blend state and constant bitmap for one frame, then UP-1.7 object motion from these matrices: in the motion view the player's car comes out still in the chase camera and other cars move on their own, and FSR 3 keeps their edges clean. | Confirmed |
| — | camera position constants Alongside the matrix, scene vertex constant c158 holds the camera's world position, c11 a position near the player car, and c132.x 20000, the far plane.Established by Probe build comparing the constants with the camera motion over a drive. | Probable |
| — | scene turned 180 degrees with reversed depth The main scene is drawn turned 180 degrees: its clip x and y are the screen's negated, so a screen pixel's scene depth is at the opposite pixel of the 1280x720 surface, and a later pass turns the picture back. Its stored depth is reversed (1 near, 0 at the far plane), but the matrix's clip z is the usual D3D depth; the reversal is 1 minus it, so it comes from the depth range, not the projection. The scene depth is the 1280-pitch D24FS8 area at EDRAM base 0x400, one 256-row band per predicated tile.Established by Copying each tile's depth band at its resolve and comparing it with the frame: it matches only turned 180 degrees. Motion vectors from the matrices are right only with the clip x and y negated and z = 1 - stored depth. | ConfirmedThe register setting that reverses the depth range was not looked up; "comes from the depth range" is inferred from the matrix. |
| — | GPU registers the title reads Through the register read path (GraphicsSystem::ReadRegister, which the guest reaches by MMIO loads) a full race reads exactly two registers: CP_PROG_COUNTER (0x044B) and D1MODE_VBLANK_VLINE_STATUS (0x1951, the vblank status its interrupt handler polls). It never reads D1MODE_V_COUNTER (0x194C), so a free-running vertical counter (xenia-edge 9d93773228) would change nothing for FH1, and it is not the lead for #381.Established by | Confirmed Negative |
sub_8244F280sub_82444E60sub_82439B70sub_82447490v4sub_8247E940 | where the render thread's scene submission goes On the Deck in a race, 96 % of the render thread's guest work is under the deferred-command drain sub_82450160, and there in two presentation-view passes: CPresentationView slot 11 (sub_8244F280, 56 %; mostly sub_823F3CF8 and sub_823ECFB0, with the free-roam scene walk sub_82DC1CB0 > sub_82D65608 among them) and slot 13 (sub_82444E60, 42 %; the world view, with CTrackPresentation slot 75 sub_82439B70 at 23 % of the thread). Car presentation (CCarPresentation slot 106, sub_82447490) is 9 % and procedural models 6 %. The render thread is about 8 ms of CPU a frame on the Deck.Established by Deck call graph of the sustained race (see "guest CPU by subsystem in a sustained race" on the threads page), class names from RTTI vtables. | Probablesub_82444E60 has no v4 mapping from tools/map-fh1-v4-addresses.py. |
sub_824400B0sub_82441488sub_82DDD040sub_8243FD70sub_82441048sub_824412D0sub_82449068sub_82440C10sub_8243FF70sub_824413A8sub_8243FDD0sub_8243FA200x834ABB080x832B8ADCv4sub_824701B8sub_82471590sub_82E9F6100x835A14880x833A45CC | per-draw pass culling For each mesh of a model part that the scene walk submits (sub_82440CF8), sub_824400B0(renderer, item, pass list) decides which passes draw it and returns whether any did. Pass ids: shadow cascades 0-5, light passes 6-8, views 9-14, 15 and up, and 24 the light-shadow pass. Per pass it combines the item's flags, its bounding sphere (sub_8243FD70), a six-plane frustum test of its box (sub_82441048: 0 outside, 1 inside, 2 crossing), the pass's extra planes (sub_824412D0), a containment test (sub_82449068), a distance level-of-detail choice (sub_82440C10, from the distance to the item's oriented box, sub_8243FF70), the cascade mask (sub_824413A8, the cascade count at 0x832B8ADC) and a view test (sub_8243FDD0); view 9 selects a light probe through sub_8243FA20. A drawn item gets a 20-byte record {object, 0, 0.0, value, 0} pushed by sub_82441488 onto one or more of the pass's five buckets (begin, end, capacity vectors at [renderer+13844] + (pass × 5 + bucket) × 16). For the light-shadow pass sub_82DDD040 widens each cascade's depth range by the box's corners. View settings are read through the holder at 0x834ABB08. On the Deck it is about 10 % of the render thread, most of it the translated code's own overhead.Established by Field accesses and call sequences in the generated code; a native version (src/guest_native/scene_cull.cpp) that plans the pushes and depth ranges and is compared with the original's recorded pushes and range calls on every call ( | ConfirmedFR-3b probes (Deck race, 2026-11-15): in a free-roam race only passes 0-5, 6, 9, 11 and 24 receive items, and 6, 9, 11 and 24 receive the same number (about 4 million per run against about 170 thousand per cascade). Dropping every item of pass 9 removes the terrain from the main view (grey ground, bare hills), and dropping all four view passes together still leaves trees, props and cars. Shadow items go only to passes 0-5 and other items only to passes above 5, so the cascades do not keep main-view meshes. Trees and props come through the procedural-model culling (sub_8243EE58), which the mask does not touch (pinyon_shift_debug_skip_world=2 removes 640-860 draws a frame). Why the cars stay is open; calls the native culling hands back to the original run unmasked. Returning 0 for every item (pinyon_shift_debug_skip_world=4) removes 700-1,260 draws a frame. In-run A/Bs: dropping pass 9 saved 0.59 ± 0.47 ms of frame (GPU 0.62 ± 0.55 ms, 238 draws); dropping all view passes saved 0.71 ± 0.41 ms (GPU 0.93 ± 0.49 ms, 374 draws). Projecting the item's box (min at item+32, max at item+44) with the frame's world-view-projection from c128-c131 needs no axis flip: 86 % of frustum-passing items then land on screen, against 43 % with z negated. |
| — | who loads the draw-bucket base (+13844) The renderer's per-pass bucket headers sit at [renderer+13844] (see "per-draw pass culling"). On that object only the pass culling sub_824400B0, the procedural culling sub_8243EE58, the walk sub_82440CF8 and the free-roam walk parent sub_82D65608 load it; the last passes it with [renderer+12228] to sub_82D5C9D0, a short per-frame refresh of the lists (both on the world page, "scene draw on the render thread"). The other generated loads of +13844 (sub_82461978 and the draw entries sub_823FA0A8 and sub_824610C0) are D3D device code, where +13844 is a device field copied into the write pointer at +48. None drains the buckets, so their readers take the base from a register or a copy. The bucket headers live in a virtual heap (0x4275DDB8 in a Deck race), which the SDK's guest access watch, physical heaps only, can't observe.Established by A search of the generated code for loads at +13844 and the guest instructions around each; a probe that wrapped the walk and tried to arm the access watch on the bucket pages (removed). | ProbableNegative result: neither a static search for +13844 nor a page watch finds the bucket readers. |
sub_8243EE58sub_824414E8sub_8243EE18sub_82B52C18sub_8243F328sub_82448BA0sub_82448C20sub_8243F9A0sub_8243EB10v4sub_8246EF60sub_824715F0sub_8246EF20sub_82EEC158sub_8246F430 | procedural model culling The procedural models cull their instances per pass in sub_8243EE58(models, pass point, …): for each instance it resolves the model (sub_8243F328, fast path through the reference's +8), tests its box or sphere against the pass (sub_82448BA0, sub_82448C20, sub_8243F9A0), checks the distance range (sub_8243EB10), and for a visible one pushes a record {0, reference, 0.0, value, flag << 24} with sub_824414E8 and marks the pass in the model (sub_8243EE18: a byte at +76 + pass, +54 set, a count at +108). A virtual call at slot +48 receives the pass point and slot +20 gives the bucket mask; sub_82B52C18 stores the selected probe at model+60. Bounds can be null, so the box is read only when a test needs it. It runs on the render thread and on other threads. On the Deck it is about 6 % of the render thread.Established by Field accesses and call sequences in the generated code; a native version (src/guest_native/scene_cull.cpp) compared with the original's recorded pushes, marks, ranges and probe stores on every call of a desktop race (2026-11-13): 15,683,301 calls, no difference, native 1.47 s against 5.23 s. On the v4 build ( | ConfirmedWith this and the pass culling native (pinyon_shift_native_scene_cull), the Deck LCD render thread used 0.64 ± 0.37 and 0.35 ± 0.31 ms less a frame in two in-run A/B races of 8,300 frames (every 240 frames from frame 4,600), against an A/A run of +0.18 ± 0.34 ms; process CPU did not resolve. It is the Linux desktop default. |
Render targets and EDRAM#
The 10 MB of EDRAM never holds a full 1280x720 4x MSAA frame, so the main scene is drawn in three predicated tiles of up to 256 rows, each replaying the same command buffers with a different bin select. Surfaces never use more than one colour target.
The depth at base tile 0, pitch 16, has both a 1280x720 single-sample view and a 640x360 four-sample view. The four samples of one pixel in the smaller view occupy four pixels in the larger view: both address the same 720 tiles. Reinterpreting those words does not establish that drawing at a different pixel rate is equivalent. The color-writing draw using this depth reads an interpolator, and the four alias draws in the current race trace do not use an ordered depth comparison. The depth-alias research separates those observed states from the earlier transparency hypothesis.
The main-scene sky already follows depth-writing geometry in each tile. It tests the populated scene depth, writes stencil, and is followed immediately by blended stars, then sun and cloud layers. Moving it later therefore does not have the simple image-preservation argument of an opaque sky drawn over empty depth. The sky-order study records the shader identities and measured ordering.
The tiling comes from a small static table of scenarios (4x in three bands, 2x in two, one tile at 1x, a reduced one-tile Small2xMSAA, split screen), picked by name from the render settings. The full-screen textures the frame renders into are another static table, mostly sized as a divisor of the 1280x720 screen. Changing both at launch renders the frame at a smaller size. A one-tile scenario at any size loses the road and terrain, because the static world's command lists are recorded for the 720p three-band tiling: each replay sets its band's 720p window offset and scissor itself. Keeping the three bands, scaling their rows and rewriting those window values in the GPU decoder (pinyon_shift_fh1_scene_size, the SCENE RESOLUTION setting) draws the whole world at 960x540; on the UHD 620 the frame takes 15.6 % less GPU time than tiled 720p. Its exposure and sun glare still differ from 720p, because a small luminance pass keeps the 720p size. The measurements are on the Lessons page.
| Address | Finding | Confidence |
|---|---|---|
| — | render surface configurations The game uses 29 EDRAM surface configurations across its modes, 11 more in the Autoshow, showroom and thumbnail studio. A surface never has more than one color target: multiple render targets never occur. The main scene is 1280-pitch 4x MSAA 2_10_10_10_FLOAT (7e3) or its _AS_16_16_16_16 alias over D24FS8 depth. Other formats are 2_10_10_10, 8_8_8_8, 8_8_8_8_GAMMA, 32_FLOAT and 16_16_16_16 (photo mode), at pitches from 80 to 1280 and 1x, 2x and 4x MSAA. The 1280 and 1040 depth-only 1x surfaces and the 1040-pitch D24S8 surface are the shadow phases.Established by Census of surface registers (pitch, MSAA, color and depth format) over all routes; executor surface counters. | Confirmed |
| — | main scene predicated tiling The 720-row main scene is drawn in three D3D predicated tiles (EDRAM bands): rows 0-256, 256-512 and 512-720, with bin selects 3, C and 30, replaying the same command buffers for each tile. Objects carry bin masks (8, A, 28 and others) and their own predicated sub-buffers; packets predicated on a whole tile's mask set that tile's window offset, scissor and resolve destination. Each band reuses one 1280x512 4x color and depth area. Sky, race line, particles and a depth-tested view strip interleave between the scene lists in every band.Established by Census and per-draw logs of bin mask and select, window offset and resolve registers; a host merge of the tiles reproduced drive, race, map and photo captures without seams. | Confirmed |
embedded shader containers: sky 0x82155780stars 0x82157518sun 0x82157388cloud cover 0x82156BA8lit clouds 0x821564E0; sky VS 12BA4E86B158D049 / PS CAE25D74AD7B16CB | main-scene sky already tests populated depth The gradient/haze sky is a 9,300-index draw after scene depth writers in each predicated band, not a first draw over empty depth. In one recorded 5,210-draw Odin race frame, sky indices 2127/3973/4832 follow 422/1757/585 depth-writing draws in their contiguous band runs, all using the sky's scene depth. State 087087E3 enables GREATER_EQUAL depth testing, disables depth writes, and enables front/back stencil ALWAYS with REPLACE on depth pass; 00FFFF00 supplies reference zero and full stencil masks. The gradient is opaque (blend 00010001), but its immediate successor is the alpha-blended stars shader 4D035A14CD31FC2D (StarPowers, image +0x157518). The sun CF453BD52292E8E8 (SunMap/SunColour, +0x157388), cloud-cover 90CAB86BE8159DA8 (+0x156BA8) and lit-cloud FD9976C9E5DB9BB0 (+0x1564E0) layers also blend against the background. Deferral to the first blend boundary crosses zero draws. No deferral cvar is justified by this frame. Established by Embedded shader constant names (TopColour, BottomColour, HazeColour, StarPowers, SunMap and cloud controls), matched to the disc corpus by microcode hash; container addresses from corpus image offsets plus the PE header's 0x82000000 base. Offline register/bin-predication inspection of the Odin race frame, checked against all 5,210 entries of its independent retained draw log. | Confirmed NegativeBounded ordering/state evidence; not a fragment-invocation count, GPU timing A/B or day/dusk image-equivalence result. The sun shader also occurs in reflection passes; shader identity alone is insufficient for reordering. No v4 mapping was tested. |
| — | per-band culling The game culls per tile. In one census race window the three bands issued 17,401, 30,145 and 44,864 draws with 35, 36 and 54 shader pairs, only 30 in common. Running the bands once into a full surface cannot reproduce the frame, and replaying every band's list unclipped redraws objects that span bands. Established by Census of the race window at frames 4801-4860; a band-merge experiment, not kept. | Confirmed Negative |
| — | NonTiling scenario drops the static world Selecting the game's own NonTiling value for the TilingScenario render setting makes the static world disappear. Only the tiled path draws the full scene.Established by Hook on the tiling-scenario load selecting NonTiling; captures on Vulkan and D3D12. | Confirmed NegativeNot the end of the question (2026-11-12). Another FH1 port reports that the missing world's command lists are recorded only for the three-tile pass, and that replaying them in the one-tile pass, with their tiling window, scissor and target packets dropped, restores it. Partly confirmed here (2026-11-12, "one-tile scenes run at a smaller size, without the static world"): any one-tile record drops it. With the three bands kept and scaled, the lists do draw once their window offset and scissor are rewritten ("the static world's lists carry the 720p bands' window", #1070). Our host single pass (fh1_untile_predicated_tiling) already skips the later tiles' draws at decode, so a game-side single pass would add only the decode of those tiles (NN-2.2 bounded it at 0.36 ms) and the title's recording of them; see the Lessons page for the desktop measurement. |
0x832A4860 (table)sub_82472758sub_823EF560sub_82C3EFE0sub_82456C88sub_823E9B38sub_82C3EFF8sub_82C3F028v40x833901F8 (table) | tiling scenario table The scene's tiling modes are five static records, 1,232 bytes apart from 0x832A4860: a vtable, the screen width and height, the MSAA mode (0 1x, 1 2x, 2 4x), the tile count, two words, a zero, then one {left, top, right, bottom} rectangle a tile. In order they are 4xMSAA (1280x720, three 1280-wide bands of 256, 256 and 208 rows; the race), 2xMSAA (two bands, 0-512 and 512-720), NonTiling (1x, one 1280x720 tile), Small2xMSAA (2x, one 1120x584 tile on a 1280x720 screen) and SplitScreen_NonTiling2xMSAA (one 1280x368 tile). The TilingScenario render setting picks one by name (strings from 0x8223BC68). Small functions read the fields: width sub_82472758, height sub_823EF560, MSAA sub_82C3EFE0, tile count sub_82456C88, the rectangles sub_823E9B38, and one tile's width and height sub_82C3EFF8 and sub_82C3F028. The renderer keeps the current record at +9272 and seven render-target sets of 264 bytes per scenario (sub_824676A0).Established by Static reads of the records and their accessors; rewriting records at launch ( | ConfirmedThe v4 table was found by the same record contents in the patched image (2026-11-12); its accessors are not mapped. The scene-size setting finds the record by its contents on both versions. |
0x832295B0 (table)sub_8257C2200x8257C39Csub_82A40F28sub_82A410E8v40x8330C830 (table)0x825F227C | screen texture table The full-screen render textures (FrontBuffer_0 and _1, WorldRender, ScratchBuffer, ShadowMask, WorldDepth, Bloom, MapRender and many Shared entries) come from a static table of 41 entries of 44 bytes at 0x832295B0. An entry holds a flag byte (set: the size is a divisor of the screen), width and height (or the divisors), the format at +0x14, a parent index at +0x1C (0x29 when the entry owns its memory, otherwise the entry it aliases), a placed-at-the-end flag at +0x20 and the name at +0x28. sub_8257C220 copies the table into 52-byte renderer slots from renderer+416, writes the 1280x720 screen size to renderer+408 and +412, sizes relative entries as (screen / divisor + 31) & ~31 (a divisor of 1 takes the screen size unrounded), and builds each D3D texture header at the slot's +2132 with sub_82A40F28 (sub_82A410E8 for cube maps); both paths rejoin at 0x8257C39C. Entries 24 and 25 alias the front buffers; entry 40 is the map.Established by Static reads of the table and builder; a hook at | Confirmedv4: the hook site was mapped by tools/port-fh1-v4-analysis.py; the builder's instructions from its entry to 48 past the hook match the base ones except the table address, one renderer flag byte (+0xDDD becomes +0xDE1) and one data address, and the table's 41 entries are identical apart from pointers, so the slot offsets the hook uses (+440, 52 bytes, +2108) hold on v4 (2026-11-12, image comparison). |
sub_82444E600x8244503C | one-tile scenes run at a smaller size, without the static world The game's one-tile path renders the whole frame, HUD included, at the tile's size: the world view (sub_82444E60) clamps its viewport, a copy of view+424 ({x, y, width, height, min z, max z} as integers), to the tile's width and height only when the scenario has one tile. Pointing the 4xMSAA, 2xMSAA and NonTiling records at one 960x540 tile, and shrinking the size in every relative screen texture's header (front buffers included, memory and pitch kept at 720p), gives a clean 960x540 front buffer that the presenter scales to the window, with no resolve errors. As with NonTiling, the road, rails, terrain and start gantry are missing, so the static world is drawn only by the tiled path. Keeping three tiles with the bands scaled to 960x540 draws no world at all until the static world's lists have their 720p window registers rewritten (next record).Established by Race captures with the records rewritten at launch and a hook on the screen texture headers ( | Confirmed NegativeSmall2xMSAA is the console's own reduced mode: the 360's video scaler upscaled its front buffer. On the UHD 620 at equal draws the 960x540 frame costs 16-19 % less GPU time than the same mode at 1280x720 (Lessons page). pinyon_shift_fh1_scene_size now scales the three bands instead (#1070). |
| — | the static world's lists carry the 720p bands' window The command lists that draw the static world (road, terrain, rails, start gantry) are recorded once for the 720p bands and replayed in each tile. Each replay sets the band's own window offset (PA_SC_WINDOW_OFFSET, rows -256 and -512) and window scissor (rows 0-256, 256-512 and 512-720, 1280 wide) inside the list, while the viewport comes from the frame (it scales with the scene). With the 4xMSAA, 2xMSAA and NonTiling records' bands scaled to 960x540, the game's per-frame draws take the scaled bands (-192 and -384; rows 192, 384 and 540, 960 wide) but these lists keep the 720p values, so their draws fall outside the smaller tiles and the world disappears. Rewriting exactly those 720p values to the scaled bands as the GPU decoder reads them (only while a surface of the scene's pitch is bound: the 256 and 512 rows also occur in 512x512 and 1024x1024 targets) restores the world at 960x540. About 1,000 of 4,100 draws a race frame come from such lists.Established by A one-frame log of every draw's target, window and viewport registers and its indirect buffer (decoder), 720p against 960x540; then the rewrite in the decoder ( | ConfirmedThe frame at 960x540 then matches 720p in geometry, but its exposure and glare differ (darker, no sun glare): the small luminance chain resolves 160x96, 64x32 and 32x32 at 720p and 128x80 and 32x32 at 960x540, so one of its passes still assumes the 720p size (see "passes with a fixed 1280x720 size"). With the host's single-pass scene (fh1_untile_predicated_tiling, the Android and Mac default) the 960x540 race keeps the 720p exposure and only its sun glare is a little stronger (desktop race captures, 2026-11-12). UHD 620: 15.6 % less GPU time than tiled 720p (Lessons page). |
sub_823F5A00sub_82DDDEE0sub_823E5628sub_82586170sub_82589B50sub_8259D670sub_824532F0 | passes with a fixed 1280x720 size sub_823F5A00 builds a viewport {x, y, width, height, min z, max z}; the pass functions sub_82586170, sub_82589B50 and sub_8259D670, and the frame function sub_824532F0 (shadow mask), call it with 1280x720 written in the code, and sub_824532F0 also passes 1280x720 to sub_82DDDEE0, which writes 1/width and 1/height into a constant block. sub_823E5628 builds a full-screen quad from a source rectangle (r4), the source texture's width and height (r5, r6) and a flag, with texture coordinates rectangle / size, and caches the result by all of them.Established by Static reads; a hook at the entry of | ProbableOnly sub_823E5628 was hooked. In the one-tile 960x540 experiment no call passed a rectangle larger than its source, and the 960x540 race captures showed no misplaced pass; the fixed sizes were not tested further. |
| — | EDRAM aliasing Several surfaces share EDRAM. The 1280x720 1x depth-stencil at EDRAM base 0 (pitch 16 tiles) is reused as a 640x360 4x MSAA depth, a layout with the same sample addresses, and the frame switches between the two layouts 4-5 times. A race census at SDK 102fe952 on the RTX 4080 (2026-10-24, 1x and 3x, MSAA off and 4x) finds five 720-tile transfers with stencil in all four cases: 32,400 tile passes. The base-0 4x depth has three depth-only draws and one color-writing draw with the 4x color surface at tile 720, pitch 16; that color draw disables the depth test and enables stencil. A shared-depth experiment must handle the color attachment as well as the depth-only draws. Shader discovery shows that the color draw reads pixel-shader interpolator 0; changing its fragment rate alone does not establish equivalent inputs. These four draws do not establish an ordered depth comparison for quarter-resolution transparencies. Color formats 3 and 12 (0x00030000/0x000C0000) alias one base, and isolating either removes complementary content. Other pairs: 2x and 4x depth at base 128, base 128 4x with base 1024 4x, and color at tile 720 reused as depth at base 128 (2x) and base 0 (4x). The earlier census counted claims over all 720 tiles in nearly every binding (11,400 of 11,540), which does not establish a depth write. In the current four-draw trace, one draw enables ALWAYS depth writes, one uses NEVER without depth writes, and two disable depth; the color draw enables stencil. The three stencil-enabled alias draws compare ALWAYS and replace all front-face stencil bits with zero (read mask 0, write mask FF, reference 0); the NEVER depth draw disables stencil.Established by Frame census, executor transfer census and a one-frame operation log; isolation experiments in the race pilot. | Confirmed |
| — | stencil use per depth surface Both scene depth surfaces (D24FS8 at tile 1024, 4x, pitch 1280, and at tile 0, 1x) enable stencil on nearly every draw and write nonzero stencil in every race window, with REPLACE and per-object references such as 0x15, 0x18 and 0x03 under write mask 0xFF; color-to-depth transfers make all eight bits possible. The D24S8 surface at tile 720 (pitch 1040) and the 2x D24FS8 at tile 128 (pitch 320) never write nonzero stencil. The car's rear overlay is stencil-rejected, and a stencil-only draw on the 4x depth runs with clipping off and the D3D9 default 8192 scissor.Established by Stencil census over 10 race windows ( | Confirmed |
vertex shader 1E6883FCCDE1F688 | depth-only rectangle clear The game clears depth with a non-indexed rectangle-list draw of one vertex program and no pixel program, writing depth only. Its main target is a 4x D24S8 view (base tile 720, pitch 13 tiles) of the 1x D24S8 shadow-phase surface, cleared four times a frame.Established by Draw hook at the GPU boundary with register and vertex inspection; a full-frame audit of the target. A shader pack missing this shader showed green glow on car reflections. | ConfirmedThe CPU routine that emits these packets was not identified. The shader key is our translator's hash. |
| — | night and race depth clear reused as color In night and race frames the game clears a 640x1024 4x D24S8 area at EDRAM tile 720 to depth 1.0 and stencil FF with a full-screen, depth-only rectangle list drawn without clipping, then binds the same EDRAM range as an 8_8_8_8 color target. The emulated EDRAM carries the bits over, so the color area starts as FFFFFFFF, and the bloom input reads it. When the clear covers only part of the area (Intel's Direct3D 11 driver with an 8192-pixel viewport), the rest reads 0 and bloom saturates the frame.Established by Per-draw readback of the depth surface on the UHD 620 and the RTX 4080 under Direct3D 11, then the resolve that first differed; standalone driver tests. | ConfirmedOnly the night replay and the race route were bisected. |
Resolves#
A resolve copies EDRAM to a texture in main memory. The game does about 60 to 92 a frame, of 20 kinds. One of them, a 32x32 float resolve of the scene's luminance, drives auto exposure: when the memory under it was stale, the whole screen was overexposed (#444).
| Address | Finding | Confidence |
|---|---|---|
| — | resolve kinds The game uses 20 kinds of resolve (EDRAM copy), 10 more in the Autoshow and thumbnail routes. Scene color resolves average all four samples (sample mode 6) into 2_10_10_10 UNORM with exponent bias -2 (RB_COPY_DEST_INFO=0x003E0382). 1x float resolves to small sizes (128x128 down to 32x16, the bloom and luminance levels) and 2x float resolves to 256x256 use bias -4. No resolve writes a block-compressed format. A frame has about 60 to 92 resolves; a race route touches about 117 distinct resolved ranges and the car purchase 154. Some post-chain addresses are sampled under several formats, and 1280x720 resolve targets are fetched both with and without packed mips.Established by Census of copy registers; frame dumps; tracing of resolved ranges; texture reload probe. | Confirmed |
guest phys 0x1C4E1000484626432 (0x1CE2D000)497831936 (0x1DAC5000) | scene color and depth resolve destinations The 1280x720 2_10_10_10 scene texture at physical 0x1C4E1000 is resolved in each of the three tile bands and sampled between them, so it changes about five times a frame. In one census frame the first full-size color resolve had 1,274 later texture bindings and the depth resolve 15. Also resolved every frame: two 1280x720 8_8_8_8 targets and a 640x360 one, three 1024x1024 24_8 shadow depths, the 1280x720 24_8_FLOAT depth, and the small bloom and luminance levels.Established by Census of resolve-sourced texture reloads at 3x; census of later bindings per resolve. | ConfirmedAddresses seen on one seed; the heap layout may differ elsewhere. |
| — | depth resolves as textures Depth resolves write the packed 24-bit depth and 8-bit stencil words into an 8_8_8_8 destination, which later draws fetch as 24_8, 24_8_FLOAT or 8_8_8_8; one depth resolve is sampled both as a depth texture and as 8888 texels. The per-tile updates of the main scene are depth resolves, while the final full-frame copy is color. The textures that come from resolves are the depth-as-color shadow maps, the reflection cube and the post chain.Established by Census joining fetch base addresses to earlier resolve destinations; texture reload probe. | Confirmed |
guest phys `1FCA6000`4 KB | scene luminance resolve A 32x32 k_32_FLOAT resolve from a 1x k_32_FLOAT color target, resolved every frame in free roam, that drives auto exposure. The game reads it at guest size. A contributor's M1 Max trace also found a guest CPU read at 1FCA6010, with link register 830A4880. Keeping the GPU copy valid and copying it to CPU guest memory are separate requirements.Established by Bisecting resolves at 2x on the | ConfirmedConfirmed that it drives exposure; that it is a luminance average is probable. The traced byte offset varied between runs; the observed address is not a universal allocation guarantee. |
| — | not behind the morning overexposure Ruled out as the cause of the #444 overexposure at 2x: post effects (swap and present effects), MSAA (the target is single-sample), resolve-to-texture, EDRAM pass specialization, small copy views and texture band reloads. Guest CPU reads of resolved ranges, vertex fetches over scaled ranges and unscaled textures over scaled ranges (generic probe) were all absent. Established by One cvar or probe at a time on the | Confirmed Negative |
| — | resolves the CPU does not read No guest CPU code reads a resolved range during a race or the car purchase. The only CPU accesses are writes that reuse resolved pages around physical 0x1D822000-0x1D827000 (link registers 8314CC98 and, in the purchase, 82C7508C). An earlier bounded scene saw no CPU reads or writes over 348 resolve generations of the sky and horizon family.Established by Access callbacks armed on every resolved range after each resolve, on | Confirmed NegativeBounded to those routes; saved car thumbnails and the later Mac free-roam luminance trace are known exceptions. This result does not justify skipping every resolve readback. |
| — | GPU readers of resolve memory In a moving-race frame most resolve memory is overwritten by a later resolve before anything reads it. The title reuses allocations at other pitches and sizes: one 1280x720 color allocation receives 1280x256 strips, and a 640x360 one a 520x520 resolve at pitch 1024. Of the 1 KB blocks that resolves with a current texture write, about 76 % are overwritten whole by a later resolve's macro tiles and 4 % partly. About 20 % are read by texture loads of a texture the resolve does not write directly. Those readers are the reflection cube, which reloads its 18 face resolves (six each at 256x256, 128x128 and 64x64) every frame, plus a 1280x720 and a 640x360 result each read through another texture. No vertex, index or memory-export fetch read those blocks. Established by | ConfirmedOne frame and route; addresses are capture-specific. A 32-bit resolve's 32x32-texel macro tile is a contiguous 4 KB of its destination, which is what lets a later resolve's coverage be decided per tile. |
| — | resolves the CPU reads The title reads some resolves on the CPU: the car thumbnails it saves are one-off resolves read from guest memory. Handing the game the previous frame's data for every resolve never reaches free roam, so at least one other read before free roam needs the current frame. Established by Thumbnail path checked against full synchronous readback; route runs in each readback mode. | ConfirmedWhich read blocks free roam under previous-frame data is not traced. |
| — | sky and horizon resolve consumers The sky and horizon pass writes six rotating resolve destinations that 63 distinct later draw signatures across 38 shader families sample, so its output feeds the scene, not only the final image. Established by Resolve-to-consumer graph in an open-world run. | Confirmed |
| — | HDR chain depends on resolve order The HDR chain depends on exactly which resolve generation each fetch sees. Making resolve-sourced textures update right after their resolve, instead of when next sampled, broke the image from the first frames (HDR whiteout, yellow blowout) and sent the game down another path. Established by Two eager-reload variants built and measured on Android. | Confirmed |
| — | attract sequence float resolve The idle title attract sequence resolves an RGBA16 float render target into a k_16_16_16_16 texture.Established by Frame capture. | Confirmed |
Shadows#
The 1040-pitch depth target supplies the shadow atlases, refreshed only in part each frame. The 1280-wide float-depth pass supplies camera depth for the screen-space shadow mask. Skipping it removes shadows too, which led to its older "sun shadow map" label. Ordered texture/resolve traces and depth-output comparisons distinguish their roles: the mask samples both depth inputs before main-scene shading reads the mask. Same-frame main depth therefore arrives too late to replace the prepass directly. See the dependency study.
| Address | Finding | Confidence |
|---|---|---|
| — | shadow-related depth passes The 1040-pitch D24S8 pass at EDRAM tile 720 produces 1024x1024 shadow atlas inputs. The 1280-wide 1x float-depth pass at base 0 produces camera-view depth used with those atlases to build the 1280x720 screen-space shadow mask before main-scene shading. The latter was historically labelled the sun shadow map because skipping it removes every shadow; that experiment proved a dependency, not a light-space projection. In base race frame 8991 its 1,168 full-size draws precede the mask's consumers and the three-band main scene; the early depth and later scene-depth dumps show the same camera-view geometry, with additional foliage in the latter. Earlier race counts assigned about 18 % of draws to the 1280-wide pass and 11 % to the atlas pass. One shadow epoch of 80 draws was 64 draws of one dominant family, then four repeats of three secondary draws and one tertiary draw. Established by Skipping each pass in turn; ordered target and resolve/texture traces; untiled depth-output comparisons from base frame 8991; MR-0 daylight shader-discovery trace on Mali. | ConfirmedR03 (2026-10-24): enabled alpha-test or alpha-to-mask register bits alone are not a foliage selector. A target-filtered prototype also removed the player car's self-shadowing in stock/skip/stock daytime captures. Most raw alpha-flagged candidates had no effective pixel shader. Requiring a pixel shader whose coverage depends on alpha selected about 38/47 draws per race frame on the two targets and 30/45 in free roam; it saved only 0.12/0.08 ms GPU on an RTX 4080 at 3x, below the 0.5 ms gate. Both filters were removed. The Odin was unreachable, so no mobile result is claimed. See the R03 experiment in the performance backlog. MR-0 (2026-11-02): the Galaxy Tab S10 Ultra's daylight v4 free-roam trace contains 1,503 emitted draws and neither depth-only shadow target. Android defaults pinyon_shift_fh1_shadows to false, which removes these passes while the lights are off; its reflection rate also defaults to 0.25. Their absence is an existing preset trade, not a new shadow optimization or a night-time cost bound. |
pixel shader 93626E75 | screen-space shadow mask Scene lighting reads a 1280x720 screen-space shadow mask, resolved 1x 8_8_8_8 from EDRAM tile 720 twice a frame. Its first shadow draw makes four comparisons against the 1024x1024 k_24_8 shadow map. If the shadow map reads as empty, every surface is lit and auto exposure overshoots (white sky, washed-out foliage). The game draws into the mask between its repeated copies, as it does for the 640x360 and 64x64 targets. In the resolved mask, lit geometry is bytes 00 FF FF 00, shadowed geometry 00 00 FF 00 and only the sky FF FF FF FF; the car shaders of the garage's thumbnail studio read the two channels that are zero on geometry, so a lit fill must keep them zero (#700).Established by A frame dump replayed on two GPUs with every resolve dumped placed the first divergence at this resolve; nulling the fetch reproduced the defect. The channel layout is from a contributor's mask and photo-capture dumps on an M1 Pro (#700). | ConfirmedThe shader key is our translator's hash. |
| — | headlights need the shadow passes With SkipShadowMapUnlessCockpit set, the player car's headlights no longer light the road at night: the light sprites and tail lights still draw, but the pool of light on the road and roadside is gone, in the chase view at 23:00. So the headlights' projected light runs through the passes that setting skips. The track's SwitchOnLights curve (TimeOfDayA.xml, minutes since midnight) is above zero before 08:02 and after 18:50, so the setting is only safe in between; shadows off now applies only then (#532).Established by | ConfirmedR03's experimental target-filtered alpha-caster skips kept the projected road-headlight pool in stock/skip/stock captures at 23:00, unlike skipping all shadow passes. Eligible alpha casters were still omitted at night, so identical headlight occlusion or roadside lighting is not established. Both experimental filters were removed; the existing OFF BY DAY behavior is unchanged. |
| — | shadow atlases Two 1024x1024 depth shadow atlases are only partly refreshed: each frame a 1280x720 8888 resolve overwrites part of their memory, then the atlas itself is resolved only 520x520. Established by Texture reload probe with the sampled textures' keys. | Confirmed |
0x834AB27Csub_823E2650sub_82C3AF68 | shadow quality options The UseSmallShadowMap option is the byte 0x834AB27C, read by sub_823E2650 when it sizes the shadow map (256x512 instead of 512x512). sub_82C3AF68's mode picks the shadow mask's filter, and the game already uses LQ, the cheapest; the mask blur mode at renderer +8436 is 1 (one pass). Setting the small shadow map before the title starts, or removing the blur, changed GPU time only within noise.Established by Writing the byte and mode before start; GPU profile on the Odin drive. | Confirmed Negative |
Alpha-tested shadow casters#
Enabled alpha-test or alpha-to-coverage register bits do not, by themselves, identify foliage in FH1's shadow targets. Some flagged draws execute without a pixel shader. A target-filtered experiment that removed all of them also removed the player car's self-shadowing, restored when the filter was switched off again. Count raw flags separately from draws whose effective pixel shader uses alpha coverage. The R03 experiment records the selectors, measurements and image checks.
Post effects#
Bloom and luminance are built by reducing the scene to 320x192, 64x32 and 32x32 levels; the final pass applies motion blur and the colour grade from a 16x16x16 lookup texture. Every post group changes the frame, so none of it is dead work.
| Address | Finding | Confidence |
|---|---|---|
| — | post-processing chain The final composite reads the 1280x720 2_10_10_10 scene, a 320x192 reduction, a 640x360 RGBA8 intermediate with a car-shaped alpha mask, and the 16x16x16 colour-grading LUT. The chain makes 320x192, 64x32 and 32x32 reductions (bloom and luminance levels down to 2x2), with a bloom chain from 1280x720 down to 64x32 in 8_8_8_8 and 2_10_10_10, clears a 640x360 producer, and reads back the previous frame's 320x192 output. It runs as about 43 small renderings and 21 small resolves a frame; skipping any post group changes the frame, so none is dead work.Established by Race-pilot evidence; GPU profiles and knock-out experiments on the Odin; resolve reload census. | Confirmed |
8246554Cv40x82494E44 | per-frame bloom scale By 8246554C the title has copied the weather preset's bloom scale, interpolated, into this frame's stack parameters at r1+264. The title's own debug mode writes zero there. Zeroing it removes bloom while weather data, exposure, tone mapping and the persistent settings stay intact; the bloom filter still runs.Established by Mid-function hook zeroing the value, with on, off and restore captures on desktop and Android. | Confirmed |
0x82D7894C0x8245B4940x8245846C0x8245849Cv40x82E3A9240x8248AB7C0x82487B540x82487B84 | motion blur and depth of field switches Skipping the instruction at 0x82D7894C disables motion blur. Loading zero into r11 instead of the original load at 0x8245B494, 0x8245846C and 0x8245849C disables depth of field at each of its decision points.Established by Xenia Canary game patches (hash prefix | Confirmed |
pixel shader 614588022744BF6B | final post pass The heaviest single post shader runs twice a frame: six bilinear taps of the 64-bit scene along the velocity (camera motion blur, visible as a horizontal smear in turns) and a 3D colour grade. It is bound by texture bandwidth. Turning motion blur and depth of field off changed GPU time by less than noise on a Snapdragon 8 Elite. Established by Per-shader GPU profile; in-run A/B of the motion blur and depth-of-field switches. | ConfirmedThe shader key is our translator's hash. MR-0 ordered capture (2026-11-02, base moving-race frame 8991): its two draws bind scene color at slot 0, processed 320x192 at slot 2, a 640x360 RGBA8 input at slot 5, the 16x16x16 LUT at slot 7, and the current 32x32 float exposure result at slot 17. The same full-size color attachment also receives a scene-preparation draw and 170 later HUD draws in this frame; its whole target cost is not the cost of the two final-composite draws. |
pixel shaders ED74D20BC7DFB0F74D3934F366930540 | two post-chain history bindings The 32x32 float producer ED74D20BC7DFB0F7 reads the current reduced scene at slot 0 and its previous 32x32 float result at slot 1 before resolving the new float result into the same allocation. The following 4D3934F366930540 draw reads a prior 320x192 image at slot 0, this frame's first 320x192 scene reduction at slot 1, and the new float result at slot 17 before resolving into that 320x192 allocation. A fused implementation needs both old values and must publish the updated exposure result for its later GPU and CPU readers. Established by Ordered draw/texture/resolve metadata from base moving-race frame 8991 replayed five times, with memory-export counters zero; both inputs are read before the first overlapping resolve of their allocation, then overwritten later in the same frame. Trace-enabled and control front buffers are byte-identical. | ProbableThe within-frame read-before-write bindings and output order are confirmed; interpreting the old values as cross-frame history is an inference, since a single GPU frame does not exclude CPU resets. Observed allocations were 0x1FCA6000 (32x32 float) and 0x1DE5D000 (320x192); they are allocation examples, not stable symbols. Used-texture masks identify possible shader reads, not per-fragment branch decisions or exact sampled coordinates. The precise filtering/adaptation maths are not established by this dependency trace. |
pixel shaders E17BECBE8BE65806AE59F518D522BDD1E68FE55ECD482EC5ECE830AC0333767F64AEAE9314A0118B | ordered reductions and final-composite preparation In base moving-race frame 8991, E17BECBE8BE65806 reduces scene color to 320x192 then 64x32; AE59F518D522BDD1 produces the following 32x32 reduction. Later E68FE55ECD482EC5 binds scene depth and writes a 640x360 RGBA8 intermediate, followed by ECE830AC0333767F reading that intermediate and resolving into the same allocation. Final composition binds the resulting image at slot 5. 64AEAE9314A0118B binds three views of scene color and resolves full-size color back into the scene allocation before final composition. Established by Ordered shader identities, texture bindings and completed resolves from the same five-iteration replay used for the history bindings; padded guest ranges include all three scene-band writers. | ConfirmedThese identify bindings, output dimensions and ordering, not exact filter mathematics or the semantic purpose of the scene-color rewrite. The 640x360 image is a distinct input from the earlier 1280x720 shadow mask. Draw numbers and allocation addresses are capture-specific. The scene-color rewrite (64AEAE9314A0118B) is required and independent of the bloom, motion-blur and depth-of-field switches: it draws with each of them on or off (2,255-2,337 draws over each live run), and suppressing it drops the replayed frame to 11.8 dB PSNR against the control (MR-5). |
guest 0x1BDB10000x1C149000 | temporal post surface One post-chain destination is temporal: a padded 1280x736 surface updated 256 rows per frame, fully republished every other frame and read back the next frame, alternating between history destinations 0x1BDB1000 and 0x1C149000, with several guest formats per address. Treating it as a plain single-frame output fails.Established by Race-pilot resolve census; a rejected simple post-chain handoff (PERF-10). | ConfirmedAddresses from one seed. MR-0's newer base frame 8991 resolves its final front buffer to 0x1C149000 with no shader texture binding reading that address in the captured frame. Alternating allocations or a partial resolve alone do not prove a temporal post input. The newer ordered trace establishes history separately at 32x32 float and 320x192 allocations; preserve the observed reads, not an address-only classification. |
dynamicpost.zip Tracks/Colorado/Fog_Templates.xmlgrading mapsv4same | atmosphere templates Six fog templates (NoFog to Mountains), bloom, vignette and colour settings, and 21 grading maps.Established by Archive listing. | Probable |
dynamicpost.zip ColourGradingMaps/*.ddsPostProcessingZones_Safe.xmlv4same | colour grading maps 22 maps, each a 16x16x16 volume DDS (A8R8G8B8, texel bytes B, G, R, A; red varies fastest, then green, then blue); NormalGrading.dds is the identity. The loose zones file in media/tracks/colorado/Ribbon_00 names a map per zone (GradingMap="Mountains.dds"). A map added to the archive by a mod and named by an overridden zones file is used: a red/blue swap of the identity turned the red car blue while the HUD kept its colours, so grading applies to the scene only.Established by Archive listing; free-roam route from a pinned seed with and without the mod. | Confirmed |
Render scenarios#
How much the game draws is data: media/renderscenarios.zip holds one XML file per situation (free roam, race, photo mode, menus), each a list of DynamicRenderSettings controls such as FrameRate, TilingScenario, car LOD distances, crowds and particles. The game parses every file at boot into its own object and pushes the active one to the render thread. The level-of-detail keys are covered on World and tracks, where most turned out not to change what is drawn.
| Address | Finding | Confidence |
|---|---|---|
media/renderscenarios.zipv4same | render scenario files renderscenarios.zip has 35 members, each a <DynamicRenderSettings> list layered over Global.xml, with per-player-count budgets (1-Car_Race.xml, 12-Car_Race.xml, 16-Car_*). The race scenarios set FrameRate 30, CarLODThresholds, CarMinWheelLOD 1, crowd draw and LOD count scales, and ParticleRateScale and EnvMapFrequencyScale 1.0. Multiplayer.xml forces CarForceNoLOD0, and PhotoMode.xml also sets DepthOfField 0. Terrain, tree and grass distances are not in these files.Established by Archive extraction and reading the files. | ConfirmedWhich scenario free roam uses is not traced. |
0x82D812988223C5F48223C6C40x8321D848v40x82E434588224F7548224F824 | DynamicRenderSettings control load At 0x82D81298 each DynamicRenderSettings control has just loaded (r30 the control, r26 its scenario). Controls are embedded in the scenario at offsets taken from the table at 0x8321D848, indexed by control id; float controls use vtable 8223C5F4 and bool controls 8223C6C4. EnvMapFrequencyScale (id 30, how often the car reflection cube is redrawn) keeps its value at control +4. SkipShadowMapUnlessCockpit (id 35) sits at scenario +0x194, with bit 35 of the bitset at +36 marking it set; none of the game's own scenarios uses it. The game reads both every frame, so rewriting them takes effect on the next frame.Established by Mid-function hook overriding the controls, switched mid-drive with correct captures; v4 mapping from the analysis overrides. | ConfirmedThe v4 address of the offset table is not recorded. |
renderscenarios.zip Horizon_Race.xmlv4same | render scenario settings effects In free roam, EnvMapFrequencyScale 0.25 keeps reflections looking the same and saves GPU time, while 0 makes them dark. SkipShadowMapUnlessCockpit 1 drops the cascaded shadow maps, a screen depth pre-pass and the screen-space shadow mask; the mask then keeps its last contents and the world goes fully shadowed, while the cockpit view still draws shadows. CrowdDraw 0, halved car LOD distances, ParticleRateScale 0.5, CarDrawDriver, CollidableShadows, CrowdDrawShadows, SoftParticles, CarDamageTextures 0, HalfRateMirror and HalfRateBloom changed nothing measurable.Established by Asset mods changing one setting at a time in private states; GPU timing and captures on the Odin drive. | ConfirmedMeasured on one free-roam drive. |
options object (getter sub_82479E88) | renderer launch switches The launch options fasttrackrender, trackfardistance, renderroaddetailblur and notrackcommandbuffers change track rendering, and perfmode changes neighbouring draw families too. The renderer copies renderfur, renderroaddetailblur and the fast*render switches from the options object.Established by Differential research runs; writing the flags before the renderer copies them. | ProbableSetting them before the copy changed nothing measurable on the Odin drive. |
| — | photo mode quality paths Besides PhotoMode.xml, photo mode has code-side switches: IRenderThreadInPhotoModeInternal, IPresentationInPhotoMode and the highrescubemap option. Photo capture supersamples by accumulating frames (MultiSampleAndAccumulate, AccumulateWeightedFrame), which needs a still scene.Established by Strings in the image. | ProbableThe code paths are not traced. |
| — | LOD and distance key names The image names more LOD and distance keys than the render scenarios set: CarForceNoLOD0, LOD1_Threshold and LOD2_Threshold, LOD0_Count_Scale to LOD3_Count_Scale, CrowdLODCountScales, LODdist_Near and LODdist_Far, the traffic MaxHighLodDistance and MaxMediumLodDistance, and CLoadAndWaitForLOD0Cars.Established by Strings in the image. | ProbableWhere each is read is not traced. |
D3D inside the game#
The D3D runtime's own functions (command buffer execution, the ring writer, resolves, gamma, the swap and the fences) are linked into the executable and run as guest code. The present path waits for the previous frame's fence, so the game runs at most one frame ahead of the GPU (Threads and frame loop).
| Address | Finding | Confidence |
|---|---|---|
82416A000x82416EFC824093988240CF688240D070829F5FF0829F63608246FB980x8246FC1Cv4824469B00x82446EAC824393488243CF188243D02082AB2F6082AB32D08249F3100x8249F394 | D3D command buffers FH1 renders from prebuilt D3D command buffers (display lists). 82416A00 is D3DDevice_RunCommandBuffer, the per-object list executor; 82409398 writes the ring and moves its write pointer; 8240CF68 and 8240D070 close and submit segments. A list is an IDirect3DCommandBuffer (resource type 9): +116 chains (size, physical address) pairs, one indirect buffer each; +24..+56 mark inherited and +64..+96 overwritten state, +108 holds flags and +112 dependent resources. Nothing patches a list when it runs: per-frame state goes into the calling segment just before the indirect-buffer packet. 829F5FF0 and 829F6360 are D3D runtime code that replays the tiling stream into the ring once per tile on D3D's worker threads. The executor stores each list's INDIRECT_BUFFER header at 0x82416EFC, inside its loop over the +116 chain. The whole function is 407 instructions with 27 calls, up to four of them segment closes that can wait on a fence, so that store, not a native body, is the place to hook list execution. A second producer of INDIRECT_BUFFER packets, 8246FB98, stores its header at 0x8246FC1C (59,382 calls in a desktop race, 4.6 a presented frame, from 14 callers). The executor itself ran 542 times a presented frame.Established by Reverse engineering of the generated code, matched against the decoder's indirect-buffer census; call counts from the probe build (NL-2.3, 12,992 presents). | ProbableCorrects an earlier guess that 8240xxxx-8246xxxx were engine constructors. The lists are not immutable: NN-0.10's write watch found most of them rewritten after they had run (see "display-list writers"). "Nothing patches a list when it runs" holds for the executor itself; the engine patches a list's fixup slots just before calling it (see "D3D command-buffer fixups"). 829EC928 (v4 82AA9898) runs resource type 10 (async command-buffer calls) and is reached only from the executor (guess). |
8247B4388247B4D00x8247B5108247B3B00x8247B428829EB0B80x829EB11C829EB34882C76A90v4824AAA28824AAAC00x824AAB00824AA9A00x824AAA1882AA80280x82AA808C82AA82B882D378E8 | display-list writers The game builds and rewrites its D3D command buffers at run time. Of 256 list buffers watched from their first execution in an Odin race, 190 were written again after they had run, 121 of those writes inside the bytes the list had executed. The writers, by the guest return address: 8247B438 called from 8247B4D0 (return 0x8247B510, 98 writes, all from one render-side thread, from the menus at frame 828 through the race at frames 4500-5500); a memcpy in 8247B3B0 (return 0x8247B428, 12); a memcpy in D3D runtime code 829EB0B8 (return 0x829EB11C, 9); 829EB348, which also calls 8247B438; and a memcpy in 82C76A90.Established by Write watch on the first 256 indirect buffers executed at depth 2 or more and on outer buffers, armed after each execution, logging the writer's guest return address and thread ( | Probable8247B438 patches part of a list, it does not re-record it: it is the slot lookup of D3D's command-buffer fixups, and 8247B4D0 and 8247B3B0 are the texture and constant fixup setters (probable, see "D3D command-buffer fixups"). 82C76A90 is a buffered file read (IOSys::CBufferedStream slot 16, vtable 0x8222B49C) loading list bytes from asset files (probable), and 829EB0B8 with its caller 829EB2B0 looks like a command-buffer clone (guess). So a list compiler keyed on the list and its fixup values, rather than on its bytes, would not churn, if no other writer exists; the census in docs/D3D_RENDERER_RESEARCH.md checks that. 8247B438's v4 address is from a context match; the others match exactly. |
0x821451EC0x832A3498824131B8823F598082415CE082412DD88246EF9882C273B082C2734082C27568823F74B082C2744082415C88823FA1988244A45082415CA882418F5082417B908240BA4882C28070 | engine graphics device class The engine renders through its own virtual class CD3D9GraphicsDevice (RTTI at 0x832A3498, primary vtable 0x821451EC, 67 slots). The slots are thin wrappers that take the D3D device from this+20 and call D3D. Draw slots: 38 and 39 (824131B8, 823F5980) reach the indexed draw 82416380; 40 and 41 (82415CE0, 82412DD8) the auto-index draw 82415F68; 42 and 44 (8246EF98, 82C273B0) and 65 (82C27440) copy vertices and draw through 824610C0; 43 (82C27340) the indexed user-pointer draw; 48 and 66 (82C27568, 823F74B0) the title draw adapter path to 8240F4D8. Every known D3D draw entry point is reached through these slots. Slots 22 and 24 set a texture fetch slot's dirty bit (SetTexture-like), 30 and 31 a vertex fetch slot (SetStreamSource-like), 25 and 26 a dirty mask over a shader constant range (vertex and pixel constant setters), 12 dispatches through a per-state function table at D3D device +952, and 50 (82C28070) is the gamma ramp builder.Established by Reverse engineering of the generated code: RTTI and vtable in the image, what each wrapper computes and which D3D emitter it reaches; static only. | ProbableSlot meanings are probable where a slot lands on a known D3D emitter and a guess otherwise (13-23 look like resource creation). D3D's state setters are mostly inlined in the engine as stores into the D3D device and its 64-bit dirty masks, so there is no SetRenderState function to hook: a D3D-level renderer would hook this vtable or read the device state at each draw. No v4 addresses yet (the v4 vtable needs the v4 image). |
824504408245BBF08245BEE88245CA888246ED008245BE8882C58DA882C592F08247B4388247B2E08247B5E88247B4D0829EB688829EB348829EB5E88247B3A8829EB7E0829EB86882C5ABA082C5A7B0v48247FAF88248B2D88248B5D08248C2008249E4E08248B57082D1921082D19758824AAA28824AA8D0824AABD8824AAAC082AA85F882AA82B882AA8558824AA99882AA875082AA87D882D1B08082D1AC90 | D3D command-buffer fixups Lists keep their PM4 shape; per-object resources are patched into fixed slots before each run. The track, model and vegetation list owners each call 82450440 just before the list executor. It applies the object's dynamic fixups through 8245BBF0, 8245BEE8, 8245CA88 and 8246ED00, which all tail into 8245BE88 and D3D's fixup dispatcher 82C58DA8. The dispatcher switches on the D3D resource type (low nibble of the resource's first dword) and calls one setter per type: vertex buffer 8247B2E0, index buffer 8247B5E8, texture 8247B4D0, surface 829EB688, vertex declaration 829EB348, vertex shader 829EB5E8, pixel shader and constants 8247B3A8 (a copy through 8247B3B0), command buffer 829EB7E0, async call 829EB868. Every setter but the copy calls 8247B438, which finds the fixup record by handle in one of two tables in the command buffer (+144 or +148), marks it in the dependent-resource array (+112) and returns where to patch in the buffer data (+152). The texture setter rewrites the six-dword texture fetch constant in place from the texture object. Static fixups are applied at load through 82C5ABA0 and 82C5A7B0 and a second dispatcher entry 82C592F0.Established by Reverse engineering of the generated code (call graph from the list owners to the executor, the dispatcher's type switch, the fixup record lookup), matched against NN-0.10's write watch, whose two main writers are the texture and constant setters. | ProbableThe resource type numbering is assumed to follow the XDK; it is checked only for texture (3, by the fetch-constant layout) and command buffer (9). This explains why lists repeat byte for byte between frames yet are written after they run: only the fixup slots change. v4 addresses are in base order. NA-2.2 (#751) reviewed each pair: the mapper matched 13 exactly and the rest by alignment or call context, and every pair has the same instruction sequence with branch targets and immediates masked; every load and store displacement in 82450440, 82C58DA8, 8247B438, 8247B4D0, 8247B3A8 and 8247B3B0 is unchanged, so the command-buffer field offsets above hold in v4. |
82C59E4082C588B882C460A80x822290C40x8222B49C82C76A9082D505C00x822388F0824F8150829EB2B0829EB0B8v482D1A32082D18D2082D064D00x8223BE340x8223E22482D378E882E128B80x8224BA508256357082AA822082AA8028 | command buffers from assets and run-time recording Some display lists are loaded from asset files: the image holds a serialised command-buffer description (fields Handle, HeaderSize, PhysicalSize, InitializationSize, StaticFixups, DynamicFixups and their shared variants, FixupType_ID) read by 82C59E40 and 82C588B8, and model assets carry a CommandBufferGroup beside their mesh, effect, material and texture names (strings from 0x822290C4, read by 82C460A8). The list bytes are streamed in by a buffered file read (82C76A90, IOSys::CBufferedStream, vtable 0x8222B49C). Others are recorded at run time through D3D: the track settings CommandBufferRecording, PrerecordNextZone, NumGraphsAllowed, NumTextureFixupsAllowed and TimeAllowed (from 0x822388F0, read by 82D505C0), the launch options nomodelcommandbuffers, notrackcommandbuffers and commandbuffersize (parsed by 824F8150), growable command-buffer allocators, and the threads "Async Command Buffer Thread" and "Free Command Buffer Thread".Established by Strings, RTTI and their readers in the generated code; static only. | ProbableProbable reading: models ship precompiled lists with fixup tables, the track records its zone lists ahead of time within a per-frame time and texture-fixup budget, and cars keep copies per tiling mode (CCarPresentation::FreeCommandBuffers_All(_Tiled)); the split is a guess. 829EB2B0 and its copy 829EB0B8 look like a command-buffer clone (guess). Whether the immediate draw entry points also write into lists being recorded is not known; the census in docs/D3D_RENDERER_RESEARCH.md answers it. BeginCommandBuffer, EndCommandBuffer and BeginTiling were not found statically (see "command-buffer recording and tiling brackets"). v4 addresses are in base order (NA-2.2, #751): the code matches instruction for instruction with immediates masked and the same load and store displacements, except the launch-option parser 824F8150, whose v4 body holds every base instruction in order plus 32 inserted ones in four places (probably added options); the three string and vtable addresses are mapped through the code that references them. |
82468C408246F110823EA3E0823E984C823EB3D08246B3E8824692900x402C2880 | command-buffer recording and tiling brackets 82468C40 is BeginCommandBuffer: called from 8246F110, it points the D3D device's write pointer into the buffer being recorded. 823EA3E0 (called from 823E984C) is EndCommandBuffer and restores it; about three recordings a race frame. 823EB3D0 (called from 8246B3E8) opens the predicated-tiling bracket and 82469290 closes it, once a frame. Recording uses its own D3D device (0x402C2880 in the Odin run), and the indexed draw entry point 82416380 writes into the lists being recorded as well as into the ring.Established by DL-0.2: the census probe's buffer-switch log for one race frame ( | ConfirmedCensus of the same race (DL-0.1): drawn draws come 64-78 % from display lists and 20-30 % from immediate calls on the Odin (untiled), 60-83 % and 12-29 % on the desktop (tiled); one buffer of about 72 (Odin) to 120 (desktop) draws a frame has no known owner. 83-100 % of list runs are byte-identical to their previous run, and every list that changed was recorded at run time (the track). With the write watches re-armed, 5-13 writes a 600-frame window into known lists came from neither the fixup setters nor stream loads. DL-2.1 (confirmed, Odin and desktop race): 99 % of list runs find the list's pages unwritten since the previous run, about half of a list's register writes repeat a value the same list wrote earlier, and shader microcode stays unwritten through the race. DL-2.2 (confirmed, desktop race): no race list draw is culled per tile; each tiled list runs whole once per tile, and later tiles carry about 3.8 times the first tile's draws. No v4 addresses yet. |
82416380824167EC82415F6882415EA8824168B082415D508246F7B8824091B8824679E88240CF6882411C80824125F482411BD08240ED508240D2708240F148 | indexed draw call and its state flush 82416380 is the indexed draw call: r3 the device, r4 the primitive, r5 the base vertex (written as VGT_INDX_OFFSET, 0x2102), r6 the start index, r7 the index count; it returns through 824167EC. Before the draw it flushes the device's dirty state in a fixed order from five 64-bit masks at device +0 to +32: vertex and pixel float constants (+0, +8, through 824168B0; bit 63-k is 16 registers at 0x4000/0x4400 + 16k), the shader bind 82411C80 (+16 bits 20-17), register groups 0x2000, 0x2100, 0x2180, 0x2200 (+16, through 82415EA8), fetch constants (+24 low bits, 82415D50, then a write to 0x5000-0x5002), groups 0x2280, 0x2300, 0x2380, clip planes (8246F7B8), bool and loop constants (+32 bit 56) and a wait (824091B8). Each register comes from a shadow copy in the device. The shader bind loads the pixel shader's literal constants through 82411BD0 (a table of constant index, dword count and offset entries ended by a zero count) and its microcode by IM_LOAD; it picks a vertex-shader variant by the vertex declaration (8240ED50) or builds one inline into the command buffer (8240D270). The bound index buffer is at device +12812. Counts over 65,535 are split. During the race the HUD's calls (about 163 a frame) are recorded into command buffers (device +11068 bit 0x80) that run the same frame; in menus they go straight into the ring (140-220 a frame).Established by Reading of the generated code, then DL-1.2's verify mode: a draw description built from this reading of the device state matched what the packets wrote for 4.68 million HUD draws (about 600 million registers) with no mismatch. | ConfirmedThe tiled shader-load branch (device +11068 bit 0x40) and the per-tile state 8240F148 (mask +16 ANDed with +40) are read statically only (probable). Recorded lists can be patched between recording and their runs: one draw a race frame has VGT_INDX_OFFSET 0 when recorded and 0x1B8 when it runs; the fixup that does it is not identified. About 16 HUD draws a frame come from a D3D-internal buffer at physical 0x132C5F00, which is DL-0.1's unattributed buffer (location confirmed, purpose a guess). 829EC400 looks like SetAsyncCommandBuffer (probable: fills slot r4 & 63 at device +24424 + 128 a slot; its only caller 82AD3B98 fills up to five slots through the global 0x83320990), and 8246FB98, which writes three INDIRECT_BUFFERs and the GPR split at +11048, like SetShaderGPRAllocation (guess). DL-2.1 (confirmed): the auto-index draw call 82415F68 (r3 device, r4 primitive, r5 start vertex written to 0x2102, r6 vertex count; 130-380 calls a race frame, almost never while recording) runs the same flush and then a two-word predicated draw. Each nonzero mask is stored 0 after its flush, so a call with a plain flush can be replaced by storing 0 to all five masks and advancing the write pointer at +48; no other device field changes (replaced over whole races with bit-identical paused frames). The wait 824091B8 runs when mask +32 bits 62-63 are set and the byte at +11072 has bit 7 or 6 set. The fetch-constant flush ends with 0x5000-0x5002 = 0, 0x25000, 0, with 0x5001 0 instead when the segment was kicked first. The constant flush checks space through 824679E8, which kicks the segment through 8240CF68 past the soft limit at +56 (probable); a kick leaves INVALIDATE_STATE and two EVENT_WRITE_SHD around the segment change (probable). In the Odin race about 160 calls a frame are made while recording and about 40 are queries. Race display lists hold predicated SET_CONSTANT, LOAD_ALU_CONSTANT, SET_BIN_MASK_HI, WAIT_REG_MEM and the odd EVENT_WRITE, and their headers and control words do not change between runs (0-20 recompiles per 600 swaps). The full mask-to-register table is in the DL-1.2 source note. No v4 addresses yet. |
824167F88241706082417BC0824365B0824168B082411BD0v4824467A88244701082447B70824665608244686082441B80 | engine side of the display lists The engine calls the list executor from 824167F8 and 82417060, reached from CProceduralModels vtable slot 41 (82417BC0) and from 824365B0. 824168B0 writes float constants as register writes in the calling segment (2.0 % of the render thread). It is D3D's generic dirty-constant flush, not a list-specific step: nine functions call it, each from two sites (vertex and pixel constants): 823EA3E0, 82408B70, 8240DC70, 82415F68, 82416380, 82416A00, 829EBD50, 829EC928 and 829F6B18. It ran 23.45 million times in a desktop race, 1,805 a presented frame. The only LOAD_ALU_CONSTANT emitter, 82411BD0, loads static shader tables. The command stream has six PM4_INDIRECT_BUFFER store sites, with four owners, three producers and four context roots.Established by Reverse engineering of the generated code; command-buffer lineage census; thread-sampler profile; callers and call counts from the generated code and the probe build (NL-2.3, 12,992 presents). | ProbableThe static-table reading is confirmed by NN-0.10's source census (see "shader constant sources"). For scale, 82411BD0 ran 264 times a presented frame in a desktop race, called from 82411C80 (156 a frame). 824168B0's arguments: r3 the device (+48 the last dword written, +52 the buffer end), r4 a 64-bit dirty mask read from bit 63 down, r5 the first register index, r6 16-byte-aligned source constants; it pads with type-2 NOP packets to 16-byte alignment, writes one type-0 header, copies 64 bytes per set bit, and calls 824679E8 (v4 82497230) when the buffer is full (NN-0.8 bench). Its single-register twin 82415EA8 (v4 82445E58) writes one dword a mask bit as type-0 packets, one per run of set bits, with no padding; both call 824679E8 when a run does not fit. Native versions of the two (#1071 P2) matched the original packets on all 27 million calls of a desktop race, but saved only about 20 ns a call in place, and were removed (Lessons). |
sub_82435E78sub_82435D18sub_82439878sub_82435DF0sub_82417B90sub_82418F50v4sub_82465E28sub_82465CC8sub_82469820sub_82465DA0sub_82447B40sub_82448F00 | per-object shader constant block The engine keeps D3D's float constants in a shadow block of the D3D device and marks them dirty; the next draw writes the dirty ones into the command stream (824168B0). sub_82435E78(device, first register, data, count, mask) copies count vectors (any alignment) to the vertex constants at device + (register + 120) × 16 and ORs the 64-bit mask into the dirty bits at device + 0; sub_82435D18 does the same for the pixel constants (+ (register + 376) × 16, dirty bits at device + 8). CD3D9GraphicsDevice slots 26 and 25 (sub_82417B90, sub_82418F50) wrap them with the mask built from the register range (one bit per four registers). Before an object's display lists run, the model-asset, procedural-model and car owners build a 336-byte block on the stack: sub_82439878 sets it to five identity matrices and a constant vector, the owner fills in projection × view × transposed world, a second set of four rows, its transpose, the transposed world, view × transposed world and one more vector, and sub_82435DF0(draw context, …, block, prepared) resets the draw context's list state (+1204 the list count, +1212 whether the lists use the default state, +1213, +1214) and stores the block as vertex and pixel constants 128-148 (mask 0xFC000000) into the device at draw context +1196.Established by Reverse engineering of the generated code; a native copy of all four ran under pinyon_shift_guest_native_verify in a desktop race and matched the original on every call (33 million constant copies). | ConfirmedPorted to native code for #1071 and removed: the copies took 27 ns a call against the translation's 31 ns, and the block init 28 against 38 ns, too little to matter. The device's shadow constants are not the GPU's state: with a clean dirty bit, 0.3-0.5 % of the vectors a later store left unchanged held other values at the GPU decoder (c0-c15, p0-p7, c158, p140-p147), because display lists and D3D's own operations write constants without the shadow knowing. So D3D relies on the owners storing and dirtying their constants every time, and skipping unchanged groups (tried for #1071, 40 % fewer constant words) is unsafe without tracking what the lists write (see "What didn't pay off here" on the lessons page). |
sub_82436468sub_824365B00x832DF03C0x83445588v4sub_82466418sub_824665600x833CAAFC0x8353ABE8 | model-asset submission The track presentation submits each loaded model asset for a pass through sub_82436468 > sub_824365B0(presentation, view, …, slot, instance, matrices). For slots 0-2 and after a virtual query on the instance (+32), it takes the asset (instance + 4) and its model data ([asset + 48] + 128), picks the display list for view × 3 + slot, builds the per-object constant block from the view and projection matrices (r8, r8 + 64) and the instance's world matrix ([instance + 16]; the block also takes world + 64..112 and world + 208), and stamps the model with the frame counter at 0x83445588. The first draw in a slot (bit view × 3 + slot of asset + 56 clear) also prepares the list's fixups (sub_82450440). For views other than 0 and 6 it looks through the model's meshes and parts for a material texture slot marked -1, which takes the instance's own texture (renderer texture and sampler setters, four floats from world + 156). Then it runs the lists (sub_82417060). The renderer comes from the object at 0x832DF03C (sub_82436588, one of two slots picked per thread).Established by Reverse engineering of the generated code; a native port of the prepared path under a custom verify (native plan, then the original with a recorder on the list run) in a desktop race. | ProbableThe native port took 0.60 µs a call without the list run against 0.96 µs for the original with it, and in 22 % of verified calls (views 1 and 4) the original's constant dirty bits were already cleared when its list run started while the native plan's were still set; the cause was not found. Removed (#1071, lessons page). pinyon_shift_debug_skip_world 1 replaces this function, but until 2026-11-15 it was missing from host_overridden_functions, so its only caller sub_82436468 called the original directly and the skip never ran: the B4 gate's "model assets and procedural models" result (600-750 fewer draws, no frame or GPU change) was the procedural models alone, and every skip_world 1 or 3 result before then measured bit 2 only. Skip_world 7 results stand: with bit 4 (the scene walk) on, this function is reached only 268-2,949 times in a whole Deck race against about 1.4 million with bit 1 alone, so the model assets are scene-walk meshes, dropped by the walk's keep decision before they are submitted here (confirmed by the replacement's call counts, docs/FULL_FRAME_RENDERER.md). |
82417BC082417060824167F8824365B0824372188243996082419A308243CDC08243CEE08244D7F0824505088244CB50823F69F8823F40D88246E8F8824726C8824501608245AA9882418A2482418EC8v482447B7082447010824467A882466560824671C882469908824499E08246CEC88246CFE88247CEB08247FBC08247C210824269E8824241288249E0E0824A1E408247F8188248A180824489D482448E78 | display-list owners Who runs the display lists in a race, by the guest functions above the list executor (desktop race, 600-frame windows). Every list run goes through 824167F8 except the track's recorded zone lists, which 8246E8F8 (from 824726C8 < 82450160) runs: 12 lists, 3 runs and about 165 drawn draws a frame. The procedural models (CProceduralModels slot 41, 82417BC0, through 82417060) run 15-24 lists 33-158 times a frame for 62-204 drawn draws. Loaded model assets (824365B0 through 82417060) run 150-470 lists 130-370 times a frame for 240-690 draws. Cloned lists (copies made at run time) are run under 82437218 through 82439960, 82419A30 and 8243CDC0, and under 8243CEE0, 8244D7F0, 8244CB50 and 8245AA98: together 160-500 runs and 240-1,180 draws a frame. Six cloned lists under 823F69F8 (< 823F40D8) hold the only EDRAM copies and events inside lists, 48 each a frame. In all, lists drew 1,590-1,760 draws a frame in race windows. No list wrote memory through packets (MEM_WRITE, REG_TO_MEM, COND_WRITE).Established by NA-2.2 pass census: the D3D census ( | ProbableThe owner names are a guess except the procedural models (vtable slot) and the recorded zone lists (DL-0.2): the cloned lists match the car presentation's per-tiling-mode copies and the loaded ones the model assets, not yet confirmed. A list runs 2-7 times a frame on average, so one list serves several passes (main view, shadow cascades, reflections); the owner does not tell the passes apart. The procedural-model lists are the NA-2.2 pilot: they receive almost no fixups (under 0.1 a frame), contain no copies, events, memory writes or waits, set their own shader constants (13-26 constant packets and 4-10 shader loads a run) and inherit the rest of the state from the calling segment; the owner chooses which lists to run and in what order (the same order in 43-92 % of frames, by window), so a program replayed per list run keeps the title's visibility, LOD and order. The NA-2.4 pilot marks these buffers from the owner's two calls into the list runner (base 82418A24 and 82418EC8, v4 824489D4 and 82448E78, hooked with the instruction after each) and runs their draws from owned programs (gpu_d3d_program): shadow mode matched a fresh derivation on every one of 4.6 million compared draws, but checking each draw against its record cost what the derivation did, so the complete cost was even on multivac and higher on the Odin; rejected, off (see GPU optimizations). 82437218's v4 body keeps the base instructions and grows by about 560 words (probable); the other pairs match instruction for instruction. Deck race census, 2026-11-15 (one race per pinyon_shift_debug_skip_world value, counted by the calling guest function): skipping the scene-walk meshes (4) drops the list runs from about 536 to 331 a frame and the drawn draws from about 2,500 to 1,700, so the walk's meshes, cars among them, reach the GPU as list runs. The procedural models also draw immediately: about 373 calls a frame enter D3D's draw at 82415F68 (half into the ring, half tiled, none recorded) from 82415CE0 < 82417418 < 824170D8 < 8243D2A0, and skip 2 takes that to 29. In the Deck's frame-pointer race profile (2026-11-13, tools/re/draw-chains.py) about 47 % of the executor's time comes through 82417060 < 824365B0 and about 30 % through 82437218 < 8243D340 < 82447490 (the car presentation) < 82441718; 82439B70 < 8244CA98 is the common parent of the model-asset, procedural and 8243BD40 paths. Deck race, 2026-11-16 (ShiftGlue ordered census v3, tools/re/batch-census.py): of about 260-280 innermost indirect buffers a frame, 89 % recur at the same address a frame later, but they carry only 60-64 % of the draws; the rest (about 450-500 draws) come through about 15 buffers that are new every frame. 89-90 % of the draws repeat their pipeline, textures, vertex fetch and index base, so a list's draws need an identity on the game's side, not the buffer address. Deck race, 2026-11-16 (G0's gpu_replay_floor_probe 1 counting, pinyon_shift_debug_skip_world 1 toggled in-run): skipping 824365B0's lists removed 500 host draws a frame and the drawn draws in byte-repeating buffers free of side effects fell from 747 to 218, so the model-asset lists the walk keeps repeat byte for byte between frames and could be replayed whole; replaying them that way with the draws dropped (probe 2, record thread off) left process CPU within noise, and appending their captured record entries instead of decoding them with the record thread on (probe 3) left 0.85 µs a decoded draw of decode (of 2.77) but cost the recorder and submission 0.72 µs more per draw, over the FR-3 line (docs/FULL_FRAME_RENDERER.md, "FR-3 M2"). |
8246E10082CE5FF8824E3B38825A7CB0825A8348829F56D082D06C28824168B082409848 | write-watch fault sites in a race On the Odin at the 60 fps limit, write-watch faults cost 0.2-0.3 ms of CPU a frame from the signal handler on (half of it the mprotect that re-protects the page), half to two thirds of it on the render thread (Guest 825A6320) and about a third on the main thread (Guest 8255AE10). The code that faults, taken from the interrupted frame below the signal frame: a libc memcpy called from 8246E100 and from 82CE5FF8 (together 30-40 % of the handler samples in three of four records), and stores in 824E3B38, 825A7CB0, 825A8348, 829F56D0, 82D06C28, 824168B0 (D3D's dirty-constant flush, see "engine side of the display lists") and 82409848. The ranking moves between records: the fourth puts 82D06C28 and 829F56D0 first and has no memcpy faults in its top six.Established by simpleperf dwarf call graphs of four 15-18 s race records on builds J and K (stage 1 runs j-rec1, k-rr1, k-rr2, k-rb1), samples whose stack holds the kernel signal-return frame, attributed to the frame below it; then the fault log of the | ProbableCounted with the write_watch_fault_trace probe on build P (a 600-frame race window): 7.4 faults a frame, 533 distinct pages and none recurrent, but the pages stay in two ranges that vertex uploads made valid, physical 0x12EC1000-0x132C0FFF (writers by guest lr 829F56D8 on thread 829F6620, and 82401258, 824168B8, 823F5854, 824098AC on the render thread) and 0x14B84000-0x14B95FFF (lr 825A8494, 825A7E68). The other writers are lr 8246E1E8 (1.6 a frame, vertex, 4 pages at 0x11BE8000-0x11D6DFFF), 82CE62C0 and 824E3B80 on the main thread (vertex and texture pages) and 825A84EC (GPU-written pages). By kind: vertex 5.1, texture 1.8, GPU-written 0.55 faults a frame. These are dynamic geometry buffers the CPU refills every frame, with more than three writers. Learning these ranges and invalidating them at each ring kick instead of write-protecting them was tried (NN-3.12) and rejected: the kicks re-uploaded about 379 pages a frame and faults fell only by about 1 a frame (see Lessons). A fault in 824168B0 means a page the constant flush writes was watched; not confirmed what shares it. No v4 addresses yet. |
0x8240F4D80x824103280x824106200x824079B80x829F7C70v40x8243F4880x824402D80x824405D0 | title draw wrappers The title draw adapter 0x824079B8 (38 call sites in 25 functions) calls the indexed draw wrapper 0x8240F4D8, which stores a PM4_DRAW_INDX_2 header at 0x82410328, returns at 0x82410620 and has six consume-then-clear dirty-mask sites. The immediate draw wrapper 0x829F7C70 stores a count-one header. Only about 42 draws a race frame (about 70 us of guest time) go through these emitters: the scene's draws arrive in prebuilt indirect buffers.Established by Static inventory; pass-through hooks with exact packet-address provenance (107,455 exact matches); profiling probes at entry, header and exit; decoder census of the race. | ConfirmedCorrection (DL-1.2, 2026-10-14, probable): 0x8240F4D8 is D3D's Resolve, not a draw wrapper. It writes the copy-register shadows (device +10776 to +10820), sets the render backend to copy mode, emits a three-vertex rect-list draw, handles clear flags and values, resets the copy registers and stores the device fence into the texture. Its 42 calls a frame match the executor's 44 resolves; the HUD is drawn through 82416380 (see "indexed draw call and its state flush"). 0x829F7C70 is a count-one auto-index draw helper (callers 829F9540, 829F8D88) never called in the race. D3D has other draw entry points that store their own draw headers, about 540 calls a presented frame (see "D3D draw entry points"). |
sub_82416380sub_82415F68sub_82415CE0sub_82460998sub_82408B70sub_8240DC70v4sub_82446330sub_82445F18sub_82445C90sub_82490230sub_82438B20sub_8243DC20 | D3D draw entry points Most draw calls the title makes do not go through the draw wrappers above. sub_82416380 (3,543,451 calls in a desktop race, 272.7 a presented frame, 11 callers) and sub_82415F68 (3,463,307, 266.6 a frame, 9 callers, among them sub_82415CE0, which an indirect call in sub_82417418 reaches) store type-3 DRAW_INDX headers themselves. Like the list executor 82416A00 they call the dirty-constant flush 824168B0 twice, the shader and constant-load setup 82411C80 and the segment close 8240CF68, which can wait on a fence. Together they are about 540 calls a presented frame, against 35 through the indexed draw wrapper 8240F4D8 and 542 list executions (route averages, menus included). Three smaller emitters run 17.3 (sub_82460998), 9.2 (sub_82408B70) and 8.5 (sub_8240DC70) times a frame. On the Odin they are sampled on the render thread and on the presentation worker 82589AE8, where sub_82416380 is 11.9 % of that thread's cycles, next to the segment closes 8240CF68 (4.4 %) and 8240D070 (4.8 %).Established by Packet-header constants, callees and callers in the generated code; call counts and indirect targets from the probe build (NL-2.3, 12,992 presents); the Odin call-graph profile cg2 (30 fps), split by thread. | Probablesub_82416380 writes into both the ring and command buffers being recorded (DL-0.2, see "command-buffer recording and tiling brackets"). A display-list compiler at 82416A00 would have to cover them, the second producer thread and the second INDIRECT_BUFFER producer 8246FB98 (NN-2.3). |
0x824587D80x82458A88 | title resolve controller 0x824587D8 (three direct callers) emits one PM4_EVENT_WRITE, two PM4_MEM_WRITE, two PM4_WAIT_REG_MEM and one PM4_EVENT_WRITE_EXT around its resolve setup, and calls the setup wrapper 0x82458A88 twice. The setup writes RB_MODECONTROL (register 0x2208) to copy mode 6, plus four bin mask and select writes and one PM4_EVENT_WRITE_ZPD.Established by Static inventory and pass-through hooks. | ConfirmedWhich destination each resolve feeds is not traced. |
0x82413AB80x824736F0 | binning and scissor state wrappers Predicated-tiling state wrappers. 0x82413AB8 stores PM4_SET_BIN_MASK_LO/HI headers (ten direct calls; 978,620 calls from eight callers in 6,916 festival frames). 0x824736F0 stores all bin mask and select headers and calls the scissor-state wrapper (four direct callers; 11,845 calls from three callers).Established by Static inventory; pass-through hooks counting callers. | ConfirmedWhich passes own them is not known. |
0x829F21A00x829F22800x82D951E0 | visibility query wrappers 0x829F21A0 begins a visibility query (stores a count-one PM4_VIZ_QUERY header and sets the active-query bit); 0x829F2280 ends it and clears the bit. Their owner 0x82D951E0 (two direct callers) calls begin, five work calls, then end.Established by Static inventory; pass-through hooks checked at run time. | ConfirmedThe result consumer and the query's purpose are unknown. |
0x829EFEB8sub_829EFB30sub_823E91F0v40x82AACE28 | present path The render thread presents through sub_829EFB30: it requests the system command buffer (VdGetSystemCommandBuffer at 0x829EFD80), inserts a fence and kicks the ring, then calls VdSwap at 0x829EFEB8, the title's only call to it and so the end of each title frame. sub_823E91F0 then waits for the previous present's fence, so the title runs at most one frame ahead of the GPU; swaps are throttled at 15 pending. After a fence passes, the title reuses its dynamic vertex and index memory.Established by Xref of | Confirmed |
sub_823E67A8sub_829EE1F80x829F5948sub_829F66200x82586398 | D3D GPU-to-CPU callbacks The 12 WAIT_REG_MEMs a frame are D3D's callback handshake (InsertCallback, sub_823E67A8): wait until 3D idle, set SCRATCH_REG4 to the callback, REG5 to the context and REG0 to the CPU mask, wait for the write-backs, INTERRUPT, wait for the handler (sub_829EE1F8) to clear the mask, then set REG4 to 0x0BADF00D. Two callbacks run: 0x829F5948, D3D's predicated-tiling step, which queues the next tile's replay for the worker sub_829F6620 (a 4-entry queue per hardware thread), and 0x82586398, the engine's GPU frame-end timestamp. Neither releases memory that earlier draws read.Established by Static analysis; completing the handshakes at decode time cut the waits from 12 to 3 a frame with correct rendering. | Confirmed |
sub_82409398sub_829EE118sub_829EEC48sub_829EED78sub_829EE1F8sub_829E9570sub_829F6878sub_829FCB58sub_823E6568sub_823F2C48sub_831217A8sub_831464C0sub_829FF978 | GPU register accesses The generator marks a load or store whose base register was built from the GPU register window (0x7FC8xxxx) or is followed by eieio as a hardware access, so every site the title has is known statically: 13 D3D functions touch GPU registers, and none of the title's own code does. Decoding each displacement against the register table: sub_82409398 stores CP_RB_WPTR (the ring-buffer write pointer; 510,243 calls in one race), sub_829EE118 stores the same register on a path a race never takes; the vblank handler sub_829EEC48 and the swap interrupt sub_829EED78 store D1GRPH_PRIMARY_SURFACE_ADDRESS, which is the flip itself (27,753 and 12,992 calls); the callback handler sub_829EE1F8 reads D1MODE_VBLANK_VLINE_STATUS (90,826 calls); sub_829E9570 reads RBBM_PERFCOUNTER0_LOW and CP_PROG_COUNTER and sub_829F6878 reads CP_PROG_COUNTER, both diagnostics that a race calls at most once; sub_829FCB58 writes PA_CL_ENHANCE and SQ_INST_STORE_MANAGMENT at device setup. sub_823E6568 (227,950 calls) and sub_823F2C48 (21,569 calls, sixteen accesses at offsets 0 to 88 of a base passed in) take the register address from a caller, so their registers are not resolved statically; sub_831217A8, sub_831464C0 and sub_829FF978 are off the race path.Established by The | ProbableThe two read sites and the ring write pointer are confirmed; the other register names rest on the base register holding the window's start, which is how the generator recognised them. |
guest phys 0x1FCA40000x1FCA4004sub_829EEC48 | GPU scratch write-back words Every WAIT_REG_MEM in a race is an equality wait on one of two words in the GPU's scratch register write-back area: physical 0x1FCA4000 (toggling 0 and 4) and 0x1FCA4004 (0 and 1). Guest CPU code writes only the second, from the interrupt callback sub_829EEC48 (thread F800001C); the first is written by the GPU's scratch write-backs.Established by Perf counters and a wait-writer tracer on | ConfirmedAn earlier note called 0x1FCA4000-0x1FCA4017 chunk-release words written only by the title's CPU; the tracer corrected it. |
0x82C280B80x82C282900x82C282940x82C282980x82C283C0sub_82C28070sub_82586CD8v40x82CE89900x82CE8B680x82CE8B6C0x82CE8B700x82CE8C98 | gamma ramp builder sub_82C28070 builds a gamma ramp on the stack from a display object (r3), exponent f1, offset f2, range f3, a curve (r4) and an encoding (r5): either 128 piecewise-linear entries per channel at r1+128 or 256 per channel at r1+1664, 1,536 bytes either way. The device sits at display object +20. Its caller sub_82586CD8 runs gamma transitions; it clamps progress to 1 but clears the transition only past 1, so after a fade the same ramp is rebuilt every frame.Established by Mid-function hooks at the argument and ramp-ready sites; per-frame trace. | Confirmed |
sub_829F1EF8sub_829F6D78 | D3D SetPWLGamma sub_829F1EF8 is D3D's SetPWLGamma (r3 device, r5 ramp). With its converter sub_829F6D78 it turns the ramp through the fixed display gamma table (from VdGetCurrentDisplayGamma) into 1,536 bytes and compares them with the device's copy at +15408, storing and marking it dirty only when it differs; the ramp is applied at the swap. Because the title calls it every frame, the two take 17 % and 13 % of the render thread's cycles in a race, although the ramp does not change.Established by Traced from the gamma ramp builder and confirmed with hooks; thread sampler on the render thread; skipping unchanged ramps gave matching captures. | Confirmed |
Shaders, textures and models#
The game's shaders are compiled Xenos microcode, in media/shaders/**/*.fxobj and inside default.xex; a few are generated at run time. No resolve writes a block-compressed format, and texture assets are mostly DXT.
| Address | Finding | Confidence |
|---|---|---|
| — | texture asset formats The textures the game loads from files are DXT1, DXT3, DXT5, DXT5A (BC4), DXN (BC5) and 8_8_8_8, mostly DXT1 and DXT5: one free-roam dump held 565 DXT1, 107 DXT5, 32 DXN, 10 DXT5A and 12 8_8_8_8 textures. 8_8_8_8 channels are stored in the game's own order and swizzled when drawn. Road, terrain, trees, lamps and HUD are among them; the other formats seen are render targets, not assets.Established by Texture dumps from the texture cache and replacement tests (634 of 664 textures replaced in captures). | Confirmed |
| — | texture formats fetched 22 format and dimension pairs are fetched. DXT1 2D is the most fetched (22 million), then 8_8_8_8 (mostly resolve output), DXT4_5_AS_16_16_16_16, DXT5, 2_10_10_10_AS_16_16_16_16 cubes (the reflection cube), DXN, 24_8, DXT5A, 24_8_FLOAT, 32_FLOAT, an 8_8_8_8 3D texture (the 16x16x16 colour-grading LUT), 8 (movie planes) and two 1D lookup textures (1_REVERSE and 16). Block-compressed textures read from a resolved range are memory the CPU reused after the resolve, not resolve output.Established by Census of texture fetch constants joined to earlier resolve ranges in the same 60-frame window. | Confirmed |
| — | reflection cube The car reflection map is a persistent six-face, nine-level 256x256 cube in 2_10_10_10 (R10G10B10A2), fetched as 2_10_10_10_AS_16_16_16_16. Face rendering and mip generation have distinct schedules: base race frame 8991 updates one base face but executes all six eight-draw mip chains, 48 draws and 48 resolves in total. The mip shader is 21937679208E59A5, drawing into EDRAM base 0, pitch 2, single-sample color format 3; the six cached lists contain 2,352 packets per cube. Car paint fetches it trilinearly (mips 0 to 8) with the coarse derivatives of the cube direction passed as explicit gradients, which the Xenos resolves as implicit LOD plus bias.Established by Command-stream contract for a mip-chain replacement (since removed); ordered texture and resolve trace of base race frame 8991 (mip draws 1540-1587); register captures of the paint shader on two backends; layer-level reload tracking on Android. A v4 daytime Galaxy Tab S10 Ultra frame-3000 comparison with full-rate reflections, normal recorder and untile enabled finds no mip-shader draws among 1,644 draws with shadows off, and 48 among 2,326 with only shadows enabled. Per-draw shader/selector/toggle/suppression metadata and a frozen off/on/off replay validate selection. This is a route-specific coupling; its guest-code cause and cube resolve contents with shadows off remain untraced. | Confirmed |
| — | car glass and paint shaders In free roam a traffic car's glass and paint draw into the 7e3-as-16 HDR target, whose bloom resolves spread their output. The car shader jumps over a predicated cube fetch, with a texture fetch deciding the predicate. The HDR paint and glass shaders depend on the Xenos rule that 0 times infinity is 0. Established by Frame dumps bisected with draw skips, null fetches and per-draw logs; audit of the translated shaders. | Confirmed |
| — | shader program statistics The disc's pixel shaders average 4.1 texture fetches and 47.6 ALU instructions, half of them mul or mad. 372 of 2,028 pixel shaders have jumps (511 forward, 2 backward, 10 loops), all reducible to nested ifs; vertex shaders are 99.2 % free of labels. A depth-only vertex shader is mostly D3D9-rule multiplies. About 200 pixel shaders run in a free-roam frame, none dominant.Established by Audit of the translated disc shaders; per-shader GPU profile. | Confirmed |
| — | runtime-generated shaders The title generates some shaders at run time: disc shaders patched with vertex fetches for other vertex layouts, and relinked exports, seen on car selection and in the Autoshow. The 34 vertex declarations in the assets reproduce 275 of 277 runtime vertex shaders with a disc parent; the two exceptions are DriverHands skinning variants. Five car-shader pairings read fewer interpolators than their asset declaration. Established by Shader pack misses recorded per session, compared with a deterministic patcher over the extracted disc shaders. | Confirmed |
| — | v4 shaders v4 uses the same shaders as the base game where both run: the same 825 stored pipelines recreate on both builds and render the same free-roam frame. v4 adds 163 shaders for its new content (930 in common, none base-only). Established by | Confirmed |
| — | alpha to coverage and late depth Foliage, flags, cables and signs use alpha to coverage with the console's per-pixel dither offset, which needs four samples to average. Of 1.43 million depth-writing draws, 917,000 run with late depth (alpha to coverage, alpha test or pixel kills), and none uses an EQUAL depth test. The costliest per-frame pixel shader is one fetch and 8 ALU instructions over about 210 small alpha-to-mask draws a frame. Established by Draw census of depth and coverage state; per-shader GPU profile. | Confirmed |
0x82417418 | procedural models proceduralGeometry::CProceduralModels owns procedurally placed items (vegetation, crowds and props) drawn through display lists; its per-record helper 0x82417418 is where each record can be read. One point-to-point race event produced no vegetation items, so the family is absent in some events.Established by RTTI, construction and destruction traces; scene capture runs. | ProbableWhat a record's mesh and material are is not established. |
| — | vehicle draw families Car draws form 30 color families: 15 geometry contributions with two variants each, all in one material and topology group, interleaved with unrelated draws. Shader and topology hashes therefore cannot tell paint, glass, wheels, lights or livery apart, and matching raw constants and world positions did not find the final vehicle transform. Established by Prepared-draw census and private replay of the car families. | Confirmed Negative |
Light glows#
Lamp, outpost and headlight glows are additive sprites that only the depth test hides behind geometry. Right after the player's car the game stamps the nearest depth over the car's stencil, so glows and smoke drawn later cannot cover it. Some lamp and headlight glows ask for an ALWAYS depth test and showed through the car and the terrain in the port; the host depth-tests them like the others (#531).
| Address | Finding | Confidence |
|---|---|---|
| — | light glow sprites Street lamps, outpost lights and car headlights are camera-facing sprites drawn into the 4x main scene, in each predicated tile, after the opaque world: pixel shaders E6A37477D3491A43 (lamps; vertex shaders FB9E8663EA73E066 and F1663100A698025F) and 36ADB4C3E44F265F (headlights), blending SRC_ALPHA/ONE (RB_BLENDCONTROL0 0x01060106). The vertex shader moves each sprite a little toward the camera and takes its brightness from the vertex data; the pixel shader multiplies a sprite texture by a 1D colour ramp. Occlusion is the per-pixel depth test alone: GREATER_EQUAL without depth writes against the scene's reversed depth (viewport z scale -1, offset 1).Established by A night frame's draw log with every draw's textures and depth and stencil state; hiding one blended pixel shader at a time in a live drive; the vertex shaders' translated microcode. The MR-0 base parked trace at time 23 with shadows enabled independently finds seven lamp-shader and 76 headlight-shader draws. Five-block live suppression on five Vulkan devices establishes only small or unresolved marginal costs in this view, not a budget for smoke; the tyre-smoke record covers that. | Confirmed |
| — | car depth stamp After the player's car (drawn with stencil reference 0x15, REPLACE on pass), a depth-only draw of eight rectangles (vertex shader 18EA40EB...) with viewport z scale 0 and offset 1 writes depth 1.0, the nearest value, wherever the stencil is not 0. Depth-tested glows, smoke and other blended effects drawn later then fail on the car's pixels in cockpit and chase views.Established by Draw log of the stencil and viewport registers; making the stamp ignore the stencil hid every later depth-tested draw on the whole screen. | Confirmed |
| — | tyre smoke sprites Tyre smoke is pixel shader 8A911DCC4060CAE4 with vertex shader D0B4ADE58BA22B62, drawn inside the main-scene rendering (depth at EDRAM base 1024, colour at base 0, pitch 32). A handbrake-turn frame draws it 6 times. Its bound textures are a DXT5 sprite sheet (128x128 or 256x256 with mips), the 1280x720 float camera depth and the 1024x1024 shadow atlas, which points to depth-faded smoke that receives shadows; bound slots alone do not prove each is sampled. Suppressing these draws removes all visible smoke and nothing else. Established by MR-0 base drive-and-handbrake dump with untile on: suppressing one blended pixel shader at a time in frozen replays and comparing the images (ABDF3BCFB8325621 and E393573DD4D9A589, 1 and 2 draws, are not the smoke); ordered shader-discovery trace for bindings. | Confirmed |
| — | glows with an ALWAYS depth test Some of the lamp glows (vertex shader F1663100A698025F) and of the headlight glows (pixel shader 36ADB4C3E44F265F) are drawn with the depth test enabled but its function ALWAYS (RB_DEPTHCONTROL 0x087087F2 or 0x08700272) and hi-Z off (RB_HIZCONTROL 0x10, against 0x12 for the tested glows). They showed through the player's car pillars and roof, through terrain and through buildings. In the logged night frames these are the only glow draws without a working depth test. The host gives them the other glows' GREATER_EQUAL test (fh1_glow_depth_test, on by default).Established by Draw logs of three night frames; hiding, then depth-testing, the ALWAYS glows in a live drive: a street lamp and oncoming headlights behind the A-pillar were hidden behind it and stayed visible in view. | ConfirmedWhat hides these glows on the console is not known (see "light glows have no visibility test"); that it does is from players' reports of the port, not console captures. |
| — | light glows have no visibility test At night in free roam the game issues no viz queries (no PM4_VIZ_QUERY packets, no draws under PA_SC_VIZ_QUERY, no draw packets with the conditional bit of their viz query word), no occlusion queries and no REG_TO_MEM copies, and the guest CPU reads none of the resolved ranges, including the per-frame 1280x720 depth resolve. No GPU result reaches the glows' vertex data, and nothing in the GPU state of the ALWAYS glows hides them.Established by Counters of viz query packets, probe draws, conditional draws and | Confirmed |