Repository navigation
Hollow Knight: Silksong (PPSA12544) #726
Replies: 10 comments
|
Progress update (2026-10-06): PPSA12544 now goes from the title through the intro cinematic into gameplay, with keyboard input, at 60 fps. New fixes:
Main open problem: storage-image results dropped by the keep-CPU-blocks rule (#865). It leaves menu glyphs boxed and, after a room transition, a dark foreground layer stuck on screen. Details and test results are in #865. |
|
Update: the stuck dark foreground layer is tied to 1920x1080 storage images. Writing back only those eagerly (a local switch, plus the 512x512 and 256x256 glyph images) lets the layer fade out after a room transition as it should, and fixes the boxed menu glyphs. It costs about a third of the frame rate (~42 fps instead of 60), so it is an interim setup, not a fix. Eager write-back of every image except the 1920x1080 ones does not help. No texture lookup reports a miss on those images, so the stale read must come through a path that does not call |
|
Update: #839 (AudioOut2 grain timing) is updated after review. It now has a CI test on the SDL disk audio driver ( |
|
Update (2026-10-11): Silksong is playable on plain
The post above is updated. |
|
Test report: Windows on a handheld (Legion Go, Ryzen Z1 Extreme / Radeon 780M), Setup: AMD driver 25.10.20.01, Windows 11 Home 26100, AnyPS5 built locally with WinLibs GCC 15.2.0 r7. PPSA12544 v01.000.010 (master 01.02), the fSELF eboot and modules unwrapped to ELF, relinked with Works: menus, intro, loading a save, gameplay, room transitions, the pause menu, and the inventory. On e27ff7c the world stays visible after the inventory closes. On the previous day's Crash while a save loads unless
Each crash is an access violation in title code, about 40 s after start while the save loads:
Full reports with stacks are This could be the case the USAGE.md section "Storing GPU results at each flip" describes (results stored over memory the title reused), but I have not proven it. Performance: about 29 fps without switches and 22-23 fps with the |
|
Update on
A local patch removes those lines. At each flip, it stores the pending results of images that no draw or dispatch wrote in the last N flip intervals (
The fps column is the range of per-run medians of four window-title samples taken after the save loaded. The first run after installing the build is left out (cold caches, 37 fps). N=4 stays within the spread of the runs without the patch. The inventory still closes back to the world with N=4. A GPU test for the store (written in the ending interval: stays pending; quiet for an interval: stored) passes 3 of 3 runs on this device. On e27ff7c the same patch with N=1 kept 8 of 8 runs from crashing at about 31 fps, while 2 of 7 runs crashed without it. Since the crash no longer reproduces on |
Silksong on Linux with an AMD iGPU (Radeon 780M, RADV): gameplay at 60 fps, but a diagonal seam splits every frameMachine: Ryzen 9 PRO 8945HS, Radeon 780M (RDNA3, RADV PHOENIX), Mesa 26.0.8, Ubuntu 26.04.1, 29 GiB RAM, GCC 15.2.0, headless KWin. How far it gets: boots, intro, title menu, profile select, opening, and The problem: every scene is split along the screen diagonal, bottom-left to top-right. The bottom-right triangle renders correctly. The top-left triangle is stretched and smeared, as if it samples with wrong coordinates. HUD and menu text are fine. AMD only, and not new:
Ruled out on the 780M (seam unchanged in each):
Vulkan validation layer (1.4.341): only two VUIDs: Guess, not proven: the split runs exactly along the diagonal of a full-screen quad, and only one of its two triangles is wrong. That looks like one corner of the full-screen pass getting wrong attributes on RADV. The rect-list path builds the 4th corner in a tessellation control shader ( Logs and frames available on request. Screenshots (Radeon 780M, main 1da03c6): title menu and This report was put together with an AI assistant (Claude); runs were checked by me on the screenshots. Update (Oct 24): Fix in #10547. The seam came from RADV's fragment-barycentric path in the final full-screen pass. On RADV, pixel shaders now use host interpolation first. With it, the 780M shows no seam in the menu or tut_01, and Diablo II and Hot Wheels still run. AI-assisted. Tested by me on my own machine. |
Silksong on Linux with an NVIDIA GPU: playable at ~97 fps with
|
| presents | 38665, 96.6 fps average |
| frame time p50 / p90 / p99 / p99.9 | 10.2 / 11.3 / 14.2 / 22.4 ms |
| frames over 33 ms / 50 ms / 100 ms | 20 / 14 / 3 (max 216 ms) |
| GPU busy per present (median interval) | 4.4 ms |
| busiest queue worker | 58-76 % per interval; Driver.Packet is the largest phase |
So the GPU has room; the queue worker sets the frame rate. I couldn't measure what the switch costs here, because without it the game doesn't get past loading a save:
Without the switch, stop 1: loading a save (2 of 2 runs). Right after picking the save, about 23 s after start, AnyPS5 stops:
[gpu] storage image 0x276150000+0x870000: memory no longer registered; 64 pending ranges dropped
[gpu] driver failure: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented (unit 0 of 144: its results became pending while its range was watched, and its bytes were not saved when the range left the watch)
That matches the debt entry "Units without a baseline outside the write watch", which names a Linux path for it: a range leaving the watch through GuestWriteWatchUnregister when a mapping is unmapped or replaced, without the hook. The second run stopped the same way, with the image at 0x276750000.
Without the switch, stop 2: the first-boot screen-edge slider (2 of 2 runs).
- On the first start the game shows a screen-edge calibration screen ("adjust the slider until the frames touch the edge of the screen"). The slider starts at 0 and only goes left. -1 works (the frames move in); -2 ends the process with a segfault in title code, a write to
0x18:segfault at 18 ip 0000000001e4771d ... error 6segfault at 18 ip 0000000001e47a63 ... error 6
- Linux maps the executable at
0x400000, so these are offsets0x1a4771dand0x1a47a63into the image. The first is the instruction @keravyn-ops reported on 10-14 (app.exe+0x1a5771d, write of 0x18, "crash while a save loads"); the Windows offset includes the 64 KiB PE header in front of the image. - With the switch the slider goes to -2 without a crash.
So the title-code write from 10-14 is still reachable on current main through the slider, a save load on Linux ends in the documented throw instead, and APS5_STORE_AT_FLIP=1 avoids both.
AI-assisted: yes tested by me on my own machine


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tested
relinker --windows --registry --module-dir Media/Modules --module-dir Media/Plugins app0/eboot.bin Silksong.exe(no--to-intel).eboot.bin,sce_module/*.prx,Media/Modules/*.prx,Media/Plugins/*.prx), unwrapped to plain ELF before relinking.Status
Playable at 60 fps on plain
main(a11c8f7), with no open pull requests, no local patches and no environment switches. The game boots, menus and their text render correctly, audio plays without crackle, keyboard input works, the intro cinematic plays, and a new game reaches gameplay with working room transitions.Correction (2026-10-06): an earlier version of this post, and a comment on #648, said the output looked correct. I had not checked it: every presented frame was black. The cause was draws skipped for
PA_SC_MODE_CNTL_1bit 17 (#840).Still needed beyond
mainNothing. #846 (
--module-dir) is merged. #425 is not needed on currentmain(see the stops table). The local stand-ins for #518's and #407's functions and the visible-keys workaround for blocker A are gone.Stops, in the order they were hit
All covered on current
main.Unsupported special symbol sectioninIl2cppUserAssemblies.prx(151SHN_ABSmarker symbols)Failed to load module ... libs\Il2cppUserAssemblies.prx(needed modules inMedia/Modules, outsidesce_module)sceKernelSyncOnAddressWait32/64dbOlWdppb4o(libSceAgc)libSceLibcInternalExtthread-exit functionssceVideoOutVrrPegToFixedRate,sceVideoOutVrrUnpegFromFixedRatesceKernelVirtualQueryreturnsEACCESinside a reserved rangeNH6xARDOVv8 not implemented(sceKernelGetOperationMode)sceUserServiceGetAgeLevel not implementedsceKernelIsStack not implementedvalidateOutputConfig: VIDEO_OUT_ERROR_UNSUPPORTED_OUTPUT_MODE(probe of0xd000000a), thensceVideoOutConfigureOutputthrowing instead of returningUNAVAILABLE_OUTPUT_MODEexpected JSON object in param.json(defaultLanguageinsidelocalizedParameters, onlyen-GB)VideoOut: DCC presentation is not implementedsceKernelCheckedReleaseDirectMemory not implementedil2cpp_set_find_plugin_callback:sceKernelLoadStartModule("/app0/Media/Modules/Il2CppUserAssemblies.prx")returned0x80020002sceKernelInstallExceptionHandler not implementedsceKernelRaiseException not implemented(Unity's GC stops threads with SIGUSR1; targets blocked in libkernel waits)DllNotFoundException: Unable to load DLL 'PSN'(native plugins inMedia/Plugins, loaded at run time)--module-dir Media/Plugins)Failed to load module ... libSceVrSetupDialog.prxand other plugin importsmainnowunresolved ELF import wTpfglkmv34(sceMsgDialogProgressBar*fromlibSceMsgDialog.native)SaveDataException(0x809F0005): the executable and the SaveData plugin both callsceSaveDataInitialize3sceImeKeyboardGetResourceId not implementedsceAppContentDownloadDataGetAvailableSpaceKb: the title declares no download datacompute shader ...: AGC graphics: unsupported descriptor role GdssceAgcDriverGetEqContextId not implementedVideoOut: display buffer ... reads mixed DCC keys ...at the first flipmainskipped draw: sample iteration, primitive discard or out-of-order rasterization is unsupported (register 0x293 = 0x06020000)JumpToTimesceKernelGetModuleInfoForUnwindreported noeh_frame_hdron Windows, so the title's own libc could not unwind any C++ (IL2CPP) exceptionsysret, which overwritesrcxsampling the stencil/depth plane of depth surface ... is not implementedmainwithout #425; likely #3277 (not traced)AGC driver: missing static shader ABI register 201at startup (shaders registered without their program address registers)Failed to load module ... Il2cppUserAssemblies.prxagain after #2708 limited the module search tosce_module/sce_modules/prx--module-dir Media/Modules)Notes
gc_stop_initinstalls a SIGUSR1 handler that readsuc_mcontext.mc_rsp(offset 0xf8 of the PS5ucontext) and raises SIGUSR1 on each thread to stop it for collection. Design: Exception handler delivery (sceKernelRaiseException, fault handlers)Β #727.Media/Pluginsmodules are loaded withsceKernelLoadStartModule(path, 16, {16, 0x200, ...}). Their module entry checks that argument and refuses withPSN is an old version that cannot be used by the current player runtimewhen it is missing, so the arguments must reachDT_INIT.agc_driverVulkan testsagc_driver_lds_atomics64andagc_driver_vopc_compare_tablefail on this host onmain. Moreagc_drivertests fail when run in parallel or while a title uses the GPU.Stack tried (2026-10-11)
mainata11c8f7fonly.All reactions