Repository navigation
Conversation
…t window On a CPU without CLZERO (Intel), every emulated CLZERO / CLZERO loop checked its target with is_writable, which calls VirtualQuery. VirtualQuery sizes the region by walking it to its end, and the coherent window is one committed region of up to 4 GiB: ~40 ms a call (the cost uma::in_committed_window already notes for DirectStorage). The retail game runs about 25 emulated instructions a second, nearly all of them CLZERO loops into that window, and two thread dumps 5 s apart found its main thread in the exception handler both times: 1-2 presents a second. The coherent window is committed and read-write as a whole, so a target inside it is writable without asking; readable() and read_committed() already take this path. Measured on the retail game (RTX 5080, i5-12600K): ~1.5 fps -> 30 fps (the title's frame clock) on its first-run and account screens, and it reaches the Navigation menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #278
What is in it
crates/xcl/src/eh.rs:is_writablereturns early for a range inside the committed coherent window (+5 lines)Tested
cargo test --workspace -- --test-threads=4: 652 passed, 0 failed, 40 ignored (SKIPPED:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64)is_writablefaster, its answer for the coherent window is the same as before, so a test that fails without it would have to timeVirtualQueryXCL_NETWORK=0: ~1.5 fps → 30 fps (the title's frame clock) on the first-run and account screens, and it now reaches the Navigation menu. Before the fix, two thread dumps 5 s apart had the main thread in the exception handler undergame_scarlett_master.exe+0x4e8aab0(a CLZERO loop) both timesgpu: Virtual Desktop Monitor:smoke.ps1takes the first display adapter, a virtual one on this machine; both runs were on the RTX 5080Regression run
main:
PR: