feat(runtime): add a settings file for values found during bring-up #66
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!66
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/66/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Dark3581 on GitHub · 2026-11-23 01:55 UTC · original
Dark3581:feat/bringup-settings→main· +268 −4 · 12 files · 1 commits · merged 2026-11-23 01:59 UTCWhat
A settings file for build-dependent values found during bring-up, so trying one needs no rebuild:
AbxSetting(key)in the runtime:anybox.cfgbeside the executable (or the fileANYBOX_CONFIGnames) once, on first use rather than inDllMain, andANYBOX_SET="key=value;..."overrides it for one run;key = valueper line, with#starting a comment so each value can carry where it came from;setting d3d12_x.descriptor_size.render_target = 128 (from anybox.cfg:7);runtime/src/Settings.cpp.DescriptorSizesFromSettingsreadsd3d12_x.descriptor_size.{shader_resource,sampler,render_target,depth_stencil}into theDescriptorSizesfrom #63.ParseDescriptorSizeaccepts decimal or0xvalues from 1 to 65535 and refuses anything else with the key named. The device is to read these values when it exists; until a value is set, heaps of that type stay refused as before.docs/dev/GAME_TESTING.mdgets "Settings for values found during bring-up": the file format, a provenance comment example, the rule that a value only becomes a default once confirmed and sourced, and the key table. The descriptor-size debt entry points at the keys.Tested
Windows 10, MinGW (GCC) and MSVC 2022.
pso_probe settings-selftest, run by thepipeline_statetest in three configurations:ANYBOX_SET. Checks: the sizes come out as 32/16/128/48; the override and an unrelated key are read; an unset key is null; the log has the count, the malformed-line and replacement warnings, and one source line per read key;ANYBOX_CONFIGfile: all four sizes stay unset and the unreadable file is logged;It also checks
ParseDescriptorSizewith hexadecimal, unset, and six bad inputs.MinGW
ctest: 73 of 73. With MSVC,pipeline_stateand the stub e2e tests pass, and every target builds exceptab_gameinput, which needsgameinput.lib, which this machine doesn't have.python tools/check_conventions.pyanddebt_fold.py --check: ok.The values in the test file are test values, not a console's.
Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md