Repository navigation
Conversation
watch::allocation reads the Private bit from the flags of QueryVirtualMemoryInformation's region information. Wine fills no flags for any region, so under Wine every reservation looked like a view: the grouping by reservation in Shadow::update_ready never took the private path, and each range was asked about on its own. When the flags are all zero, take the allocation type from VirtualQuery (MEM_PRIVATE) instead. On Windows the flags are set and nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
GPU: ask for directly indexed SRVs' written pages once per span of title memory
Marvisak/VIctory#600
Closed
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.
A small fix for Marvisak#185 under Wine (Proton), against this branch.
Problem
watch::allocationreads the Private bit from the flags ofQueryVirtualMemoryInformation(MemoryRegionInfo). Wine fills no flags for any region (all zero), so under Wine every reservation looks like a view:Allocation::privateis always false,is_private_spannever holds, and the grouping by reservation inShadow::update_readynever takes the private path; ranges in private memory are asked about one by one.Change
When the flags are all zero, take the allocation type from
VirtualQuery(Type == MEM_PRIVATE) instead. On Windows the flags are set and nothing changes.Tested
allocation_tells_private_memory_from_views: aVirtualAllocreservation is reported private, a mapped view is not. Under Wine (proton-cachyos) it fails without the change ("a VirtualAlloc reservation is private") and passes with it; the otherwatchtests pass.maind2a4bae+ this branch (head1efd438) + GPU: bind root SRVs as one-view tables bounded to their host copy Marvisak/VIctory#493 (+GPU: drop draws whose fresh tables cannot be made; 2^18 dynamic slots Marvisak/VIctory#336) + Shaders: query a descriptor's level count only when word 3 is read Marvisak/VIctory#259, Shaders: key heap handles by element type (atomic on a float-read UAV) Marvisak/VIctory#177, Link victory.exe with a 16 MiB default thread stack Marvisak/VIctory#151, story mode byVICTORY_KEYS. Same world window, 20 lines each, medians:With this, private memory is grouped here as on Windows. Most of the remaining questions are ranges of different host copies in one reservation; sharing one question across copies on top of this took them to about 4,500 per frame (24 ms), which I'm following up separately (Marvisak#600). Frame time does not follow the questions much: what remains of a world frame here is not in them.
AI-assisted (Claude Code).
🤖 Generated with Claude Code