diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-24 17:45:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 17:45:58 -0500 |
| commit | 0f98d193c5eaac6495d48c273a5db7194aab30d6 (patch) | |
| tree | 61e76ed8093f8feb3cb48b198f69ac933336287a /runtime/src/thread_stacks.cpp | |
| parent | 89d7dfcf5fc36a5badb6a87f422fd66208c73588 (diff) | |
| parent | 6cb16a4fa8fdcdbc9d381280d75e63d046f03d1e (diff) | |
Merge pull request #441 from jujumoneylol/pr/title-memory-cap
Merging.
**Why merged:** RT-TITLE-MEMORY-CAP: `LEONIDA_TITLE_MEMORY_MB` (MiB, clamped to 2048..65536) overrides what `XSystemGetAppMemoryUsageLimit` and `XMemGetWorkingSetStatistics` report. I held this earlier for one reason: the env var wasn't documented, so `test_docs_env_vars` failed. The author fixed that in 6cb16a4fa (runtime/README.md overrides table). Kokonotcu's idea of a different default budget was accepted as a follow-up.
**Why it's good:** the env read is bounded: `GetEnvironmentVariableA` into a 32-byte buffer, then `strtoull`, rejecting a sign, trailing text, 0 and overflow. Tested on Windows 11 / RTX 4070 SUPER, VS 2022 + Ninja RelWithDebInfo, merged onto main 2a5ff9714 together with #992:
- the repo-consistency set (now including test_ctest_registration) gives 578 passed / 5 skipped / 0 failed;
- docs tests give 47 passed, including test_docs_env_vars;
- full ctest gives 316/317, where the only failure is main's pre-existing `d3d12_depth_resolve`, and xmem and xgameruntime pass;
- `d3d12_*` tests under validation give 119/120 with 0 VUIDs.
git merge-tree against current main 89d7dfcf5: no conflicts.
Small follow-ups, not blockers: the README row says "Caps", but a value above host RAM raises the reported limit (up to 64 GiB). The parsing is duplicated in xgameruntime.cpp and xmem.cpp, so a shared helper would keep them in sync. Separately, the xmem check "mapping them does not charge them" measures system-wide commit charge, so it can flake on a heavily loaded machine. It passed 120/120 repeats on an idle one, and that's unrelated to this PR.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions