Skip to content

gpu, docs: measure Windows commit for host textures - #83

Open
PrivacyOnion wants to merge 1 commit into
MiamiGame:mainfrom
PrivacyOnion:gpu/texture-commit-probe
Open

PrivacyOnion wants to merge 1 commit into
MiamiGame:mainfrom
PrivacyOnion:gpu/texture-commit-probe

Conversation

@PrivacyOnion

Copy link
Copy Markdown
Contributor

What and why

Part of #74.

Add an ignored Windows probe that compares commit and DXGI usage for
synthetic committed, placed and reserved DEFAULT textures. The reserved
case maps every tile to one backing heap, unmaps the tiles and samples
again after releasing the textures and heap.

The RTX 5070 and WARP both charged about 2 GiB of process commit for the
committed or fully mapped textures. Evicting committed textures and
unmapping tiles with the backing heap still live left the process charge
in place. The VRAM analysis records all five counters and the release
samples. Results from more drivers are wanted.

Fixes: none
Depends on: none

Area

xtp-gpu tests and VRAM analysis documentation.

Tests

  • cargo xtask pr-check passes on my machine with --skip test
  • New or changed behaviour has tests that need no game files, or I explain below why it cannot
  • Ran on a title: no

cargo test -p xtp-gpu --lib texture_commit_probe -- --ignored --nocapture
passed offline on NVIDIA GeForce RTX 5070 (32.0.16.1664) and WARP
(10.0.26100.9818) on Windows 11 25H2 build 26200.9974. Used
XTP_TEST_ADAPTER=hardware and XTP_TEST_ADAPTER=warp with
XTP_BUFFER_POOL=0 for both runs. The same test filter without --ignored
reported the probe as ignored.

Provenance

  • I wrote all of this change myself for XTP, or it only moves code already in XTP.
  • Some of it comes from elsewhere. Each source, its licence and the files concerned are listed here, and every licence is compatible with GPL-3.0-or-later:

Adapted the probe I wrote for the table in #74 (never pushed) and followed
XTP's GPU test and resource allocation code. Consulted public Win32 API documentation. No
XCL or AnyPS5 source was read.

AI assistance: AI coding tools wrote this change and its tests, mainly OpenAI Codex.

Checklist

  • No game data, keys, console SDK code or headers, and nothing that circumvents DRM (asset policy)
  • No code copied from xcl or AnyPS5 (references only: read them to understand, write your own)
  • I agree to license this contribution under GPL-3.0-or-later
  • Title and every commit follow <area>: <summary>; one topic; under 400 changed lines, or the reason is above
  • Docs updated where behaviour, commands or variables changed (README, docs/)

@github-actions github-actions Bot added area/gpu touches crates/xtp-gpu area/docs docs/, Markdown size/M 100 to 399 changed lines labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs docs/, Markdown area/gpu touches crates/xtp-gpu size/M 100 to 399 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant