[performance] 16 GB PCs: INPLACE and WINDOW_KB cost ~20% fps on an RTX 3060 12 GB, for ~1.5 GB of RAM #489

Open
opened 2026-12-01 05:14:05 +00:00 by Indy2l · 1 comment
Indy2l commented 2026-12-01 05:14:05 +00:00 (Migrated from github.com)
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Indy2l on 2026-12-01T05:14:05Z.


What you see

On a 16 GB PC, machine_settings (apps/vice-tay/src/play.rs) turns on VICE_TAY_INPLACE=2, VICE_TAY_WINDOW_KB=64 and VICE_TAY_WINDOW_TAILS=1. On this PC (RTX 3060 12 GB, 16 GB of RAM), these three cost about a fifth of the frame rate:

  • With them unset, the same scene goes from 6.1 to 7.3 fps (median).
  • They save about 1.5 GB of peak process memory.
  • In all of these runs, Windows never came closer than 15.8 GB to its commit limit.

This is the same kind of finding as #483 (the 64 KiB card-buffer floor), which is applied in all runs below.

Method:

  • Route: prologue to the cell window, then a still stand of 3-5 minutes. Indoors, warm shader and pipeline cache.
  • The fps figures are the medians of the play log's frame-rate windows (about 5 s each) during the stand only.
  • One setting changed per run.
Run Unset fps at the window, median (windows) Card busy Peak private Least commit left
A nothing (defaults) 6.1 (53) 92-93% 23.95 GB 17.2 GB
B WINDOW_KB 6.5 (49) 91-94% 24.12 GB 16.8 GB
C INPLACE 6.8 (32) 90% 24.53 GB 16.6 GB
D all three 7.3 (55) 92% 25.48 GB 15.8 GB
  • INPLACE accounts for ~+0.7 fps and WINDOW_KB for ~+0.4. Their sum is about the +1.2 of all three, so WINDOW_TAILS costs little or nothing here.
  • What the card reads over PCIe: in run A, the inplace line reports title memory in place: 409 windows 104 MB, 0 title buffers 0 MB. With WINDOW_KB unset, it reports 79 windows and 502 MB, still 0 title buffers. So the cost is the card reading those windows from PC memory over PCIe every frame. The runs are card-bound throughout, with the card 90-94% busy.
  • For reference: the old line (before the NVIDIA rebuild) in Series X at the same stock 4K output ran 7.4-8.0 fps at the same stand, with the card 94-95% busy. With the three settings unset, the new main is about level with it.

Memory side:

  • Unsetting all three adds about 1.5 GB of peak private memory (23.95 to 25.48 GB). The least commit left goes from 17.2 to 15.8 GB, never close to the limit.
  • The one cost we've seen without them is more paging during loads. In an earlier run at 1080to1440, also with the three unset, the opening cutscene's room was late to load. We didn't see a freeze or a crash from it.
  • Some 16 GB PCs may need these settings more, such as the 6 GB laptop in #97. On a 16 GB PC with a 12 GB card, they cost far more than they save.

Suggestion:

  • Keep INPLACE and WINDOW_KB off by default when the card has enough memory, for example from 10 or 12 GB, as CARD_BUFFERS_MB does with (10..20).contains(&m.card_gb).
  • Keep them for small cards or RAM-starved PCs.

Graphics card and driver

NVIDIA GeForce RTX 3060 12 GB, driver 621.40.

Processor, RAM and Windows version

i5-12400F, 16 GB RAM, Windows 11 Home (build 26200), 48 GB fixed page file. From vice-tay.exe config:

ram         : 15.8 GB, 9.8 GB free
commit      : 63.8 GB with the page files, 14.6 GB of it in use; Series X commits about 48 GB
small memory   the 16 GB profile (VICE_TAY_SMALL_MEMORY)

Vice-Tay release or commit

65b9beaa, diagnostics build (--profile diag).

Settings

  • Series X, vice-tay play --res 4k --dlss off (stock 3840x2160 output, the title's own upscaling).
  • Frame generation off, ray tracing off (VICE_TAY_BVH_BUILDER unset).
  • --set VICE_TAY_CARD_BUFFERS_MIN_KB=64 (#483).
  • Runs B-D also pass --set VICE_TAY_<NAME>= for the unset ones.
  • No F1 settings file.

Logs

I have the play logs of all four runs, plus the per-run memory samples. I can attach any of them here if wanted (about 8 MB each).

Are you working on a fix?

Not yet. It would be the same small change as #483, in machine_settings and its tests. Happy to open the PR once you say which card-size cut you'd want, or to run other combinations (e.g. a 1080to1440 matched set).

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6713088320 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/489). Originally posted by [Indy2l](https://github.com/Indy2l) on 2026-12-01T05:14:05Z. --- ### What you see On a 16 GB PC, `machine_settings` (apps/vice-tay/src/play.rs) turns on `VICE_TAY_INPLACE=2`, `VICE_TAY_WINDOW_KB=64` and `VICE_TAY_WINDOW_TAILS=1`. On this PC (RTX 3060 12 GB, 16 GB of RAM), these three cost about a fifth of the frame rate: - With them unset, the same scene goes from **6.1 to 7.3 fps** (median). - They save about **1.5 GB** of peak process memory. - In all of these runs, Windows never came closer than 15.8 GB to its commit limit. This is the same kind of finding as #483 (the 64 KiB card-buffer floor), which is applied in all runs below. **Method:** - Route: prologue to the cell window, then a still stand of 3-5 minutes. Indoors, warm shader and pipeline cache. - The fps figures are the medians of the play log's frame-rate windows (about 5 s each) during the stand only. - One setting changed per run. | Run | Unset | fps at the window, median (windows) | Card busy | Peak private | Least commit left | |---|---|---|---|---|---| | A | nothing (defaults) | 6.1 (53) | 92-93% | 23.95 GB | 17.2 GB | | B | `WINDOW_KB` | 6.5 (49) | 91-94% | 24.12 GB | 16.8 GB | | C | `INPLACE` | 6.8 (32) | 90% | 24.53 GB | 16.6 GB | | D | all three | 7.3 (55) | 92% | 25.48 GB | 15.8 GB | - **INPLACE accounts for ~+0.7 fps and WINDOW_KB for ~+0.4.** Their sum is about the +1.2 of all three, so WINDOW_TAILS costs little or nothing here. - **What the card reads over PCIe:** in run A, the inplace line reports `title memory in place: 409 windows 104 MB, 0 title buffers 0 MB`. With WINDOW_KB unset, it reports 79 windows and 502 MB, still 0 title buffers. So the cost is the card reading those windows from PC memory over PCIe every frame. The runs are card-bound throughout, with the card 90-94% busy. - **For reference:** the old line (before the NVIDIA rebuild) in Series X at the same stock 4K output ran 7.4-8.0 fps at the same stand, with the card 94-95% busy. With the three settings unset, the new main is about level with it. **Memory side:** - Unsetting all three adds about 1.5 GB of peak private memory (23.95 to 25.48 GB). The least commit left goes from 17.2 to 15.8 GB, never close to the limit. - The one cost we've seen without them is more paging during loads. In an earlier run at 1080to1440, also with the three unset, the opening cutscene's room was late to load. We didn't see a freeze or a crash from it. - Some 16 GB PCs may need these settings more, such as the 6 GB laptop in #97. On a 16 GB PC with a 12 GB card, they cost far more than they save. **Suggestion:** - Keep INPLACE and WINDOW_KB off by default when the card has enough memory, for example from 10 or 12 GB, as `CARD_BUFFERS_MB` does with `(10..20).contains(&m.card_gb)`. - Keep them for small cards or RAM-starved PCs. ### Graphics card and driver NVIDIA GeForce RTX 3060 12 GB, driver 621.40. ### Processor, RAM and Windows version i5-12400F, 16 GB RAM, Windows 11 Home (build 26200), 48 GB fixed page file. From `vice-tay.exe config`: ``` ram : 15.8 GB, 9.8 GB free commit : 63.8 GB with the page files, 14.6 GB of it in use; Series X commits about 48 GB small memory the 16 GB profile (VICE_TAY_SMALL_MEMORY) ``` ### Vice-Tay release or commit 65b9beaa, diagnostics build (`--profile diag`). ### Settings - Series X, `vice-tay play --res 4k --dlss off` (stock 3840x2160 output, the title's own upscaling). - Frame generation off, ray tracing off (`VICE_TAY_BVH_BUILDER` unset). - `--set VICE_TAY_CARD_BUFFERS_MIN_KB=64` (#483). - Runs B-D also pass `--set VICE_TAY_<NAME>=` for the unset ones. - No F1 settings file. ### Logs I have the play logs of all four runs, plus the per-run memory samples. I can attach any of them here if wanted (about 8 MB each). ### Are you working on a fix? Not yet. It would be the same small change as #483, in `machine_settings` and its tests. Happy to open the PR once you say which card-size cut you'd want, or to run other combinations (e.g. a 1080to1440 matched set).
Indy2l commented 2026-12-01 06:27:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Indy2l on 2026-12-01T06:27:49Z.


Correction: I only looked at RAM and commit above, not at the card's own memory. With WINDOW_KB unset, a 12 GB card goes over its video memory budget, and in a longer session the device was lost.

The per-run maximum of the "memory now" line (card's own memory in use against its budget) from the same four runs:

Run Unset Card's own, max Budget, min Samples over budget
A nothing 9.9 GB 9.9 GB 0 of 306
C INPLACE 10.0 GB 9.9 GB 0 of 259
B WINDOW_KB 10.4 GB 9.8 GB 191 of 318
D all three 10.6 GB 10.1 GB 198 of 321

Those were short window stands, so it only showed up as time over budget. Then I played normally with all three unset (release build, --res 1080to1440, same commit, further into the prologue):

  • From about 6 minutes into the world, the card was over budget: 10.9 GB in use against ~10.8 GB, with repeated "the card has no room for new ones".
  • The PC's shared memory then grew from 5.4 to 7.7 GB, past its 7.45 GB budget.
  • Fps fell from 7-11 to 0.8 for about two minutes while video memory was paged back and forth.
  • Then the device was lost: 0x887A0005, then device removed ... 0x887A0006 at a fence wait.
  • No driver reset (Display 4101 / nvlddmkm) was logged by Windows.

So for a 16 GB PC with a 12 GB card:

  • WINDOW_KB isn't safe to turn off. It keeps the card within its budget.
  • INPLACE alone stayed within budget in run C. That was a short run, though, and I haven't verified it over a long session.

I've gone back to all three on for my own play. The suggestion above should be narrowed to INPLACE at most, and only with a longer check of the card's budget first. Sorry for the noise.

AI-assisted: yes

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7302899661 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/489#issuecomment-7302899661). Originally posted by [Indy2l](https://github.com/Indy2l) on 2026-12-01T06:27:49Z. --- Correction: I only looked at RAM and commit above, not at the card's own memory. **With WINDOW_KB unset, a 12 GB card goes over its video memory budget, and in a longer session the device was lost.** The per-run maximum of the "memory now" line (card's own memory in use against its budget) from the same four runs: | Run | Unset | Card's own, max | Budget, min | Samples over budget | |---|---|---|---|---| | A | nothing | 9.9 GB | 9.9 GB | 0 of 306 | | C | `INPLACE` | 10.0 GB | 9.9 GB | 0 of 259 | | B | `WINDOW_KB` | 10.4 GB | 9.8 GB | 191 of 318 | | D | all three | 10.6 GB | 10.1 GB | 198 of 321 | Those were short window stands, so it only showed up as time over budget. Then I played normally with all three unset (release build, `--res 1080to1440`, same commit, further into the prologue): - From about 6 minutes into the world, the card was over budget: 10.9 GB in use against ~10.8 GB, with repeated "the card has no room for new ones". - The PC's shared memory then grew from 5.4 to 7.7 GB, past its 7.45 GB budget. - Fps fell from 7-11 to 0.8 for about two minutes while video memory was paged back and forth. - Then the device was lost: 0x887A0005, then `device removed ... 0x887A0006` at a fence wait. - No driver reset (Display 4101 / nvlddmkm) was logged by Windows. So for a 16 GB PC with a 12 GB card: - **WINDOW_KB isn't safe to turn off.** It keeps the card within its budget. - **INPLACE alone** stayed within budget in run C. That was a short run, though, and I haven't verified it over a long session. I've gone back to all three on for my own play. The suggestion above should be narrowed to INPLACE at most, and only with a longer check of the card's budget first. Sorry for the noise. AI-assisted: yes
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
TaynanGT/Vice-Tay#489
No description provided.