Skip to content

Add .env performance presets for default, low, high and 8/12/16 GB VRAM - #3

Draft
ChaerilM wants to merge 2 commits into
mainfrom
feat/env-performance-presets
Draft

ChaerilM wants to merge 2 commits into
mainfrom
feat/env-performance-presets

Conversation

@ChaerilM

Copy link
Copy Markdown
Owner

Changes

Six authored presets and a PowerShell launcher, optional git-ignored .env overrides, numeric validation, no expression evaluation, and restoration of the caller's managed environment. Asset policy permits only the six exact preset paths; existing asset checks remain. Existing victory.toml still controls paths.

Hardware presets

Based on VItoriaBr's README: 8GB uses a 5120 MiB target, 12GB 7680 MiB (interpolated), 16GB 10240 MiB. Unlike VItoriaBr's separate texture and GPU buffer limits, our new VICTORY_VRAM_TARGET_MB is a soft local memory pressure threshold for the existing eviction system; never raises DXGI's dynamic threshold, and preserves eligible-texture eviction and hysteresis. Default zero preserves the existing behavior. Profiles also use 1024 KiB windows and spare budgets of 0/128/256 MiB respectively. Buffered title reads stay off in hardware profiles. High profile is a separate experiment with buffered reads enabled. The three original runtime switches require PR #1 and #2; the soft VRAM target is implemented in this PR itself. Unsupported VItoriaBr variables are deliberately omitted.

Testing

Added policy and eviction threshold regression tests. Reviewed branch comparison. No Windows PowerShell execution, Rust compilation, tests or gameplay benchmarks performed. VRAM targets are provisional, not hard limits, can increase texture churn, and do not guarantee that an 8GB GPU can run the game. Verify baseline then each hardware profile with identical scenes and driver, record frame times, GPU memory, evictions and image correctness. PR #2 also edits README; reconcile if needed during merge. Paired Wave64 work remains deferred.

Keep existing victory.toml path configuration unchanged. Validate three performance settings, allow git-ignored local overrides, restore the parent process environment, and allowlist only the three authored preset paths in asset policy. Intended for use with PR #1 and #2.
Adapt VItoriaBr hardware-specific preset concept to the current DXGI texture eviction model. Add 8/12/16 GiB profiles, preserving automatic budgets by default. Avoid unsupported fork-only switches.
ChaerilM added a commit that referenced this pull request Nov 27, 2026
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