XGameRuntime: XNetworking configuration settings and statistics #843
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!843
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-843"
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?
@mastrr9 on GitHub · 2026-11-24 06:39 UTC · original
mastrr9:feat/xgameruntime-xnetworking-config-stats→main· +106 −0 · 3 files · 1 commits · openImplements
XNetworkingQueryConfigurationSetting,XNetworkingSetConfigurationSetting, andXNetworkingQueryStatistics(slots 18–20 ofbf2346b2ingdk_table.rs, previously returningE_NOTIMPL) and wires them into bothapi.rsandmod.rsexports:XNetworkingConfigurationSettingvalues (Title / System / Tools max TCP queued receive buffer size) to the documented console defaults (32 MiB,4 MiB,UINT64_MAX), persists anyu64written by the title, and rejects unknown settings or null pointers withE_INVALIDARG.XNetworkingQueryStatisticswrites only the 40-byte zeroedXNetworkingTcpQueuedReceivedBufferUsageStatisticssubstructure for statistics types 0–2 (leaving trailing union bytes untouched) and returnsE_INVALIDARGon invalid kind or null pointer.configuration_settings_keep_what_the_title_setsandstatistics_write_only_the_substructureplus the 40-byte layout assertion.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled3c0958146b51432ef95de52f9ad1f40cc77c20f9cargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 715 passed, 0 failed, 41 ignored (new testsconfiguration_settings_keep_what_the_title_setsandstatistics_write_only_the_substructurepassed)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: #843
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 07:06 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
3c09581(on its basebeaa245).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 715 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.configuration_settings_keep_what_the_title_sets,statistics_write_only_the_substructure.Not tested
AI use
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
3c09581onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 11 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum). XNetworking settings/statistics tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@Toons29 on GitHub · 2026-11-25 03:03 UTC · original
Regression run of
74372371on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 05:57 UTC · original
Empirical test report (
74372371)Tested PR #843 at
743723717ea05fabe5ebbb6653afe828dead202ffrom a clean checkout.Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09), hostx86_64-pc-windows-msvc. DXC1.9.2609.5 (01b62ad47). Cargo test profile was unoptimized with debug info and incremental compilation disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran directly, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and produced 16 test executables.cargo test -p xcl --lib -- --nocapture --exact hle::xgameruntime::networking::tests::struct_layouts_match_gdk_abi hle::xgameruntime::networking::tests::configuration_settings_keep_what_the_title_sets hle::xgameruntime::networking::tests::statistics_write_only_the_substructureexited 0. The log recorded 3 passed, 0 failed, 0 ignored, 0 skipped and 692 filtered out. The selected tests call CPU code and do not initialize D3D12 or a GPU adapter.Observed behavior
u64::MAX. It round-tripped title values of 0, 1 MiB,u64::MAX, and 32 MiB, and checkedE_INVALIDARGfor unknown query and set selectors and a null query output.E_INVALIDARGfor an unknown selector and a null output.Not tested
The full GPU workspace suite and the game smoke runs on main and PR head were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr843-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 10:27 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.