Skip to content

XGameRuntime: with XCL_NETWORK=0 the connectivity hint says no network - #494

Draft
notdxbi wants to merge 1 commit into
xcl-dev:mainfrom
notdxbi:pr-offline-connectivity
Draft

notdxbi wants to merge 1 commit into
xcl-dev:mainfrom
notdxbi:pr-offline-connectivity

Conversation

@notdxbi

@notdxbi notdxbi commented Nov 24, 2026

Copy link
Copy Markdown

With XCL_NETWORK=0 every request of the title fails, but XNetworkingGetConnectivityHint still answered with the host's connectivity (InternetAccess). A retail game then took itself to be online and kept asking its online service for a ticket (CreateTicketXbl3, "no Xbox Live", with growing gaps). With the hint at None, as on a console without a network, it asks for no token at all and goes on to stream its world. Part of #175 (comment with the runs: #175 (comment)).

What is in it

  • hle/xgameruntime/networking.rs: the level is worked out in connectivity_level(host, network_off); with XCL_NETWORK=0 it is 1 (None). Without XCL_NETWORK=0 nothing changes.
  • Test connectivity_level_without_network_is_none. Without the change it fails ("host None, network off").

Tested

  • RTX 5060 8 GB (NVIDIA 595.112.07), Ryzen 7 5700X, Linux under Wine 11.22 Staging (vkd3d-proton master with the two from_iface checks relaxed and -Db_ndebug=true, as in Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257; DXVK 3.1.1 dxgi), Rust stable x86_64-pc-windows-gnu (cross-built), release
  • lib suite on this branch (main 2997c9a + this commit): CPU tests --skip gpu:: --test-threads=4: 364 passed, 0 failed, 3 ignored; GPU tests gpu:: --test-threads=1: 271 passed, 0 failed, 18 ignored (run serially: with 4 threads this card sometimes loses the device, NVRM Xid 109, in tests this change does not touch). mesh_dispatch::tests::gpu_* / paired_* were excluded: they hang this GPU on main too.
  • SKIPPED on this adapter: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)
  • Retail title (Series X profile), XCL_NETWORK=0, A pressed at the account prompt: before, token requests every ~16 s; after, none, and the title streams its world after the intro and the loading screen.

Regression run

  • None: scripts/smoke.ps1 needs Windows (see Not tested).

Not tested

  • Windows: no Windows machine here, so no scripts/smoke.ps1 blocks and no MSVC build; this PR needs someone to run the regression on Windows before it can be merged.
  • AMD.

AI use

  • Claude Code with Claude Opus 5.5: found the cause, wrote the change, the test and this description. The runs and numbers are real, on the hardware above; the PR is opened by me after checking them.

🤖 Generated with Claude Code

XNetworkingGetConnectivityHint answered with the host's connectivity
(InternetAccess) even with XCL_NETWORK=0, where every request fails. A
retail game then took itself to be online and kept asking its online
service for a ticket (CreateTicketXbl3, "no Xbox Live", with growing
gaps). With the hint at None (a console without a network) it asks for
no token at all and goes on to stream its world.

The level is worked out in connectivity_level, tested for both cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ghost

ghost commented Nov 24, 2026

Copy link
Copy Markdown

Windows / MSVC run, since Not tested asks for one: bf21fd8 merged onto main 7ebf1b8 (clean merge) builds and passes.

Tested

  • AMD Radeon RX 9060 XT (RDNA4), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build.
  • .\scripts\test.ps1: 678 passed, 0 failed, 41 ignored; no SKIPPED GPU tests.
  • cargo test -p xcl --lib connectivity_level_without_network: connectivity_level_without_network_is_none passes.

Not tested

  • smoke.ps1 (no retail title here yet).

AI use

  • Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.

@vibryxcx

Copy link
Copy Markdown

Windows regression run with a retail title, which Not tested asks for (the comment above ran the suite only). The fix shows on Windows too: no token requests with the PR.

