Skip to content

XGameRuntime: try_update instead of the deprecated fetch_update - #251

Closed
mmmharius wants to merge 1 commit into
xcl-dev:mainfrom
mmmharius:fix/atomic-try-update
Closed

mmmharius wants to merge 1 commit into
xcl-dev:mainfrom
mmmharius:fix/atomic-try-update

Conversation

@mmmharius

Copy link
Copy Markdown
Contributor

Rust 1.100 deprecates AtomicU32::fetch_update (renamed try_update), so every build of the workspace prints a warning from XUserCloseHandle (hle/xgameruntime/mod.rs). This is the only use in the repository.

try_update takes the same arguments and behaves the same; it is stable since Rust 1.95, so older stable toolchains still build.

Tested on Windows with an NVIDIA RTX 3060, rustc 1.100: the build has no warning left, scripts/test.ps1 all green (611 passed, 0 failed, 20 ignored).

Rust 1.100 deprecates AtomicU32::fetch_update (renamed try_update, stable since
1.95), so every build warned. Same arguments and behaviour.
@futurepro62

Copy link
Copy Markdown

Tested exact head 8e091d7 (on its base 60565c4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 651 passed, 0 failed, 40 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The build of this head prints no deprecated warning; main (and other PR heads built here) warn about fetch_update in xgameruntime/mod.rs on Rust 1.100.0.
    Not tested
  • A retail title or scripts/smoke.ps1 (no title on this machine), AMD, wave64 hardware, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Closing for now as a standalone deprecation cleanup. Main still uses fetch_update; this close does not imply the change has been applied. Thank you for the contribution.

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.

3 participants