Skip to content

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

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

notdxbi wants to merge 1 commit into
ivall: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>
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