Tested

  • AMD Radeon RX 6800 (RDNA2, driver 32.0.21045.5002), Intel Core i5-10600KF, Windows 11 build 26200, Rust 1.100.0 MSVC, release build. cargo clean --release -p xcl before each build.
  • This PR's head bf21fd8 as it is, against its base, main 2997c9a. No uncommitted changes. scripts/smoke.ps1 sets XCL_NETWORK=0.
  • Standard run: scripts/smoke.ps1 -Game <folder> -Seconds 60, no input. Menu run: XCL_PRESS_A_AT=14,17,21,40,60,66,72, -Seconds 180.
2997c9a bf21fd8
XUser: token … lines, 60 s run 6 (last at 37 s) 0
XUser: token … lines, 180 s menu run 8 (last at 135 s) 0
frames shown, 60 s / 180 s 599 / 537 698 / 564
DirectStorage requests, 60 s / 180 s 9,766 / 18,901 9,766 / 18,901
crashes / device removals 0 / 0 0 / 0
peak commit, 60 s / 180 s 15,171 / 15,555 MB 15,143 / 15,532 MB

On 2997c9a the first token lines are CreateTicketXbl3 and ros.rockstargames.com, none: no Xbox Live (0x80072EFD), as in the description.

Regression run

main 2997c9a:

xcl-smoke v1
commit: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21
gpu: AMD Radeon RX 6800
title: GTA6
seconds: 60
exit: 0x0
frames shown: 599 (PresentX 599)
presents per 2 s (last 3): 35 36 34
device removals: 0
crashes: 0
peak commit: 15171 MB

This PR bf21fd8:

xcl-smoke v1
commit: bf21fd8eff8aef2fed3de4a321673f85a01c7588
gpu: AMD Radeon RX 6800
title: GTA6
seconds: 60
exit: 0x0
frames shown: 698 (PresentX 699)
presents per 2 s (last 3): 38 35 34
device removals: 0
crashes: 0
peak commit: 15143 MB

Not tested

  • The world streaming the description reports after the fix: in 180 s neither build gets past the menus here (same DirectStorage request count, both end at 2 – 4 presents per 2 s).
  • The suite on this machine (RDNA4 is covered above); NVIDIA on Windows.
  • One run of each.

AI use

  • Claude Code (Claude Opus 5.5): ran the tests and wrote this report.

@Kalmarv

Kalmarv commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Regression run for this PR's head on Windows, as asked in #175.

