sceAjmBatchJobSetResampleParametersEx: RIDE 4 (PPSA01599) passes a non-zero ratio change per sample #3468
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 boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T11:03:54Z.
Title: RIDE 4 (PPSA01599, Unreal Engine 4 + Wwise), Linux, main
99c1c263, plus #3435, #3440 and #3458 for its earlier stops.RIDE 4 reaches its title screen. After about 290 s, with Cross pressed every 5 s, it stops at the throw kept on purpose in #2843 (TechnicalDebt: "How a non-zero change ramps the ratio is unknown and throws"):
Arguments the title passes, from a gdb run breaking on
sceAjmBatchJobSetResampleParametersEx(ratio_startin xmm0,ratio_change_per_samplein xmm1):So across about 7,200 calls there is exactly one with a ramp, and it is tiny: a ratio change of 4.6e-7 per sample, about 0.0005 over a 1024-sample block. It looks like Wwise gliding a voice's pitch toward its next ratio.
Things I could not determine without a reference:
That is why I haven't sent a PR. If someone has a source for those semantics (a disassembly of libSceAjm's resampler, or another reimplementation), the existing
Resampler(position += ratioper output frame) would only needratio += changeper emitted frame. I can test it against this title.Also present in this run, already tracked elsewhere: skipped draws for storage images on depth surfaces (#1409) and multi-slice color views (#2102).
AI-assisted (Claude Code); I ran everything above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-12T07:33:54Z.
@hugodearaujo, this is a similar request for the ramp question above, if you are able. The same probe set at https://gist.github.com/overlordxrz-source/45b691cae9351253ef627110d758e618 has
ajm_resample_ex/, again with your payload setup. It decodes AnyPS5's 6-frame MP3 test vector one frame per batch through the console'slibSceAjm, in this order:SetResampleParametersEx, thenDecode, thenGetResampleInfo. It uses the title's exact values (0.965413868, 4.60422598e-07, flags 0) plus larger ramps (±1e-4, ±1e-2), with the parameters sent only in the first batch and in every batch.From the per-batch ratio the console reports and the output lengths,
tools/analyze_ajm.pyseparates per-output from per-input ramping and shows any clamping and carry-over into the next batch. The probe also logs append-time return codes for NaN/inf/negative values and flags 1/2/3. Batch waits are bounded. If a batch does not finish, the probe stops instead of reusing its buffers.It is compile-checked only. The full
ajm_probe.txtoutput would settle the three open points in the issue, and I can turn the result into a branch for alfalfa-star to test against the title.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-13T14:55:33Z.
Ran
ajm_resample_exon my PS5 (firmware 13.60). It stops at "missing export(s)": the console'slibSceAjm.sprxresolvessceAjmInitialize,Finalize,ModuleRegister/Unregister,InstanceCreate/DestroyandsceAjmBatchWait, but notsceAjmBatchInitialize,sceAjmBatchStart,sceAjmBatchJobDecode,sceAjmBatchJobGetResampleInfo,sceAjmBatchJobSetResampleParametersor…Ex. Neitherdlsymnorkernel_dynlib_resolvefinds them.I also searched those NIDs in
libSceAjmi,libSceAudioOut,libSceAudiodec,libSceAudiodecCpu,libSceAudio3dandlibSceNgs2(dlopen each, thendlsymandkernel_dynlib_resolveper NID): onlysceAjmBatchWait(-qLsfDAywIY) resolves, inlibSceAjmandlibSceAjmi. So the batch builders are not exported to a payload on this firmware, and the probe would need another way to reach them before it can measure the ramp.ajm_probe.txt
NID search across audio modules
Searched NIDs:
5ldnD16rYZw(SetResampleParametersEx),81HsnXFbWS4,MmpF1XsQiHw,39WxhR-ePew,JkdNCocpu1M,5tOfnaClcqM,-qLsfDAywIY.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-14T03:23:26Z.
I am implementing the ratio ramp support in ResamplerProduce for sceAjmBatchJobSetResampleParametersEx to unblock RIDE 4 (PPSA01599), including unit test coverage in GuestAjm.cpp and technical debt documentation. Opening PR shortly.
Imported from boykopovar/AnyPS5. Originally posted by nikowolf123 on 2026-10-14T17:13:30Z.
#5647 by @pushkarreddyy was merged as
8dfaafe62, so thea ratio change per sample is unsupportedthrow is gone frommain.sceAjmBatchJobSetResampleParametersExnow queues the start ratio and the change together. The resampler adds the change after each emitted output frame, clamps the ratio at zero and keeps it across batches.That rule is not confirmed on a console: @hugodearaujo's run of @overlordxrz-source's probe could not reach the batch builders. @adriadam10 reworded the debt entry to mark the rule as assumed. The ramped call in the report was small: 4.6e-7 per sample, about 0.0005 over a 1024-sample block. For that call, the three open points should matter little.
#5647 had no closing keyword, so this issue stayed open. @alfalfa-star, could you rerun RIDE 4 (PPSA01599) on current
mainpast the ~290 s point and say whether it gets further? Your fixes for the earlier stops (#3435, #3440, #3458) are merged too. If it does get further, this can be closed.AI-assisted: written with Claude Code; I checked #5647's diff, its merge commit and the live threads here and on #5647. I ran
git greponmain763ad20fcand found noratio change per sample is unsupportedundercore/, and searched the issues for a newer RIDE 4 report (none). I did not run the title.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T18:46:02Z.
#5647 is merged, so the ratio-change throw is gone from main. Closing; please reopen if RIDE 4 still stops here, or open a new issue for its next stop.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-15T07:06:23Z.
@nikowolf123 I reran RIDE 4 (PPSA01599) on current
main(d92a8dad3), as asked. It doesn't get as far as the ~290 s point on plainmainany more: about 57 s in it now aborts atsampling the stencil plane of depth surface ... as a 2688x1512 texture of guest format 1 (vk 9). In October 11's runs those draws were skipped. Open PR #5781 covers that stop.With
main+ #5781 (andAPS5_NO_HOST_IMPORT=1, see below), the title gets past the old stop. It enters a race about 230 to 275 s in (Tsukuba, YZF-R6, AI agents, replay buffer) and runs to the 360 s limit. There's noa ratio change per sample is unsupportedthrow and nothing else from Ajm, so #5647 removes this issue's stop. Whether the audio ramp sounds right is not checked.Two runs of
main+ #5781 without that variable stopped at 117 and 140 s withamdgpu: Not enough memory for command submission!. That error also hit an unrelated Kena run on my machine today, so I'm looking into it separately.Linux (Arch, kernel 7.2.9), RX 9070 XT (RADV, Mesa 26.2.4), GCC Release; a local pad-script commit replays timed presses (input only).
AI-assisted: yes (Claude Code)