Repository navigation
Madden NFL 27 (PPSA32904) #22338
Replies: 1 comment 2 replies
Update: Madden NFL 27 is playable in Practice (very slow)Title: PPSA32904, version 01.007.000 What works now
Main finding: GPU hangs come from a missing wait, not from broken shadersWithout extra sync, the GPU hangs (TDR, I added a small diagnostic that lists the draws and dispatches of a recorded batch once it has been on the GPU for more than 5 s. It showed a different compute shader each time:
The hangs disappear in two situations:
Several crashes come from the same race: data read after the title already reused the memory. They showed up as:
It looks like a dispatch sometimes starts before the work it depends on has finished. Possibly this happens between the graphics and the async compute queue, but I have not found the exact place yet.
Settings used
Local test patches (guessed, behind switches, not proposed upstream)Each patch only hides a gap so the game can get further:
The hung-batch diagnostic, which lists the draws and dispatches of a batch still running after 5 s, could be useful upstream. I can open a PR for it if wanted. Next steps
|









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Existing thread
Title
Madden NFL 27 (PPSA32904)
Content version tested
01.007.000
AnyPS5 commit
main 9eae4b4 with local changes on top (no pull request yet), see "Current blocker".
System tested
Windows 11 (build 26300), WinLibs GCC 16.2.0 (x86_64-ucrt-posix-seh, r3), NVIDIA RTX A4500 (NVIDIA 621.14), AMD EPYC 7543P (8 logical cores), 28 GB RAM
Furthest point
Menu
What is shown
EA SPORTS logo, title screen and the "connection failed" dialog (no PSN, expected) render correctly; the EA SPORTS intro jingle plays and an Xbox 360 controller works in the menus. After OK the game goes offline to team selection and on to the coach customization menu (first name, last name, playbooks), which renders, but the 3D coach preview next to it stays black and the team carousel in "Choose team" is missing (its draws are skipped, see below). Menus run at about 30 FPS with a warm shader cache, team selection and coach customization at 4 to 7 FPS. Entering the coach's name is the furthest point; gameplay was not reached.
Current blocker
Editing the coach name stops on an unnormalized sampler with clamp mode 4 (half border), which is documented as unmeasured in
docs/dev/debt/libSceAgcDriver.md:Also hit on the way, with
APS5_SKIP_REFUSED_DISPATCHES=1/APS5_SKIP_REFUSED_DRAWS=1skipping them (vertex and compute shaders; the descriptors look intentional, not stale):Seen once:
guest sampler descriptor uses an unknown anisotropy ratio 6.Without
APS5_STORE_AT_FLIP=1every run stopped after 1 to 4 minutes at a different place:guest memory is not readablein a DISPATCH_INDIRECT (driver path gpu-side),storage texture has no committed guest pages, garbage-looking descriptors, or a Windows TDR (vkWaitForFences ... -4, nvlddmkm 153) after a batch ran for 30 s. The log showedstorage image ...: guest memory changed while GPU results were pending, and a map log showed the title toggling 8 MiB chunks of a 1.5 GiB heap between readable and PROT_NONE (1409 times in 2.5 min), which matches the late store described for #1970. WithAPS5_STORE_AT_FLIP=1none of these stops came back in four runs.Local changes this run needs (branch
agc-skip-degamma-unorm-view, one commit, unit tests and a debt fragment included; not yet a pull request, the validation-layer comparison is still missing):_SRGBtexture samples through a UNORM twin view (guest sampler descriptor disables degamma with an sRGB texture, which is not implemented).ac_descriptors.c(guest texture descriptor uses a nonzero array pitch which is not implemented).Gfx10Lib::HwlComputeCmaskInfo(CMASK fast clears of a 3D or array color target are unsupported). This one fixed the stop at the coach preview.How it was run
eboot.bin,sce_module/libc.prx,sce_module/libSceNpCppWebApi.prxandEngine.Render.Core2.PlatformPs5.prx(in the app root, loaded at run time) are SELF containers; each was unwrapped withtools/unwrap_self.py, then relinked withrelinker --windows --module-dir . eboot.elf madden27.exe. The original files are inapp0/.The title reads its data through
/hostapp/(/hostapp/Data/layout.toc,/hostapp/Data/initfs_Ps5,/hostapp/Data/Ps5/superbundlelayout/...), which AnyPS5 resolves to ahostappfolder beside the executable; without it the title shuts down right after start. A directory junctionhostapp->app0beside the executable made it load.Environment:
Without
APS5_ASYNC_DRAW_COMPILE=1the first runs compiled 2000+ shaders and the title's own GPU watchdog reported "GPU Stopped Working". The coach screen neededTdrDelayraised to 30 s and a larger page file (commit limit 30.7 GB was exhausted once). The shader cache grew past 40 GB.All reactions