Card-bound on a 12 GB card: the card meter puts 36–42 ms of a 46–53 ms frame in the title's lists, with 3.9 GB of page-buffer tiles in PC memory #373

Open
opened 2026-12-04 18:19:06 +00:00 by iBooM72 · 6 comments
Contributor

What you see

On a 41-minute open-world run (pipeline library warm: 337 compiles in the whole run), the frame rate is 18.8–21.7 fps, which is 46–53 ms a frame. Both figures are medians per 10 minutes, and frame generation doubles the shown rate.

The card looks like the limit:

  • The card meter puts 36–42 ms of each frame (median per 10 minutes) inside the title's lists. In the last 10 minutes, 10 % of the samples are under 33.1 ms and 10 % are over 48.1 ms.
  • The card's clock line at the end says "the card about 92% busy by this count".

At the same time, much of what the card reads is in the PC's memory (launcher defaults):

  • Page buffers (DARNER_PAGE_BUFFERS=3): 952 windows, "tiles in the PC's memory 3921 MB (68% of whole) + 0 MB on the card".
  • Texture park (DARNER_TEX_PARK=1): 11,925 textures (1,689 MB) parked in the PC's memory.

What I don't know is whether this card time is the scene itself or comes partly from reading that memory over the bus. #83 is a related card-bound report, where one compute program was the top item on a 4070. The doc at pagebuf.rs:69-75 records that mode 2 cost the card 93 ms a frame against 37 when it read from the PC's memory, and it says mode 3 "drops what it cost". This run only shows that the card is busy with 3.9 GB of tiles in the PC's memory. It doesn't show the cause.

An A/B with the card meter would settle it: DARNER_PAGE_BUFFERS=4 (hot pages on card tiles), DARNER_PAGE_BUFFERS=0, and DARNER_TEX_PARK=0, each against a baseline on the same route. I haven't run these yet and will add the results here.

Before you post

  • I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this.
  • This issue is about one problem.
  • I verified the game files and run no mods.

RAY TRACING in F1

Off

GPU and driver

RTX 4070 Ti 12 GB, driver 621.01

CPU, RAM and Windows version

i7-14700K, 32 GB, Windows 11 (build 26300)

Darner release or commit

v2026.12.03.02

Settings

Series X, 1080p to 1440p, DLSS Quality, DLSS frame generation 2x, ray tracing off, texture quality high. Started from the play launcher with its defaults, including DARNER_PAGE_BUFFERS=3, DARNER_TEX_PARK=1 and DARNER_HEAP_TWIN=1. The full switches line is at the top of the log.

Log files attached

darner-play-20261204-093959-22072.log is not attached (52 MB). I can share a redacted copy.

Are you working on a fix?

No

### What you see On a 41-minute open-world run (pipeline library warm: 337 compiles in the whole run), the frame rate is 18.8–21.7 fps, which is 46–53 ms a frame. Both figures are medians per 10 minutes, and frame generation doubles the shown rate. The card looks like the limit: - The card meter puts 36–42 ms of each frame (median per 10 minutes) inside the title's lists. In the last 10 minutes, 10 % of the samples are under 33.1 ms and 10 % are over 48.1 ms. - The card's clock line at the end says "the card about 92% busy by this count". At the same time, much of what the card reads is in the PC's memory (launcher defaults): - Page buffers (`DARNER_PAGE_BUFFERS=3`): 952 windows, "tiles in the PC's memory 3921 MB (68% of whole) + 0 MB on the card". - Texture park (`DARNER_TEX_PARK=1`): 11,925 textures (1,689 MB) parked in the PC's memory. What I don't know is whether this card time is the scene itself or comes partly from reading that memory over the bus. #83 is a related card-bound report, where one compute program was the top item on a 4070. The doc at `pagebuf.rs:69-75` records that mode 2 cost the card 93 ms a frame against 37 when it read from the PC's memory, and it says mode 3 "drops what it cost". This run only shows that the card is busy with 3.9 GB of tiles in the PC's memory. It doesn't show the cause. An A/B with the card meter would settle it: `DARNER_PAGE_BUFFERS=4` (hot pages on card tiles), `DARNER_PAGE_BUFFERS=0`, and `DARNER_TEX_PARK=0`, each against a baseline on the same route. I haven't run these yet and will add the results here. ### Before you post - [x] I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this. - [x] This issue is about one problem. - [x] I verified the game files and run no mods. ### RAY TRACING in F1 Off ### GPU and driver RTX 4070 Ti 12 GB, driver 621.01 ### CPU, RAM and Windows version i7-14700K, 32 GB, Windows 11 (build 26300) ### Darner release or commit v2026.12.03.02 ### Settings Series X, 1080p to 1440p, DLSS Quality, DLSS frame generation 2x, ray tracing off, texture quality high. Started from the play launcher with its defaults, including `DARNER_PAGE_BUFFERS=3`, `DARNER_TEX_PARK=1` and `DARNER_HEAP_TWIN=1`. The full switches line is at the top of the log. ### Log files attached `darner-play-20261204-093959-22072.log` is not attached (52 MB). I can share a redacted copy. ### Are you working on a fix? No
Collaborator

Thanks for the careful write-up. One small request for the A/B you plan, so the card-time numbers can be weighed against memory.

Two of the arms probably change how much PC memory the title commits, so a faster arm may not be a free win:

  • DARNER_PAGE_BUFFERS=4: by the doc at pagebuf.rs:107-112, a hot tile keeps its tile in the PC's memory and also gets a tile on the card. So it adds card memory on top of the PC memory. On our PC (RTX 2070 SUPER, driver 621.40, a small test program, not Darner itself) a card-memory heap of 64 MiB raised the process's committed memory by about 64 MiB. We have not measured that for mode 4 or on a 12 GB card, so please treat it as a reason to look, not as a result.
  • DARNER_PAGE_BUFFERS=0: this puts the windows back as whole buffers in the PC's memory. That gives back what mode 3 saves; your log's memory line will show how much that is on your run.

Could you keep the log's memory now: lines for each arm? That line gives committed ... MB, the card's own memory in use against its budget, and the PC memory shared with the card. The last one before the end of each run, or one at the same minute in each run, is enough. Then a card-time gain can be set against what it costs in memory.

No hurry, and the plan you wrote is already clear. If it helps, I can read a redacted log for these lines.

This post was written with AI assistance (Claude Code).

Thanks for the careful write-up. One small request for the A/B you plan, so the card-time numbers can be weighed against memory. Two of the arms probably change how much PC memory the title commits, so a faster arm may not be a free win: - `DARNER_PAGE_BUFFERS=4`: by the doc at `pagebuf.rs:107-112`, a hot tile keeps its tile in the PC's memory and also gets a tile on the card. So it adds card memory on top of the PC memory. On our PC (RTX 2070 SUPER, driver 621.40, a small test program, not Darner itself) a card-memory heap of 64 MiB raised the process's committed memory by about 64 MiB. We have not measured that for mode 4 or on a 12 GB card, so please treat it as a reason to look, not as a result. - `DARNER_PAGE_BUFFERS=0`: this puts the windows back as whole buffers in the PC's memory. That gives back what mode 3 saves; your log's memory line will show how much that is on your run. Could you keep the log's `memory now:` lines for each arm? That line gives `committed ... MB`, the card's own memory in use against its budget, and the PC memory shared with the card. The last one before the end of each run, or one at the same minute in each run, is enough. Then a card-time gain can be set against what it costs in memory. No hurry, and the plan you wrote is already clear. If it helps, I can read a redacted log for these lines. This post was written with AI assistance (Claude Code).
Author
Contributor

@Jesper-A: thanks, will do. For each arm and the baseline (same route), I'll post the card-meter time next to the last memory now: line of the run (committed, the card's memory in use against its budget, and the PC memory shared with the card), plus one taken at the same minute in each run.

These runs aren't done yet. I'm on other runs first, and I'll post the results here.

This post was written with AI assistance (Claude Code).

@Jesper-A: thanks, will do. For each arm and the baseline (same route), I'll post the card-meter time next to the last `memory now:` line of the run (committed, the card's memory in use against its budget, and the PC memory shared with the card), plus one taken at the same minute in each run. These runs aren't done yet. I'm on other runs first, and I'll post the results here. This post was written with AI assistance (Claude Code).
Contributor

Some numbers from the same card model (RTX 4070 Ti 12 GB, driver 621.24) that might help with the bus-read question. f3840d73, 1440p output, frame generation off, no cap, 10 min each, same save and camera script, all at about 8,000 draws a frame.

Card meter ms fps
Native, RT off 39.7 23.5
DLSS Quality, RT off 28.4 29.6
DLSS Performance, RT off 25.9 31.6
Native, RT on 40.6 21.1
DLSS Quality, RT on 31.4 28.3
DLSS Performance, RT on 29.7 28.5
  • About 11 ms of the card time follows the internal resolution between native and Quality, then only 2 ms more down to Performance.
  • That leaves 25-26 ms that doesn't move with resolution. If bus reads are in the card time, I'd expect them in that part.
  • Your 36-42 ms at Quality is well above my 28 ms. You have frame generation 2x on and I don't, so that may be the gap.
  • One run per row, so treat gaps under 2 ms as nothing.
Some numbers from the same card model (RTX 4070 Ti 12 GB, driver 621.24) that might help with the bus-read question. f3840d73, 1440p output, frame generation off, no cap, 10 min each, same save and camera script, all at about 8,000 draws a frame. | | Card meter ms | fps | |---|---|---| | Native, RT off | 39.7 | 23.5 | | DLSS Quality, RT off | 28.4 | 29.6 | | DLSS Performance, RT off | 25.9 | 31.6 | | Native, RT on | 40.6 | 21.1 | | DLSS Quality, RT on | 31.4 | 28.3 | | DLSS Performance, RT on | 29.7 | 28.5 | - About 11 ms of the card time follows the internal resolution between native and Quality, then only 2 ms more down to Performance. - That leaves 25-26 ms that doesn't move with resolution. If bus reads are in the card time, I'd expect them in that part. - Your 36-42 ms at Quality is well above my 28 ms. You have frame generation 2x on and I don't, so that may be the gap. - One run per row, so treat gaps under 2 ms as nothing.
Contributor

Independent A–B–B–A on an RTX 4060 8 GB (driver 621.40), Ryzen 7 5800X, 32 GB RAM, Windows 11 build 26300. I used the v2026.12.03.02 revision f3840d73, Series S, DLSS Quality, half texture quality, frame generation and RT off. A is DARNER_PAGE_BUFFERS=3, B is 4. Every run started with an isolated clone of the same save and warm cache. The test covers the opening sequence, 45–150 s after the world marker. FPS uses complete rendered intervals and their summed duration. GPU time is the median of timed card-meter intervals for the title’s lists plus Darner’s present copies. I shifted readout timestamps back by the nominal one-second readback delay and kept complete intervals inside the window. Process commit and DXGI use are medians of sampled process-log values.

Run Rendered FPS P99 ms GPU lists + present copies ms Process commit MiB DXGI local/shared use MiB
A1 17.69 113.47 41.45 18,913 5,003 / 4,309
B1 19.17 100.00 39.50 18,749.5 4,981.5 / 4,190
B2 17.80 106.38 41.30 19,042 4,920 / 4,694
A2 19.18 94.96 42.80 18,824 4,962 / 4,388

The highest sampled placements were 335 MiB in B1 and 317 MiB in B2, with medians of 112 and 3 MiB across four and three samples. Both B passes had lower median GPU timestamp times for the title’s lists plus Darner’s present copies than either A pass. The narrowest gap was 0.15 ms, and the effective local budget also varied across runs, with medians of 5,785–6,677 MiB. The FPS, P99, process commit and DXGI-use ranges overlap across modes. This comparison covers only mode 3 versus 4 in the opening sequence. The original open-world route, mode 0 and texture parking off remain separate comparisons.

Independent A–B–B–A on an RTX 4060 8 GB (driver 621.40), Ryzen 7 5800X, 32 GB RAM, Windows 11 build 26300. I used the `v2026.12.03.02` revision `f3840d73`, Series S, DLSS Quality, half texture quality, frame generation and RT off. A is `DARNER_PAGE_BUFFERS=3`, B is `4`. Every run started with an isolated clone of the same save and warm cache. The test covers the opening sequence, 45–150 s after the world marker. FPS uses complete rendered intervals and their summed duration. GPU time is the median of timed card-meter intervals for the title’s lists plus Darner’s present copies. I shifted readout timestamps back by the nominal one-second readback delay and kept complete intervals inside the window. Process commit and DXGI use are medians of sampled process-log values. | Run | Rendered FPS | P99 ms | GPU lists + present copies ms | Process commit MiB | DXGI local/shared use MiB | |---|---:|---:|---:|---:|---:| | A1 | 17.69 | 113.47 | 41.45 | 18,913 | 5,003 / 4,309 | | B1 | 19.17 | 100.00 | 39.50 | 18,749.5 | 4,981.5 / 4,190 | | B2 | 17.80 | 106.38 | 41.30 | 19,042 | 4,920 / 4,694 | | A2 | 19.18 | 94.96 | 42.80 | 18,824 | 4,962 / 4,388 | The highest sampled placements were 335 MiB in B1 and 317 MiB in B2, with medians of 112 and 3 MiB across four and three samples. Both B passes had lower median GPU timestamp times for the title’s lists plus Darner’s present copies than either A pass. The narrowest gap was 0.15 ms, and the effective local budget also varied across runs, with medians of 5,785–6,677 MiB. The FPS, P99, process commit and DXGI-use ranges overlap across modes. This comparison covers only mode 3 versus 4 in the opening sequence. The original open-world route, mode 0 and texture parking off remain separate comparisons.
Contributor

I reanalysed the same RTX 4060 ABBA capture on f3840d73 without running the game again. I kept the original 45–150 s window and used card_read_upto_present to align the GPU counters. I grouped counter deltas until the watermark advanced and retained complete Present ranges inside the window. The numbers below are summed GPU timestamp time divided by the number of covered rendered Presents. They are a different statistic from the medians in the previous comment.

Run Covered Presents Lists + present copies (ms/Present) Sync + check (ms/Present) Sum (ms/Present)
A1 (3) 1,856 41.416 1.842 43.258
B1 (4) 2,012 39.379 1.917 41.295
B2 (4) 1,868 40.707 1.989 42.696
A2 (3) 2,013 41.196 1.882 43.078

Both mode 4 passes still used less measured GPU time, including sync and check. The closest gap in the sum was 0.382 ms/Present. The order also held when trimming the window to 46–149 s and 48–147 s. The runs still overlap in FPS and P99, and DXGI budgets varied. This supports a small difference in the measured GPU work for this opening sequence. It leaves the original open-world route and the cause of the difference untested.

For the next pair, I would set DARNER_WINDOW_READS=1 explicitly in both arms. Mode 4 enables read tracking on its own (winreads.rs), and the saved configuration for this capture did not record that setting.

Analysis reviewed with Codex and Claude Code.

I reanalysed the [same RTX 4060 ABBA capture](https://git.gtahub.st/TrustNo1/Darner/issues/373#issuecomment-876662) on `f3840d73` without running the game again. I kept the original 45–150 s window and used `card_read_upto_present` to align the GPU counters. I grouped counter deltas until the watermark advanced and retained complete Present ranges inside the window. The numbers below are summed GPU timestamp time divided by the number of covered rendered Presents. They are a different statistic from the medians in the previous comment. | Run | Covered Presents | Lists + present copies (ms/Present) | Sync + check (ms/Present) | Sum (ms/Present) | |---|---:|---:|---:|---:| | A1 (3) | 1,856 | 41.416 | 1.842 | 43.258 | | B1 (4) | 2,012 | 39.379 | 1.917 | 41.295 | | B2 (4) | 1,868 | 40.707 | 1.989 | 42.696 | | A2 (3) | 2,013 | 41.196 | 1.882 | 43.078 | Both mode 4 passes still used less measured GPU time, including sync and check. The closest gap in the sum was 0.382 ms/Present. The order also held when trimming the window to 46–149 s and 48–147 s. The runs still overlap in FPS and P99, and DXGI budgets varied. This supports a small difference in the measured GPU work for this opening sequence. It leaves the original open-world route and the cause of the difference untested. For the next pair, I would set `DARNER_WINDOW_READS=1` explicitly in both arms. Mode 4 enables read tracking on its own (`winreads.rs`), and the saved configuration for this capture did not record that setting. Analysis reviewed with Codex and Claude Code.
Contributor

Mode 3 against mode 4 on an RTX 4070 Ti 12 GB with hardware RT: no gain here. With about 1 GB of hot pages on the card, card time fell about 1 ms and fps did not follow.

PC and method: RTX 4070 Ti 12 GB, driver 621.24, Ryzen 7 7800X3D, Windows 11. Own release build of f3840d73. 1440p output, DLSS Quality, hardware RT, frame generation off, no cap. One save, standing with scripted camera turns, 10 min a run, counted from 120 s. Order W A B C C B A.

Arm fps, seconds with 7,000+ draws fps, lighter seconds Card ms Submit thread's work ms Hot pages on the card at min 3 / 6 / 9
A: default (the log says mode 3) 26.3, 25.7 31.7, 31.0 32.3, 31.6 26.4, 26.2 none
B: DARNER_PAGE_BUFFERS=4 26.3, 25.2 29.7, 29.4 32.0, 31.4 28.2, 27.7 256 / 128 / 0 MB and 64 / 0 / 0 MB
C: B + DARNER_CARD_ROOM_FOR_TARGETS_MB=3072 25.7 29.0 30.9 28.1 1,024 / 1,024 / 790 MB
W: A + DARNER_WINDOW_READS=1 + DARNER_CARD_TIMES=1 32.0 28.7 none
  • B alone can't keep pages on a 12 GB card. "textures waiting" is true at nearly every look, so the pages go back. The queue is at its line because of the room kept for render targets (880 to 1,000 MB here, never returned on the default path; #564 is about that). So B mostly measures what mode 4 costs.
  • That cost is on the submit thread: +1.5 to 1.8 ms of its work, about +1.9 ms waiting for the submission lock. W shows the same pattern, a bit larger, so I think it is the read tracking that mode 4 turns on, as @tyr0nsur noted.
  • C is the arm that really moved pages (543 to 1,024 MB on the card all run). Card time is about 1 ms under A and B. Least card room fell from about 1,370 MB to 758 MB.
  • The log's own bus estimate was about right: in W the exact figure had a median of 0.8 ms a frame (14 MB a frame read from PC memory in the last window). The "card time saved" figure on the hot-pages line said 67.8 ms for C, which is far off what the card meter shows.
  • Second C run is missing: that launch lost the device during loading, which is a known thing here on builds without #446 and not to do with this test.

One or two runs per arm, and the two A runs differ by 0.6 fps on heavy seconds, so the fps gaps are inside the spread. What I'd stand behind: no gain on this card and scene, the bus cost is around 1 ms, and mode 4 has a submit-side cost of 1.5 ms or more.

Mode 3 against mode 4 on an RTX 4070 Ti 12 GB with hardware RT: no gain here. With about 1 GB of hot pages on the card, card time fell about 1 ms and fps did not follow. **PC and method:** RTX 4070 Ti 12 GB, driver 621.24, Ryzen 7 7800X3D, Windows 11. Own release build of `f3840d73`. 1440p output, DLSS Quality, hardware RT, frame generation off, no cap. One save, standing with scripted camera turns, 10 min a run, counted from 120 s. Order W A B C C B A. | Arm | fps, seconds with 7,000+ draws | fps, lighter seconds | Card ms | Submit thread's work ms | Hot pages on the card at min 3 / 6 / 9 | |---|---|---|---|---|---| | A: default (the log says mode 3) | 26.3, 25.7 | 31.7, 31.0 | 32.3, 31.6 | 26.4, 26.2 | none | | B: `DARNER_PAGE_BUFFERS=4` | 26.3, 25.2 | 29.7, 29.4 | 32.0, 31.4 | 28.2, 27.7 | 256 / 128 / 0 MB and 64 / 0 / 0 MB | | C: B + `DARNER_CARD_ROOM_FOR_TARGETS_MB=3072` | 25.7 | 29.0 | 30.9 | 28.1 | 1,024 / 1,024 / 790 MB | | W: A + `DARNER_WINDOW_READS=1` + `DARNER_CARD_TIMES=1` | | | 32.0 | 28.7 | none | - **B alone can't keep pages on a 12 GB card.** "textures waiting" is true at nearly every look, so the pages go back. The queue is at its line because of the room kept for render targets (880 to 1,000 MB here, never returned on the default path; #564 is about that). So B mostly measures what mode 4 costs. - **That cost is on the submit thread:** +1.5 to 1.8 ms of its work, about +1.9 ms waiting for the submission lock. W shows the same pattern, a bit larger, so I think it is the read tracking that mode 4 turns on, as @tyr0nsur noted. - **C is the arm that really moved pages** (543 to 1,024 MB on the card all run). Card time is about 1 ms under A and B. Least card room fell from about 1,370 MB to 758 MB. - **The log's own bus estimate was about right:** in W the exact figure had a median of 0.8 ms a frame (14 MB a frame read from PC memory in the last window). The "card time saved" figure on the hot-pages line said 67.8 ms for C, which is far off what the card meter shows. - Second C run is missing: that launch lost the device during loading, which is a known thing here on builds without #446 and not to do with this test. One or two runs per arm, and the two A runs differ by 0.6 fps on heavy seconds, so the fps gaps are inside the spread. What I'd stand behind: no gain on this card and scene, the bus cost is around 1 ms, and mode 4 has a submit-side cost of 1.5 ms or more.
TrustNo1 changed title from [performance][memory] Card-bound on a 12 GB card: the card meter puts 36–42 ms of a 46–53 ms frame in the title's lists, with 3.9 GB of page-buffer tiles in PC memory to Card-bound on a 12 GB card: the card meter puts 36–42 ms of a 46–53 ms frame in the title's lists, with 3.9 GB of page-buffer tiles in PC memory 2026-12-06 03:21:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#373
No description provided.