ROG Ally (Radeon 780M, 4GB VRAM): 3D renders ~25s then VRAM over budget kills the device (0x887A0007) #446
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-11-29T14:47:54Z.
Environment
host D3D12 adapter vram_mb=4002; 11.7 GB usable system RAMCommand
play.ps1 -Exe "\game_scarlett_master.exe" -Machine laptop -Windowed -Build release -Safe
(pack note: victory.exe ships in the pack root but the script looks for target\release\victory.exe)
Observed
Other runs on the same machine
Cross-check: Lenovo Y7000, RTX 4060 Laptop 8GB, Win11
Questions
Attachments: screenshot-3d.png, play*-err.log, [crashes.log](url)[](url)
Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T14:50:50Z.
Some facts from the code for questions 1 and 2. No UMA device here, so these are pointers, not measured fixes.
1. Which budget. The runtime reads
QueryVideoMemoryInfo(DXGI_MEMORY_SEGMENT_GROUP_LOCAL)(Host::video_memoryinhost.rs). Thevram_mb=4002line is onlyDedicatedVideoMemoryfrom the adapter description, used for logging. On an integrated GPU like the 780M, the "dedicated" 4 GB is the BIOS carve-out, and the OS reports a LOCAL budget that also counts system RAM the GPU may use. That's your 8-9 GB. So capping at 4002 MB wouldn't match what the GPU can address. The real limit is that the GPU's memory and the game's memory both come out of the same 11.7 GB. As far as I can see nothing in the runtime treats UMA adapters differently today.The
-Machine laptoppreset assumes a discrete card. It's documented as "an NVIDIA PC with 16 GB of RAM and a 6-8 GB card" (docs/laptop-16gb.md), and on 11.7 GB of RAM it sets:VICTORY_WORKING_SET_MB = max(3072, RAM - 11624)= 3072 MB, the floor, for the game's working set;VICTORY_WINDOWS_BAR_MB=3072, which on a discrete card moves buffer windows off system RAM. On UMA that memory is the same RAM.So on the Ally the preset's two main levers do nothing or work against you.
2. A hard cap. There's no single cap, but these existing knobs decide how much card memory the runtime fills:
VICTORY_TEXTURE_ROOM_PERCENT(50 to 97, default 90). Texture eviction starts a few points below it, so a lower value makes it evict earlier.VICTORY_CARD_BUFFERS_MB, which sizes the card copies of title buffers. The laptop preset uses 256.VICTORY_LEVELS_ON_DEMAND=1, already in the preset.Something like
TEXTURE_ROOM_PERCENT=60,CARD_BUFFERS_MB=128and noWINDOWS_BAR_MBmight be worth a try, but I can't test it. At about 1 s a frame with 3,500 draws, the 780M may also simply be far below what the title needs once it gets there.AI-assisted: yes
Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-11-29T15:12:34Z.
Thanks for the detailed answer - it explains the numbers, and I can confirm your suggested knobs on the 780M (ROG Ally, Z1 Extreme, 11.7 GB usable RAM):
-Machine laptop -SafeVICTORY_TEXTURE_ROOM_PERCENT=60,VICTORY_CARD_BUFFERS_MB=128,WINDOWS_BAR_MB=0VICTORY_TEXTURE_ROOM_PERCENT=50(rest same)-Machine 7900xtx -Safe/-Machine 3060 -SafeSo the texture-room knob does move VRAM (peak at the moment of 3D went from 9.1 GB to ~5.4 GB) but the title still dies, and at ~1 fps with 7545 draws/frame the 780M is clearly far below what the title needs - which matches your last point.
Two suggestions if UMA adapters are ever special-cased:
-Machine umapreset that leavesVICTORY_WINDOWS_BAR_MBunset and sizesVICTORY_WORKING_SET_MBfrom the real shared limit;vram_mbin the log is not a cap (that one cost me a while).I have a repeatable test script on this machine (boots with
-Safe, keeps the window on top, captures the first 3D frame, reports draws/fps/VRAM/survival time), so I can run any build you want checked.Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T15:22:25Z.
Thanks for running those. #447 adds your point 2 to docs/laptop-16gb.md with your numbers. A
-Machine umapreset is for the maintainer to decide, and your test script would be the way to tune one.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:08:51Z.
Thanks @cyl9052 and @Kal0s-design. The measured drop from 9.1 GB to roughly 5.4 GB without improved survival is important: a lower texture budget alone isn't enough. I'd like to evaluate a separate opt-in UMA preset rather than reuse the discrete-GPU laptop preset or impose the 4 GB carve-out as a universal hard limit. It should account for shared memory pressure, leave BAR sizing alone unless evidence supports it, and preserve existing defaults for discrete cards. Please keep the repeatable test script and report WDDM usage/budget, system commit, first 3D frame and time to removal. #447 is a useful documentation change; a functional preset still needs validation on the Ally.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:09:11Z.
Thanks for the 780M measurements. I agree that UMA needs its own opt-in profile rather than treating reserved dedicated memory as the actual budget. Please use the same save and route with one setting changed per run, record LOCAL budget, system commit, working set, device removals and frame times, and keep an unchanged baseline. The documentation can land independently of the experimental preset.
Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-11-30T14:02:47Z.
Post-reboot repeatability on the 780M (machine rebooted, no leftover processes, 6.7 GB free at start). Config:
-Machine laptop -Safe+VICTORY_KEYSwith Enter every 15 s.So after a clean reboot: 1 of 3 runs reaches 3D (about 20 s at 1 fps), the other 2 die during the world load at 10-12 draws. No device removals in any of the three - the reboot did clear that.
Two corrections to my earlier reports, both from checking the shipped binary:
victory.exein our pack (build b99f876b...) does not containVICTORY_POKE,VICTORY_RAM_FLOOR_MB,VICTORY_RAM_WAIT_MS,VICTORY_RAM_WAIT_SHARE_MS,VICTORY_RAM_FRAME_WAIT_MSorVICTORY_WINDOWS_BAR_PERCENTstrings. It does containVICTORY_KEYSandVICTORY_KEYS_FILE. So the RAM throttle from #96 is not in this build, and my earlier "throttle helped" line was noise - please ignore it.VICTORY_KEYSdoes work, format is<seconds>:<Key>/<from>-<to>:<Key>separated by commas (keys: letter, digit, Enter, Esc, Tab, Back, Up, Down, Left, Right) - I read it out ofcrates/victory-hle/src/modules/gameinput.rs. Scripted Enter presses did not change the outcome here.What still holds from the earlier rounds:
VICTORY_CARD_BUFFERS_MB=128was the only knob that consistently moved the failure (3D life 12 s -> 60 s in one run, zero device removals);WINDOWS_BAR_MB=0,WORKING_SET_MB=8192andCARD_BUFFERS_MB=192never reached 3D.Conclusion for this build: the wall is the world load exhausting shared RAM, at ~1 fps even when it does come up. When development resumes, the two things worth having on an iGPU are the #96 throttle in an actual build, and a
-Machine umapreset that leavesWINDOWS_BAR_MBunset. I can run 3 repeats per config on this machine whenever a build with those is available.Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-11-30T14:28:57Z.
One more datum, and a request for when development resumes.
Different layer builds behave very differently on this iGPU. The pack build (AnyXboxX,
build b99f876b) with-Safereaches 3D but lives 20-60 s. The04-victory-amdbuild we have inPLAY\with--console series-sand no other overrides reached 3D once for 100 s, 6012 draws max, ~1 fps - the best result on this machine so far - and an immediate repeat of the same command stopped at 8 draws. So build-to-build and run-to-run variance is at least as large as any knob effect here.Request:
victory.exewe have does not containVICTORY_RAM_FLOOR_MB/VICTORY_RAM_WAIT_*/VICTORY_WINDOWS_BAR_PERCENT(orVICTORY_POKE);-Machine umapreset - my guess at the shape is: throttle on,VICTORY_WINDOWS_BAR_MBleft unset,VICTORY_WORKING_SET_MBkept at the 3072 MB floor,VICTORY_CARD_BUFFERS_MBsomewhere between 128 and 256. I will run 3 repeats per config and report median/min/max (single runs are not trustworthy here, as the numbers above show).Question: is
CARD_BUFFERS_MB=128- the only knob that consistently moved the failure on this machine (3D life 12 s -> 60 s in one run, zero device removals) - something you would bake into the uma preset, or should it stay a manual override?Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T16:59:55Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay:vice-tay.exe play, andVICE_TAY_*switches instead ofVICTORY_*(details in #468). Could you check whether this still happens on the currentmainand say so here, with a log if you can?Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T20:17:49Z.
Some of this moved. Two things in your report don't exist any more, and one thing changed in your favour.
Gone:
play.ps1,-Machine laptop,-Windowedand-Build. It'svice-tay.exe play '<game exe>' --series-snow, and it opens borderless full screen (F1 > FULLSCREEN OFF for a window). Full map in #468.Changed: the settings are picked from the PC instead of a named preset (#474). On a 4 GB card and ~12 GB of usable RAM you now get, without asking:
VICE_TAY_CARD_BUFFERS_MB=256, because the card has under 8 GB - the old default let copies of the game's buffers take far more of it than thatThat's aimed at exactly your
0x887A0007. I'm not going to claim it fixes it - 4 GB is the smallest card anyone has reported here and your run is the only data point, so it's a reasoned change, not a measured one.If you try it again:
vice-tay.exe configfirst, then the run, then the log. The number I'd most like to see is how long the 3D lasts now versus the ~25 s you had.Landed just now. On
mainthere's a profile for a PC with 16 GB of RAM or less that sizes our own caches from the RAM rather than from the 48 GB machine this gets tested on -docs/small-memory.md. It's automatic,--set VICE_TAY_SMALL_MEMORY=offturns it off..ice-tay.exe confignow prints your RAM, Windows' commit limit, how far short of the game's ~48 GB you are, and every switch the profile picked with a reason for each. It starts nothing and asks the graphics driver nothing, so it's safe to paste here.Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-12-01T04:34:54Z.
Thanks - the automatic settings for sub-8 GB cards and the small-memory profile sound exactly aimed at this machine. Two practical problems on my side though:
mainmyself.github-pages, so there is no prebuiltvice-tay.exeI can fetch.Could you attach a build to this issue (or point me at one) - ideally with the small-memory profile and the Series S build? Then I will run exactly this and paste the results here:
and report, 3 repeats: time to first 3D frame, how long 3D survives, max draws/frame, frame time, device removals, median/min/max - so you can compare against the ~25 s I had on the old line.
If no build can be shared, tell me what else is worth measuring on the old build and I will do that instead.
Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-12-01T06:01:25Z.
Built
mainfrom source on the handheld today (Rust 1.100.1,x86_64-pc-windows-gnu+ a portable MinGW; the msvc-onlyrust-toolchain.tomlhad to be moved aside, and the GCC there ships nolibgcc_eh.a- an empty archive under that name was enough). Bothvice-tay.exeand theseries-sbuild compile cleanly.vice-tay.exe configon the ROG Ally (11.7 GB, 4 GB card, 8 cores):Result,
vice-tay play "<game>" --series-s, 3 runs, ~8.5 GB free RAM at start, nothing else running:One more run, watched frame by frame: the title's front end comes up and runs at 30 fps (screenshot: the loading art, FPS 30.0 / 33.3 ms), one frame reported 649 draws, then the load ends with
0x8007000E(no shared buffer,no upload buffer) and the process exits at about 4.5 minutes.So on this machine the new line does get past the black screen - the old line never showed the front end at all - but it still dies in the world load, and now with a clean E_OUTOFMEMORY instead of a device removal: no
0x887A0007in any of the three runs.Your config line "it is 13 GB short: play Series S" is exactly what happened, and Series S is what I ran.
Question: the next thing I can try is a bigger page file (needs the owner's admin click) to raise the commit limit from 35.7 GB toward the ~48 GB the title wants. Is that a fair test of the small-memory profile, or does the profile assume the page file stays as Windows sizes it?
Imported from TaynanGT/Vice-Tay. Originally posted by cyl9052 on 2026-12-01T10:28:59Z.
Follow-up with a diagnostic, because the failure is not what I first guessed.
I sampled the commit charge during a default
--series-srun: at the moment it died, system commit was 29.6 GB of a 36.6 GB limit - not exhausted. The process itself peaked at 14.4 GB private, and the errors are all GPU-side allocations (no shared buffer,no upload buffer,0x8007000E), so this is card memory, not the page file. I was about to raise the page file to 40 GB and that would not have helped - ignore that idea.Two attempts to push card memory down, both worse than the profile defaults:
CARD_BUFFERS_MB=128,WINDOWS_BAR_MB=1024,BVH_BUILDER=0BUFFERS_AHEAD=128,PIPELINE_WORKERS=2,WINDOWS_BAR_MB=1024,UPLOAD_POOL_MB=48,EXACT_POOL_MB=16So shrinking our own pools does not buy time here - it fails earlier, which suggests the allocations that fail are the title's own buffers being placed into card memory, not our caches.
One question: on a 12 GB machine where the card borrows from the same RAM, is
VICE_TAY_KEEP_RAM_GBthe switch you would reach for (the profile leaves it unset because "pinning RAM leaves Windows nothing to page out"), or is there a better way to bias the placement away from card memory for the title's buffers?