Skip to content

GPU: separate texture and staging memory budgets for VRAM presets - #4

Draft
ChaerilM wants to merge 1 commit into
feat/env-performance-presetsfrom
perf/texture-budget-profiles
Draft

ChaerilM wants to merge 1 commit into
feat/env-performance-presetsfrom
perf/texture-budget-profiles

Conversation

@ChaerilM

Copy link
Copy Markdown
Owner

Stacked on #3 so the preset launcher and VRAM target are available. Merge #3 first, then retarget this PR to main if GitHub does not do so automatically.

Changes

  • Adapt VItoriaBr's texture-budget setting to the current reloadable texture eviction model: VICTORY_TEXTURE_BUDGET_MB bounds the desired bytes of deduplicated eligible host texture copies, with 5% headroom when exceeded. Combine pressure with the DXGI target using max, not sum. Not an allocation gate; pinned, in-flight, GPU-written and other allocations may remain.
  • Adapt fxceless staging pool tuning: VICTORY_STAGING_POOL_MB limits idle retained standalone buffers and 32 MiB chunks. Default 576 MiB exactly preserves existing 64 MiB plus 16 chunks behavior; zero retains none. In-flight staging can exceed budget.
  • Populate all six presets, validate both new numeric keys, document provisional values. 8/12/16 GB profiles have 4096/6144/8192 MiB reloadable texture targets and 128/256/576 MiB idle staging budgets respectively. The high profile keeps default staging retention; low reduces it to 128 MiB.
  • Tighten previous PR's default DXGI hysteresis arithmetic and Windows-only test annotation. Add pure regression tests.

Verification and limits

Reviewed GitHub diff against PR #3. No Rust build, PowerShell execution, Windows GPU tests, or gameplay measurements performed. Values chosen as starting points, not measured or guaranteed. Separate GPU card-buffer migration and texture no-wait are not ported: their source architecture differs from this branch. Test each switch individually; look for texture churn, missing draws, VRAM, system commit, median/p95/p99 frame time. Earlier PR #1/#2 switches still require their runtime backports. No main changes.

Adapt VItoriaBr texture budget and fxceless staging-pool tuning to the existing synchronous eviction and upload paths. Preserve default behavior, add regression tests and hardware preset values.

Stacked on PR #3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant