Repository navigation
Marvel's Spider-Man Remastered (PPSA01467) #18073
Tamalero
started this conversation in
Game bring-up
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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
Marvel's Spider-Man Remastered (PPSA01467)
Content version tested
01.008.001AnyPS5 commit
main60afded3d6with #14296 (head14f4042feb) and #9749 (headaec64b8636) merged on top, plus local changes that are not pushed:APS5_SKIP_REFUSED_DISPATCHES, that drops a compute dispatch whose shader the recompiler refuses instead of stopping the title (see Current blocker);System tested
Linux (kernel 7.3.3), RTX 4090, NVIDIA 620.70.06, GCC 16.2.1, Release.
Furthest point
In game
What is shown
Logos, title screen, "Press X", the start settings, the opening cinematic in Peter's apartment and the first swinging tutorial. The tutorial is playable with keyboard and mouse: running, wall-running and swinging work. Four driven runs reached it.
Frame rate, Performance mode:
APS5_WRITTEN_SHADOW_MAX_KIB=131072Picture problems, all with the two refused dispatches dropped:
Current blocker
1. Two compute shaders are refused and dropped. They are the largest in the title, 32,670 and 45,562 code words, wave64. Without the local probes, the stop on
main+ #14296 is:The second shader's chain ends at
ReadConstBuffer@pc=0x0001ba44in the same way. The first shader contains 8ImageBvhIntersectRay, 144ImageSampleRawand 6ImageWrite, so I take it to be a ray-traced pass.The chain has three levels:
0x5df8;+0x90(0x15614);+0x30in the first V#'s buffer (0x15624);ReadLane(…) << 5, the lowest lane of a waterfall over the remaining lanes (0x156a0).The table planner refuses the fixed
+0x30V# read because the read is itself inside a nested buffer. It allows only one nesting level, and it requires the second V#'s buffer to be read by the table alone, while 8 vectorLoadBufferU32x2read it too. With those three checks relaxed locally, resource analysis passes, and SPIR-V emission then stops athas a nested image table without its buffer pointer: the image table lookup supports one nesting level. This is the Spider-Man member of #6191. It corrects the cause I gave there on 11-08, theReadLanekey; the key matches once the chain is planned. #14168/#14296 cover the earlier stop at0x136c.2. Frame rate. After the change above, the GPU is busy for 33 to 66 ms per frame in gameplay. Queue worker 0 is 94 to 97 % busy and
Graphics.Drawtakes 70 to 140 ms per frame, the per-draw shape described in #17533.How it was run
The title read its files from a local NVMe copy; nothing else was needed beyond the usage guide. With keyboard and mouse at these frame rates, the default
MouseDecayMs(30) centres the stick between two frames the title reads, so most mouse motion is lost. A per-title profile with a larger value is the workaround; I have not yet confirmed it in a run.Details: why the written staging window matters here
With
APS5_PROFILE_GPU=1, two small compute programs took 96 % of GPU time in the menus:0x3fc000records = 64 MiB0x1fa400records (1920 × 1080) = 23.7 MiBBoth write buffers larger than the default written staging window (8 MiB on a discrete GPU, #8336), so their writes take the slow path, at about 1 GB/s. The same build with only
APS5_WRITTEN_SHADOW_MAX_KIB=131072added runs them in about 1 ms, and menu GPU time drops from 9.1 s to 0.94 s per 10 s. This is the same shape as #9980, with larger buffers. I have not measured the VRAM cost of a 128 MiB window, or checked why #8336 chose 8 MiB.The program addresses change on every launch. I identified the two programs by their code and buffers in a capture run, and in the other runs by their address range and dispatch count per frame.
SCREENSHOTS

Tested and written by Claude (AI assistant) on a contributor's machine.
All reactions