No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!59
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/59/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@hatefulpineapple on GitHub · 2026-11-29 21:26 UTC · original
hatefulpineapple:integrate/memory-prs→main· +22381 −19669 · 68 files · 65 commits · closed without mergingSupersedes #54. This branch is the project's working main merged with current
origin/mainand the two community memory PRs, gated on Windows.What is inside
Shader emitter refactor (phases 1–2).
emit/lower.rs14,265 → 1,665 lines: method clusters and free functions moved verbatim intoemit/lower/(26 files). Phase 2:emit/mod.rs3,380 → 204,resource.rs4,151 → 474, tests split intoemit/tests/andresource/tests/. Visibility rules and a verbatim-move proof script are documented indocs/refactor-victory-shader.md. Gates: macOScargo test -p victory-shader205/0/2, Windows 290/0/4, clippy clean on the moved code.GPU memory fixes. Pool: best-fit placement (tightest hole, exact fit first, lowest address on tie) so holes join into whole blocks the reclaim tick returns; resting pieces accounted separately and no longer credited as room. Promotion gate L0→VRAM:
used < room_line(budget)instead of a line a tenth of the budget below it, which steady play never reached; overshoot still bounded (headroom,VICTORY_ROOM_REAL, 64 MB/look, idle + sole-ref). Measured problem: 1.1–1.9 GB free inside blocks while 24,000 textures (2.4 GB) spilled to PC memory (RTX 4070 SUPER).Sony pads over raw HID. DS4 / DualSense / DualSense Edge read directly (VID 054C), USB + Bluetooth: report layouts, CRC and rumble per the kernel's
hid-playstationdriver. Touchpad click reads as View.VICTORY_HID_PADS=0: XInput only. Keep-awake: the title-window thread holdsES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIREDwhile alive (VICTORY_KEEP_AWAKE=0restores the old behavior).#50 integrated (rebased + one fix).
VICTORY_HEADROOM_SPARES=1caps speculative empty texture heaps under DXGI-headroom pressure (hysteresis 2560/3072 MiB). The rebase onto current main is mechanical. Follow-up fix: the cap was only enforced on the once-a-secondroom()tick — the allocation pathtake_ripe → rested()still read the uncapped globalSPARES, so a burst could hold up to 64 empty blocks between ticks. The texture pool now has its own spares atomic (TEXTURES_SPARES,Pool::new_with_spares); staging and PC pools keepSPARES. Regression test included. Credit: @Tristan1019-user.#51 integrated as-is (opt-in).
VICTORY_INPLACE_VIEWS=1: windows over the page pool remapped through the runtime's own views (OwnViews) and opened by address — no copies, no driver pinning of copies; churn capVICTORY_INPLACE_VIEWS_CHURN; soft writes through the section (SoftViews::write); descriptor remake for let-go copies; plus always-on fixes: theIN_PLACE_PAGESindex (was 1.5–3.4 s/frame of remap scanning), window creation outside theLOOSElock, aGetWriteWatchrefusal cache, and a try-lock queue fortitle_memory_made_real(fixes a 76 s deadlock). Credit: @kc01-8.Known accepted risk (opt-in only): the shared zero section is
PAGE_READWRITEand window buffers are UAV-capable, so a UAV store to a title-unmapped page would write the shared zeros of every window, silently. The fault-retry path was verified safe (xmem::materialize_formaps the section itself before the deferred guard bookkeeping). Runtime A/B on Windows native is pending; the Proton measurements are the author's.Merge with current main. The block-size/PACK experiments (
d871a99), the aliasing-barrier change (cdacce2),texture_in_holes(97f379e) and the launcher settings (aba2e9c) are merged in. Thepool.rsconflict keeps best-fit insideRanges::placewithtakegoing through it (free-byte accounting preserved);texture_room()=texture_block()− held − resting.Verification
room()glue).cargo test -p victory-gpu464/0/37,cargo test -p victory-hle180/0/2; clippy 56 warnings — all pre-existing across gpu+hle, none in the changed code; releasevictory.exebuilt and delivered.VICTORY_INPLACE=1/VICTORY_INPLACE=1 VICTORY_INPLACE_VIEWS=1 VICTORY_SOFT_VIEWS=1; for #50:VICTORY_HEADROOM_SPARES=1, watching the texture-blocks line andHOLES_USED. Results will be recorded indocs/bug-journal.md.@readmet3xt-lab on GitHub · 2026-11-30 02:14 UTC · original
Taken from this PR with credit, in
c399996:VICTORY_HID_PADS=0turns it off.VICTORY_KEEP_AWAKE=0turns it off.One change: the once-a-second look for pads now skips every HID device whose path lacks Sony's vendor id (
054c) before opening it, so keyboards, mice and headsets are not opened each second.crc32is test-only now (clippy).Not taken:
victory-shaderrefactor: a verbatim move of about 20,000 lines with no runtime change. It conflicts with shader work in progress here and would make every later port into that crate harder.Closing this one and #54. Thanks.
Pull request closed