Measurements on RTX 5070 Ti + 9800X3D: in-place memory, barriers, submit-thread profile #2614

Open
opened 2026-11-29 15:19:26 +00:00 by Yizzii · 2 comments
Yizzii commented 2026-11-29 15:19:26 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Yizzii on 2026-11-29T15:19:26Z.


Summary

On a CPU-strong PC with a PCIe 5.0 x16 card, mandy stands at about 31 fps (Series S, 720p), and the frame is set by the submitting thread, not the card. Neither title memory in place nor dropping the title's barrier waits helps here:

  • In place is 2 to 4 times slower even on PCIe 5.0 x16 (7 to 14 fps against 31; the card goes to 99 to 100% busy). The copy approach is the right one on a discrete card.
  • Barriers are not the wall. LEONIDA_BARRIER_TEST=groups and both leave the frame and the card's busy share where they were (29 to 31 fps, 69%).
  • The submitting thread (about 25 ms of a 32 ms frame) splits into driver submits, refreshes, write watching and the guards' lock, with no single dominant cost (profile below).
  • A lead: the title's per-draw constants all come from one chunked ring allocator; a hook on its chunk hand-out could replace write watching for that memory.

Setup

Item Value
CPU Ryzen 7 9800X3D
Card GeForce RTX 5070 Ti 16 GB, PCIe 5.0 x16
RAM 32 GB DDR5-6000
mandy 7b907de52 (diag build, DLSS)
Profile play-nvidia.ps1 defaults: Series S, 720p to 1080p by DLSS
Title 1.0.2.1, SHA-256 e95020b2…5a08993

Each test is one start from the same autosave, standing with no input for about 3 minutes; frame generation and game actions off (LEONIDA_FRAME_GEN=1, LEONIDA_GAME_ACTIONS=0). Figures are medians of the 5 s frame lines after the first 100 s. One run per setting, so treat differences under 2 fps as noise.

Title memory in place

All three in-place forms lose badly here, as they did on the RTX 4060 Ti: four times the link width does not change it, so the card's wait is on round trips, not bandwidth.

Run Switch fps (median) ms/frame Card busy Submitting thread prep
Baseline none 30.6 32.6 ~70% 23.2 ms
Port 1 LEONIDA_PORT_CONSTANTS=1 7.3 137.7 100% 18.0 ms
In place 1 LEONIDA_INPLACE=1 (+ _PROBE=1) 12.2 82.5 99% 19.4 ms
In place 2 LEONIDA_INPLACE=2 14.3 71.2 99% 20.9 ms

Prep falls by 2 to 5 ms in every form, but the card becomes the wall at once. Port 1 placed the whole 185 MB region (one region, one 174 MB buffer). In place 1 held 73 to 76 windows (344 to 360 MB) and turned down 525 to 712 as view memory. The probe's census found 294 sections of 4,679 MB, all SEC_RESERVE and so refused as heaps.

Barriers

Leaving the waits out entirely gains nothing on this PC, so narrowing them cannot either.

Run Switch fps (median) ms/frame Card busy
Barriers out LEONIDA_BARRIER_TEST=groups 31.1 32.2 69%
All out LEONIDA_BARRIER_TEST=both 29.4 34.0 69%

The frame line counts about 885 to 895 waits a frame for the title's barrier groups standing. With them gone the picture breaks (mostly white, as expected) and the card's busy share does not move.

We also wrote an experiment that keeps the groups' own scope (one global enhanced barrier from the union of their SyncBefore to their SyncAfter, and none where SyncBefore is none). It built cleanly on 7b907de52 but was not run, since the result above bounds it.

Submitting thread profile

The submitting thread is about 89% busy and no one cost owns it; the driver and the write tracking are the largest pieces. LEONIDA_PROFILE=100,160,2,… with LEONIDA_PROFILE_ONLY=leonida-submit, standing: 19,533 samples of leonida-submit, symbolized against the build's PDB. Shares are inclusive, so they overlap.

Share Where (innermost first) What it is
78.6% Host::submit ← send_late ← execute_parts everything a submission does
26.0% shadow::wide / wide_help (refresh_spans 16.5%, refresh_textures 3.0%, flush 4.2%) refreshes spread over the helpers; 8.7% of the thread waits on them
~15% nvwgf2umx under submit (6.9%), Close (4.4%), D3D12Core and win32u (3.3%) the driver's submit and close
10.7% Shadow::update_free → watch::writes write tracking on refresh
7.0% watch::kernel_written ← ask_run ← ask_ahead ← ask_once the write watch's own syscalls
5.4% RwLock::write_contended ← watch::guards ← writes ← update_free the guards' lock, contended
10.6% Condvar::wait ← queue::ahead_of_frame idle: waiting for the title's next work
5.1% host::stale_under_flights → merge_under_writes refreshes under flights' writes
5.3% copy_mapped + leonida_safe_copy_at the copies themselves

The frame line agrees: about 6,400 refreshes a frame, about 5,400 of them known to copy nothing; prep 23 to 24 ms; the card 69% busy and the copy-back thread waiting 15 ms a frame for it. The title's submitting thread runs about 11.5 ms of its own between submissions, so its own work plus ours is the frame.

Lead: the constant ring's allocator

Every fresh per-draw constant buffer and buffer-data upload comes from one chunked bump allocator, so the title could tell us which bytes it wrote instead of us finding them. Read in Ghidra from 1.0.2.1 (addresses at the image's preferred base, starting from D33T0X/Native-Runtime's back-end map, ledger X-605 to X-610):

Address Role (as read)
144d9efd0 descriptor-table fill at a draw: for each dirty slot calls the constants or buffer-data path
144d9f510 / 144d9f200 constants / buffer data: allocate, memcpy the CPU's bytes in, write the view (GPU address = ring GPU base + the pointer's offset from the ring's CPU base)
144d9f3e0 allocate(size, align 16): 144d9f450, then 144d9f420
144d9f450 bump allocation in the context's current chunk (context + 0x12780: chunk at +0x88, end at +0x90, size at +0x98); when it is full, takes a new chunk from 1400049b0 and retires the old one (144da9f80)
144d9f420 counts a reference on the chunk: index = (pointer − ring base) / chunk size, a table of 0x58-byte records
140006b10 records the new pointer in the context's slot table (context + 0xdb40)

Seven call sites use 144d9f3e0 (14555e570, 144d9f200, 144d9f510, 1400378c0, 144e51a90, 14248d6d0, 1404f4210). Native-Runtime's notes give the game's ring chunk as 131,072 bytes × 216; if this is that ring, it is 27 MB, the size of the 32-bit heap's 0x8404 part. That match is an inference, not checked.

The idea: hook the chunk hand-out (1400049b0) or the allocation (144d9f450) and note each new range as written by the title's CPU, so the ring needs no write watch, guards or compare. By the profile above, the tracking this could remove for the ring is at most part of the 10 to 15% in watch::writes and kernel_written: an estimate of 2 to 4 ms a frame, not measured.

Other notes

  • Shaders not translated in play: five compute programs across all runs, all "no wave32 lowering for this wave64 program": 02384a60fda6f2d0 (CS_DefragHeap_ComputeRelocations), ae0deeafe219c15c, 5e3dd99e0f067aee, 407eca669212d400, 18d957e62926ed3e. The precompile's "217 do not translate" counts every container in the package.
  • First runs: with LEONIDA_PIPELINE_WAIT_MS=10000 the first run in the world stood still for minutes while about 3,500 shaders and 3,200 pipelines were made; players coming from VIctory-NVIDIA read it as a hang. Pointing them to the F1 menu's SHADER WAIT MS "0 SKIP" for the first run, or saying so at launch, would help.
  • Suggested next steps for this kind of PC: the submitting thread's split across two threads (your findings' "What is next", item 1) matters more here than card-side work; the ring hook above is a smaller, contained experiment.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6680441493 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2614). Originally posted by [Yizzii](https://github.com/Yizzii) on 2026-11-29T15:19:26Z. --- ## Summary On a CPU-strong PC with a PCIe 5.0 x16 card, mandy stands at about 31 fps (Series S, 720p), and the frame is set by the submitting thread, not the card. Neither title memory in place nor dropping the title's barrier waits helps here: - **In place is 2 to 4 times slower** even on PCIe 5.0 x16 (7 to 14 fps against 31; the card goes to 99 to 100% busy). The copy approach is the right one on a discrete card. - **Barriers are not the wall.** `LEONIDA_BARRIER_TEST=groups` and `both` leave the frame and the card's busy share where they were (29 to 31 fps, 69%). - **The submitting thread** (about 25 ms of a 32 ms frame) splits into driver submits, refreshes, write watching and the guards' lock, with no single dominant cost (profile below). - **A lead:** the title's per-draw constants all come from one chunked ring allocator; a hook on its chunk hand-out could replace write watching for that memory. ## Setup | Item | Value | | --- | --- | | CPU | Ryzen 7 9800X3D | | Card | GeForce RTX 5070 Ti 16 GB, PCIe 5.0 x16 | | RAM | 32 GB DDR5-6000 | | mandy | `7b907de52` (diag build, DLSS) | | Profile | `play-nvidia.ps1` defaults: Series S, 720p to 1080p by DLSS | | Title | 1.0.2.1, SHA-256 `e95020b2…5a08993` | Each test is one start from the same autosave, standing with no input for about 3 minutes; frame generation and game actions off (`LEONIDA_FRAME_GEN=1`, `LEONIDA_GAME_ACTIONS=0`). Figures are medians of the 5 s frame lines after the first 100 s. One run per setting, so treat differences under 2 fps as noise. ## Title memory in place All three in-place forms lose badly here, as they did on the RTX 4060 Ti: four times the link width does not change it, so the card's wait is on round trips, not bandwidth. | Run | Switch | fps (median) | ms/frame | Card busy | Submitting thread prep | | --- | --- | --- | --- | --- | --- | | Baseline | none | 30.6 | 32.6 | ~70% | 23.2 ms | | Port 1 | `LEONIDA_PORT_CONSTANTS=1` | 7.3 | 137.7 | 100% | 18.0 ms | | In place 1 | `LEONIDA_INPLACE=1` (+ `_PROBE=1`) | 12.2 | 82.5 | 99% | 19.4 ms | | In place 2 | `LEONIDA_INPLACE=2` | 14.3 | 71.2 | 99% | 20.9 ms | Prep falls by 2 to 5 ms in every form, but the card becomes the wall at once. Port 1 placed the whole 185 MB region (one region, one 174 MB buffer). In place 1 held 73 to 76 windows (344 to 360 MB) and turned down 525 to 712 as view memory. The probe's census found 294 sections of 4,679 MB, all `SEC_RESERVE` and so refused as heaps. ## Barriers Leaving the waits out entirely gains nothing on this PC, so narrowing them cannot either. | Run | Switch | fps (median) | ms/frame | Card busy | | --- | --- | --- | --- | --- | | Barriers out | `LEONIDA_BARRIER_TEST=groups` | 31.1 | 32.2 | 69% | | All out | `LEONIDA_BARRIER_TEST=both` | 29.4 | 34.0 | 69% | The frame line counts about 885 to 895 waits a frame for the title's barrier groups standing. With them gone the picture breaks (mostly white, as expected) and the card's busy share does not move. We also wrote an experiment that keeps the groups' own scope (one global enhanced barrier from the union of their `SyncBefore` to their `SyncAfter`, and none where `SyncBefore` is none). It built cleanly on `7b907de52` but was not run, since the result above bounds it. ## Submitting thread profile The submitting thread is about 89% busy and no one cost owns it; the driver and the write tracking are the largest pieces. `LEONIDA_PROFILE=100,160,2,…` with `LEONIDA_PROFILE_ONLY=leonida-submit`, standing: 19,533 samples of `leonida-submit`, symbolized against the build's PDB. Shares are inclusive, so they overlap. | Share | Where (innermost first) | What it is | | --- | --- | --- | | 78.6% | `Host::submit` ← `send_late` ← `execute_parts` | everything a submission does | | 26.0% | `shadow::wide` / `wide_help` (refresh_spans 16.5%, refresh_textures 3.0%, flush 4.2%) | refreshes spread over the helpers; 8.7% of the thread waits on them | | ~15% | `nvwgf2umx` under `submit` (6.9%), `Close` (4.4%), D3D12Core and win32u (3.3%) | the driver's submit and close | | 10.7% | `Shadow::update_free` → `watch::writes` | write tracking on refresh | | 7.0% | `watch::kernel_written` ← `ask_run` ← `ask_ahead` ← `ask_once` | the write watch's own syscalls | | 5.4% | `RwLock::write_contended` ← `watch::guards` ← `writes` ← `update_free` | the guards' lock, contended | | 10.6% | `Condvar::wait` ← `queue::ahead_of_frame` | idle: waiting for the title's next work | | 5.1% | `host::stale_under_flights` → `merge_under_writes` | refreshes under flights' writes | | 5.3% | `copy_mapped` + `leonida_safe_copy_at` | the copies themselves | The frame line agrees: about 6,400 refreshes a frame, about 5,400 of them known to copy nothing; prep 23 to 24 ms; the card 69% busy and the copy-back thread waiting 15 ms a frame for it. The title's submitting thread runs about 11.5 ms of its own between submissions, so its own work plus ours is the frame. ## Lead: the constant ring's allocator Every fresh per-draw constant buffer and buffer-data upload comes from one chunked bump allocator, so the title could tell us which bytes it wrote instead of us finding them. Read in Ghidra from 1.0.2.1 (addresses at the image's preferred base, starting from D33T0X/Native-Runtime's back-end map, ledger X-605 to X-610): | Address | Role (as read) | | --- | --- | | `144d9efd0` | descriptor-table fill at a draw: for each dirty slot calls the constants or buffer-data path | | `144d9f510` / `144d9f200` | constants / buffer data: allocate, `memcpy` the CPU's bytes in, write the view (GPU address = ring GPU base + the pointer's offset from the ring's CPU base) | | `144d9f3e0` | allocate(size, align 16): `144d9f450`, then `144d9f420` | | `144d9f450` | bump allocation in the context's current chunk (context + 0x12780: chunk at +0x88, end at +0x90, size at +0x98); when it is full, takes a new chunk from `1400049b0` and retires the old one (`144da9f80`) | | `144d9f420` | counts a reference on the chunk: index = (pointer − ring base) / chunk size, a table of 0x58-byte records | | `140006b10` | records the new pointer in the context's slot table (context + 0xdb40) | Seven call sites use `144d9f3e0` (`14555e570`, `144d9f200`, `144d9f510`, `1400378c0`, `144e51a90`, `14248d6d0`, `1404f4210`). Native-Runtime's notes give the game's ring chunk as 131,072 bytes × 216; if this is that ring, it is 27 MB, the size of the 32-bit heap's `0x8404` part. That match is an inference, not checked. **The idea:** hook the chunk hand-out (`1400049b0`) or the allocation (`144d9f450`) and note each new range as written by the title's CPU, so the ring needs no write watch, guards or compare. By the profile above, the tracking this could remove for the ring is at most part of the 10 to 15% in `watch::writes` and `kernel_written`: an estimate of 2 to 4 ms a frame, not measured. ## Other notes - **Shaders not translated in play:** five compute programs across all runs, all "no wave32 lowering for this wave64 program": `02384a60fda6f2d0` (`CS_DefragHeap_ComputeRelocations`), `ae0deeafe219c15c`, `5e3dd99e0f067aee`, `407eca669212d400`, `18d957e62926ed3e`. The precompile's "217 do not translate" counts every container in the package. - **First runs:** with `LEONIDA_PIPELINE_WAIT_MS=10000` the first run in the world stood still for minutes while about 3,500 shaders and 3,200 pipelines were made; players coming from VIctory-NVIDIA read it as a hang. Pointing them to the F1 menu's SHADER WAIT MS "0 SKIP" for the first run, or saying so at launch, would help. - **Suggested next steps for this kind of PC:** the submitting thread's split across two threads (your findings' "What is next", item 1) matters more here than card-side work; the ring hook above is a smaller, contained experiment.
fiestorra commented 2026-11-29 15:39:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T15:39:38Z.


Your four results land on a runtime that already has open items in exactly those places, so it is worth saying which ones so the numbers are not re-derived.

First, which runtime this is (checked, not assumed): LEONIDA_BARRIER_TEST and play-nvidia.ps1 live in d3d12/
(d3d12/crates/leonida-gpu/src/copystat.rs, indirect.rs, list.rs). So your report is about the Rust runtime, not the gta6rt one, and the
items below are the Rust crate's.

1. "In place is 2 to 4 times slower." That is the shape of a family already claimed and being worked in d3d12/:

  • RS-SEND-DIRECT - a byte the title writes into a copy that lives on the card is copied twice on the CPU;
  • RS-SEND-POOL-TRIM - the per-submission send memory rounds every buffer to a power of two;
  • RS-FETCH-SHRINK - the buffers card pieces are fetched into grow to the largest fetch and never shrink;
  • RS-INPLACE-FREE and RS-INPLACE-PROTECT - what blocks title memory in place (the title's VirtualFree fails with error 87, its
    VirtualProtect fails).

Your "99 to 100 % card busy at 7-14 fps" is the measurement those items need to be judged against, and PCIe 5.0 x16 is the useful part: it removes
the bandwidth explanation and leaves the CPU-side copies.

2. "Barriers are not the wall." A negative result with two knob settings behind it is worth as much as a positive one, and it saves a slot
somebody would otherwise spend there. If you can state the two recipes exactly (LEONIDA_BARRIER_TEST=groups and =both, same start, same
autosave, same 3 minutes), that becomes a citable measurement rather than an impression.

3. The submitting thread at ~25 of 32 ms is the number I would chase next, and RS-EXACT-WAIT, RS-VALUE-WAITS-RELEASE and
RS-TITLE-ALLOC-WATCH are the claimed items that touch what a submission does before it reaches the driver.

4. Your ring-allocator lead - per-draw constants from one chunked ring - is the kind of thing that needs its own item rather than a sentence at
the end of a report. If you can name the hook and what it showed, someone can claim it.

One thing I cannot do from here: confirm any of this against your numbers, because I have no Rust-runtime build on a 50-series card. What I can say is
that the report is specific enough to be acted on, which is more than most, and that its two most useful properties are the PCIe 5.0 link and the
barrier result.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258264689 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2614#issuecomment-7258264689). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-29T15:39:38Z. --- Your four results land on a runtime that already has open items in exactly those places, so it is worth saying which ones so the numbers are not re-derived. **First, which runtime this is** (checked, not assumed): `LEONIDA_BARRIER_TEST` and `play-nvidia.ps1` live in `d3d12/` (`d3d12/crates/leonida-gpu/src/copystat.rs`, `indirect.rs`, `list.rs`). So your report is about the Rust runtime, not the `gta6rt` one, and the items below are the Rust crate's. **1. "In place is 2 to 4 times slower."** That is the shape of a family already claimed and being worked in `d3d12/`: - `RS-SEND-DIRECT` - a byte the title writes into a copy that lives on the card is copied twice on the CPU; - `RS-SEND-POOL-TRIM` - the per-submission send memory rounds every buffer to a power of two; - `RS-FETCH-SHRINK` - the buffers card pieces are fetched into grow to the largest fetch and never shrink; - `RS-INPLACE-FREE` and `RS-INPLACE-PROTECT` - what blocks title memory in place (the title's `VirtualFree` fails with error 87, its `VirtualProtect` fails). Your "99 to 100 % card busy at 7-14 fps" is the measurement those items need to be judged against, and PCIe 5.0 x16 is the useful part: it removes the bandwidth explanation and leaves the CPU-side copies. **2. "Barriers are not the wall."** A negative result with two knob settings behind it is worth as much as a positive one, and it saves a slot somebody would otherwise spend there. If you can state the two recipes exactly (`LEONIDA_BARRIER_TEST=groups` and `=both`, same start, same autosave, same 3 minutes), that becomes a citable measurement rather than an impression. **3. The submitting thread at ~25 of 32 ms** is the number I would chase next, and `RS-EXACT-WAIT`, `RS-VALUE-WAITS-RELEASE` and `RS-TITLE-ALLOC-WATCH` are the claimed items that touch what a submission does before it reaches the driver. **4. Your ring-allocator lead** - per-draw constants from one chunked ring - is the kind of thing that needs its own item rather than a sentence at the end of a report. If you can name the hook and what it showed, someone can claim it. One thing I cannot do from here: confirm any of this against your numbers, because I have no Rust-runtime build on a 50-series card. What I can say is that the report is specific enough to be acted on, which is more than most, and that its two most useful properties are the PCIe 5.0 link and the barrier result. Written with an AI assistant.
Yizzii commented 2026-11-29 15:55:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Yizzii on 2026-11-29T15:55:55Z.


Thanks. Answers in order.

Recipes. Every run is the same command from a fresh process, only the switch changes:

d3d12\scripts\play-nvidia.ps1 -Exe <game_scarlett_master.exe> -Log -NoFrameGen `
  -More @{ LEONIDA_FRAME_GEN = '1'; LEONIDA_GAME_ACTIONS = '0'; <switch> }

with <switch> empty (baseline), LEONIDA_BARRIER_TEST = 'groups', LEONIDA_BARRIER_TEST = 'both', LEONIDA_PORT_CONSTANTS = '1', LEONIDA_INPLACE = '1'; LEONIDA_INPLACE_PROBE = '1', or LEONIDA_INPLACE = '2'. Build 7b907de52 (diag, DLSS). The baseline and the three in-place runs were made back to back within about 25 minutes; the two barrier runs about 90 minutes later, from the same build. Every run loaded the title's autosave at the same spot, and after a short while without input the title's idle camera took over and went round its views (the draw counts cycle between about 5,500, 7,500 and 11,500 a frame), so the runs measure the same scenes. Each run: load in, no input for about 3 minutes, close. The figures are medians of the 5 s frame lines, leaving out the first 20 lines (about 100 s, the load). One run per setting.

One correction on in place. The data does not point at CPU-side copies. In all three in-place runs the submitting thread's prep went down (23.2 ms to 18.0 / 19.4 / 20.9 ms) while the card went from about 70% to 99-100% busy. So the frame got longer on the card, not on the CPU: with PCIe 5.0 x16 ruling out bandwidth, that reads as the card waiting on round trips to title memory over the bus. I'd be glad to rerun any of the RS- items against this when they land.

Submitting thread. One more data point for RS-TITLE-ALLOC-WATCH and the rest: LEONIDA_WRITE_SITES cut the title's write faults from about 1,860 to 970 a frame (about 32 to 23 ms of all threads' time) with no change in the frame (29.8 to 29.4 fps), so on this PC those faults are not on the critical path.

Ring allocator. Fair point: there is no hook yet, only a reading of the code in Ghidra (the table in the issue: 144d9f3e0 -> 144d9f450, chunks from 1400049b0). The write-sites result also makes me think it would save less here than I first estimated. I'll open it as its own issue once there is a hook and a measurement behind it, rather than a reading alone.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258481894 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2614#issuecomment-7258481894). Originally posted by [Yizzii](https://github.com/Yizzii) on 2026-11-29T15:55:55Z. --- Thanks. Answers in order. **Recipes.** Every run is the same command from a fresh process, only the switch changes: ```powershell d3d12\scripts\play-nvidia.ps1 -Exe <game_scarlett_master.exe> -Log -NoFrameGen ` -More @{ LEONIDA_FRAME_GEN = '1'; LEONIDA_GAME_ACTIONS = '0'; <switch> } ``` with `<switch>` empty (baseline), `LEONIDA_BARRIER_TEST = 'groups'`, `LEONIDA_BARRIER_TEST = 'both'`, `LEONIDA_PORT_CONSTANTS = '1'`, `LEONIDA_INPLACE = '1'; LEONIDA_INPLACE_PROBE = '1'`, or `LEONIDA_INPLACE = '2'`. Build `7b907de52` (diag, DLSS). The baseline and the three in-place runs were made back to back within about 25 minutes; the two barrier runs about 90 minutes later, from the same build. Every run loaded the title's autosave at the same spot, and after a short while without input the title's idle camera took over and went round its views (the draw counts cycle between about 5,500, 7,500 and 11,500 a frame), so the runs measure the same scenes. Each run: load in, no input for about 3 minutes, close. The figures are medians of the 5 s frame lines, leaving out the first 20 lines (about 100 s, the load). One run per setting. **One correction on in place.** The data does not point at CPU-side copies. In all three in-place runs the submitting thread's prep went *down* (23.2 ms to 18.0 / 19.4 / 20.9 ms) while the card went from about 70% to 99-100% busy. So the frame got longer on the card, not on the CPU: with PCIe 5.0 x16 ruling out bandwidth, that reads as the card waiting on round trips to title memory over the bus. I'd be glad to rerun any of the RS- items against this when they land. **Submitting thread.** One more data point for RS-TITLE-ALLOC-WATCH and the rest: `LEONIDA_WRITE_SITES` cut the title's write faults from about 1,860 to 970 a frame (about 32 to 23 ms of all threads' time) with no change in the frame (29.8 to 29.4 fps), so on this PC those faults are not on the critical path. **Ring allocator.** Fair point: there is no hook yet, only a reading of the code in Ghidra (the table in the issue: `144d9f3e0` -> `144d9f450`, chunks from `1400049b0`). The write-sites result also makes me think it would save less here than I first estimated. I'll open it as its own issue once there is a hook and a measurement behind it, rather than a reading alone.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#2614
No description provided.