Tested

  • Windows 11 Pro 25H2 (build 26200), AMD Ryzen 9 9950X, 32 GB RAM, NVIDIA GeForce RTX 5070 Ti (driver 610.74), Rust 1.99.0, release builds (cargo build --release -p xcl) from clean checkouts
  • main: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21 (this PR's base); PR head: bf21fd8eff8aef2fed3de4a321673f85a01c7588, no uncommitted changes
  • scripts/smoke.ps1 -Game <title folder> -Seconds 60 on a retail title, main first, after one 60 s warm-up run of main; both sides start from the same learned coherent-window size
  • PR 1516 frames vs main 1446 (105 %), peak commit 14541 vs 14542 MB (100 %); 0 crashes and 0 device removals on both sides, both exited 0x0
  • The change is reached: main's run logged 6 token requests (XUser: token #0-#5, five of them none: no Xbox Live, at 10.7, 10.8, 24.6, 45.6 and 59.2 s); the PR's run logged none

Regression run

main:

xcl-smoke v1
commit: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21
gpu: NVIDIA GeForce RTX 5070 Ti
title: GTA VI
seconds: 60
exit: 0x0
frames shown: 1446 (PresentX 1446)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14542 MB

PR:

xcl-smoke v1
commit: bf21fd8eff8aef2fed3de4a321673f85a01c7588
gpu: NVIDIA GeForce RTX 5070 Ti
title: GTA VI
seconds: 60
exit: 0x0
frames shown: 1516 (PresentX 1517)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14541 MB

Not tested

  • Whether the title gets further than on main: 60 s runs only, nothing past the first minute
  • cargo test --workspace (not run for this report)
  • AMD GPUs, other titles

🤖 Claude Opus 5.5

@OrangeCrane1738

OrangeCrane1738 commented Nov 24, 2026 •

Copy link
Copy Markdown

Test report for bf21fd8 on the retail title: one 120 s smoke run without this PR and one with it.

Tested

Smoke runs

main 930e8b4 + #235

xcl-smoke v1
commit: 5ff0bc1dc345610b1b802eb0f719db805cf5a8b3
gpu: NVIDIA GeForce RTX 5060 Ti
title: GTA6.Xbox.v1.0.2.1
seconds: 120
exit: 0x0
frames shown: 922 (PresentX 922)
presents per 2 s (last 3): 19 20 19
device removals: 0
crashes: 0
peak commit: 17234 MB

main 930e8b4 + #235 + #494 (bf21fd8)

xcl-smoke v1
commit: 9426f5d753b51ed698af7545cd99023bbad04c6e
gpu: NVIDIA GeForce RTX 5060 Ti
title: GTA6.Xbox.v1.0.2.1
seconds: 120
exit: 0x0
frames shown: 1025 (PresentX 1025)
presents per 2 s (last 3): 20 19 19
device removals: 0
crashes: 0
peak commit: 17061 MB

Not tested

  • Runs of main and of this PR's head as they are (no Gaming Services here, see above).
  • Whether the title streams its world sooner: no difference within 120 s here.
  • AMD; the cargo test suite (not run for this report).

AI use

  • Claude Opus 5.5 (in the Claude app): set up the test script, read the logs and wrote this report. The runs were made on my own machine with my own copy; nothing from the game is attached.

@LukaManstein

Copy link
Copy Markdown

Test report on Windows (the PR was tested under Wine only so far).

Setup: NVIDIA RTX 3080 Ti 12 GB (wave32), Windows 10 21H2 (19044), 32 GB RAM, retail title 1.0.2.1 (package complete). This PR's commit merged onto main de36462 (no conflicts), cargo build --release -p xcl. Same scripted A presses in both runs (XCL_PRESS_A_AT=130,140,150), XCL_NETWORK=0.

Result: with the PR the title asks for no Xbox Live token at all; on main it asked 9 times (XUser: token #n for POST …/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072EFD)) in the same 300 s. No regression: more frames, lower peak commit, no device removal or crash.

300 s run main de36462 main + #494
token requests 9 0
frames shown 7752 8196
peak commit 17498 MB 16763 MB
unique shaders seen 11183 11688

Earlier, longer runs on an older base (main 47efa2e, no PR): DirectStorage requests dropped to 0 at about 245 s, while the token requests went on, and the title stayed on its dark loading screen for 6 min. With this PR (on main 6567c5f) it kept streaming for 17 min, through the full-colour loading art and ~19,000 shaders, until video memory (12 GB) was full; it did not reach the world in that time. In the 300 s pair above, main de36462 was still streaming at the end too, so this pair does not show the stall itself.

Regression run

xcl-smoke v1
commit: de36462e0b1043b915a418d4591ed1e397622ede
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9cc6a39e
seconds: 300
exit: 0x0
frames shown: 7752 (PresentX 7752)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17498 MB
xcl-smoke v1
commit: 8515bfa3668c2c8f91c431400c96737fe167d6eb
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9cc6a39e
seconds: 300
exit: 0x0
frames shown: 8196 (PresentX 8197)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16763 MB

(8515bfa is this PR's bf21fd8 merged onto de36462, not the PR's own head.)

Not tested: the full test suite on this merge; reaching the world (video memory runs out first on this card).

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this text; I reviewed it.

IvyNotFound added a commit to IvyNotFound/xcl that referenced this pull request Nov 25, 2026
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.

5 participants