Commit Graph
464 Commits
Author SHA1 Message Date
Dean GalvinandAstronaut10 29db50f7a6 docs(libs): name the measured title by its title id in the mimalloc note
Public user text names games by title id, so the memory figure for the mimalloc restart now cites PPSA21564 instead of the commercial title and level.

Co-authored-by: Astronaut10 <[email protected]>
2026-11-06 13:07:45 +13:00
Dean Galvin 4492567a14 Merge branch 'main' 2026-11-06 13:07:38 +13:00
Dean b355c59a99 Merge pull request #15344 from ycbuzi/docs/usage-long-first-compile
docs(usage): say how a first run waits for a very large compute pipeline
2026-11-06 12:17:13 +13:00
Dean 2238042b81 Merge pull request #15705 from oneandonlydean/rr/pr3-gpu
feat(run-report): count milestones, frames, GPU and shader diagnostics
2026-11-05 21:24:14 +13:00
Dean 1fe3ee8d1a Merge pull request #14235 from oneandonlydean/rr/pr2-writer
feat(run-report): write the run report when a game ends
2026-11-05 21:24:09 +13:00
Dean Galvin 9a6643c1e1 docs: replace the expired Discord invite
The discord.gg/BHFztBPUe invite has expired. Point every README and the web
demo at discord.gg/x9naWVzC6A, a permanent invite to the AnyPS5 server.
2026-11-05 15:49:12 +13:00
Dean 08f19f9dbe Merge pull request #14313 from oneandonlydean/carry-7499
feat(libScePad): read per-title input profiles beside the shared input file
2026-11-05 08:20:08 +13:00
Dean 3288b21f88 Merge pull request #15370 from oneandonlydean/fix/windows-deferred-dependency-start
fix(relinker): restore the Windows deferral of #12621 and start deferred dependencies first
2026-11-05 08:18:30 +13:00
Dean 00ae41d779 Merge pull request #14952 from irwanrivaldi/docs/readme-id
docs(readme): add Indonesian translation
2026-11-04 21:32:33 +13:00
Dean Galvin 0003ec72c7 Merge rr/pr2-writer into rr/pr3-gpu 2026-11-04 20:21:16 +13:00
Dean Galvin b5f5c7fd1f Merge branch 'main' into rr/pr2-writer 2026-11-04 20:19:15 +13:00
Cesar MoraandClaude Opus 5.5 cd4549d0cc fix(libs): ship mimalloc's licence and document the inherited preload
The release archives carry mimalloc's binaries on Linux and Windows, so
they now also carry its MIT licence as libs/licenses/mimalloc.txt, and
packaging fails without it. USAGE.md and ENVIRONMENT.md say that
APS5_MIMALLOC and LD_PRELOAD stay set after the restart and state the
memory cost measured with it, and the restart's debt entry says that
only the log-file copy is handed back before execv.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015W3M6NbYpmwWkzkL8YNLaF
2026-11-03 23:18:32 -06:00
Cesar MoraandClaude Opus 5.5 468c07712c feat(libs): let relinked Linux games opt into mimalloc
With APS5_MIMALLOC set, libkernel restarts the title with
libmimalloc.so from libs/ first in LD_PRELOAD, as it does on macOS
with DYLD_INSERT_LIBRARIES. The macOS restart becomes one
implementation with platform pieces (MimallocRestart.cpp): on Linux
the executable is the target of /proc/self/exe and the arguments
those of /proc/self/cmdline. The restart is a priority 101
constructor, so it runs before libkernel's other initializers. It
gives the standard streams back from an ANYPS5_LOG_FILE copy before
execv, which also fixes the macOS restart under that variable, and
refuses a path the preload list cannot hold.

The build copies libmimalloc.so beside the libraries except in ASan
and TSan builds, the Linux release archives ship it, and the restart
tests run on Linux too, with a new case for ANYPS5_LOG_FILE.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015W3M6NbYpmwWkzkL8YNLaF
2026-11-03 23:18:20 -06:00
Dean Galvin 065c29f6c9 docs(relinker): the deferred sweep is best effort 2026-11-04 03:35:57 +13:00
Dean Galvin 29178b2917 fix(relinker): start the deferred modules others depend on at the first load of any deferred module
A deferred module that only another deferred module names (PSNCommon, needed by
PSNCore) started after the plugins that use it (SPFXUnityPlugin) and crashed
Soul Hackers 2 on Windows. The first title load of any deferred module now starts
every deferred module some module depends on, in dependency order, with that
load's start arguments, and logs the sweep. Boot is unchanged.
2026-11-04 03:29:14 +13:00
Dean Galvin 62aec71ad8 fix(relinker): start what a deferred module the executable needs depends on, and log each deferred start
On Windows a module the executable needs or imports from stays deferred, but its
dependencies were deferred too and started only when the title loads it, so a title
that calls it first ran them uninitialised (Soul Hackers 2, #15370 rerun). They start
at startup again, as on main. The loader prints one line per deferred start.
2026-11-04 02:36:53 +13:00
Dean Galvin f17fd26885 Merge commit '4f41f4c375f5abb487dbd184fbc150f31994d762' into HEAD
# Conflicts:
#	docs/dev/debt/relinker.md
2026-11-03 21:17:37 +13:00
Dean abe492bfea Merge pull request #12793 from Tehshortbus/feat/entitlement-unlisted-label-log
feat(libSceNpEntitlementAccess): name each add-on a title asks for that the entitlements file does not list
2026-11-03 21:10:09 +13:00
Dean 7af9b1c691 Merge pull request #14139 from JJenkx/fix/relinker-absent-unused-dependency
fix(relinker): optionally leave out a module dependency nothing provides or imports from on Linux
2026-11-03 21:08:25 +13:00
Dean d7b85db7ef Merge pull request #15066 from chinmay6537/docs/readme-translations-shader-badge
docs(readme): match the shader badge alt text in the translations
2026-11-03 18:13:47 +13:00
Dean bd620b35b5 Merge pull request #15004 from JJenkx/fix/trace-unlabeled-imports-20261102
fix(libc): infer missing call trace library labels
2026-11-03 18:13:10 +13:00
Dean Galvin 2cdb4d40d4 fix(relinker): start a deferred module's deferred dependencies before it on Windows
Since #12621 a Windows runtime module that another runtime module needs is deferred instead of started at boot, but loading a deferred module only started that module. A Unity plugin such as SPFXUnityPlugin that calls into a deferred module it needs (Il2CppUserAssemblies in Media/Modules) ran against code whose initializers had never run, and PPSA03743 crashed about 2.6 s in.

A deferred module's initialization table now lists the deferred modules it depends on (names, after the initializer array, behind a magic number so older output reads as having none). DynamicLoader starts those first, transitively and once each through the existing per-module state, with the start arguments of the load that began it, then starts the module itself. The module start result stays the module's own. Boot still starts no deferred module.

Linux is unchanged: its deferred modules still start only when loaded.
2026-11-03 16:03:33 +13:00
Dean Galvin d63b675177 fix(relinker): reapply the Windows deferral of runtime modules another deferred module needs (#12621)
Reapplies the code, tests and USAGE.md change of 420b6a064e (#12621 by Ragbie), which commit 987ebe9855 (#15360) reverted because Soul Hackers 2 (PPSA03743) crashed on Windows: SPFXUnityPlugin calls into Il2CppUserAssemblies, which #12621 defers, and loading a deferred module did not start the deferred modules it needs. The next commit makes the loader start them, so the deferral and the start come back together.
2026-11-03 16:03:33 +13:00
bluandClaude Opus 5.5 7cc4150310 docs(usage): say the pipeline cache and journal can avoid the wait, not that they always do
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:26:43 -07:00
bluandClaude Opus 5.5 4b26640f77 docs(usage): say how a first run waits for a very large compute pipeline
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 18:52:50 -07:00
irwanrivaldiandClaude Opus 5.5 d4e8b61f57 docs(readme): add Indonesian translation
The translation lives in docs/user/README.id.md and every language selector links to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 06:38:28 +07:00
Dean Galvin 987ebe9855 revert(relinker): defer the runtime modules another deferred module needs on Windows (#12621)
This reverts the code, tests and USAGE.md change of commit 420b6a064e
(#12621). The docs/dev/debt/relinker.md line is left for the follow-up
that brings the deferral back with dependency start, to keep a running
batch that edits the same file valid.

Soul Hackers 2 (PPSA03743) stops about 2.6 s into boot on Windows with an
access violation on UnityGfxDeviceWorker inside SPFXUnityPlugin.prx since
this change. klosixgaming-arch bisected main's merge commits to 420b6a064e
and confirmed that undoing its dependency filter makes the title boot again
(https://github.com/boykopovar/AnyPS5/pull/12621#issuecomment-6587462742).

SPFXUnityPlugin (Media/Plugins) calls into Il2CppUserAssemblies
(Media/Modules). With #12621 that dependency is deferred, and loading a
deferred module does not start the deferred modules it needs, so it is
never started. The revert restores the previous Windows behaviour, where a
module another module needs starts at startup.
2026-11-03 09:51:50 +13:00
Dean aa0ea9f75c Merge pull request #14384 from Serph91P/fix/14322-audit-provider-origin
fix(tools): retain guest provider origin in import audit
2026-11-03 08:49:23 +13:00
Dean Galvin 0436cebf95 Merge commit 'a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8' into HEAD
# Conflicts:
#	core/libs/prx/libc/CMakeLists.txt
2026-11-03 06:36:13 +13:00
Dean 13aa814f20 Merge pull request #13672 from Blelle/docs/readme-it-translation
docs(readme): add Italian translation
2026-11-03 06:31:34 +13:00
Tehshortbus d84ef9b612 Merge remote-tracking branch 'origin/main' into feat/entitlement-unlisted-label-log 2026-11-02 08:04:16 -08:00
Dean 46622fff7c Merge pull request #12752 from MarcZX10/feat/language-auto
feat(libSceSystemService): take the console language from the host with ANYPS5_LANGUAGE=auto
2026-11-03 02:39:32 +13:00
Chinmay S 4abab679bb docs(readme): match the shader badge alt text in the translations 2026-11-02 19:08:08 +05:30
Dean a2583610de Merge pull request #11899 from edubox/feat/playgo-unlisted-chunk-list
feat(playgo): accept a chunk id list for dumps without metadata
2026-11-03 01:28:11 +13:00
Dean da0f097c78 Merge pull request #11107 from AdnanKhan-ak47/feat/relinker-lower-bzhi-bextr
feat(relinker): lower BZHI and BEXTR under --to-rosetta
2026-11-02 23:26:58 +13:00
Dean 36564b6b4f Merge pull request #10970 from AdnanKhan-ak47/feat/relinker-lower-bls
feat(relinker): lower BLSI, BLSMSK and BLSR under --to-rosetta
2026-11-02 23:26:20 +13:00
JJenkx 851525c96b fix(libc): infer missing call trace library labels 2026-11-02 04:12:56 -05:00
Dean Galvin c0d15de41b Merge commit '88e804b0a7df1f1ac373a9e2f72fb378d925fdd4' into HEAD
# Conflicts:
#	docs/dev/debt/libc.md
2026-11-02 21:07:04 +13:00
Dean f03f724901 Merge pull request #14368 from roboterspinne/docs/usage-import-audit-strict-options
docs(usage): list --strict-stubs and --strict-providers in the import audit options
2026-11-02 11:45:06 +13:00
Dean 8d16af3c57 Merge pull request #11137 from kaiffeetasse/contrib/8624-sdk-syscall6-inline-stub
fix(relinker): trap the inlined SDK __syscall6 stubs
2026-11-02 10:49:26 +13:00
Dean Galvin d6f1eccfe2 revert(agc): keep driver pipeline caches and costly compute pipeline binaries across updates (#13931)
This reverts commit d8b60b46ed, reversing
changes made to d94fad17de.
2026-11-02 08:24:24 +13:00
Serph91P 62ed30d6f1 fix(tools): retain guest provider origin in import audit
Resolve guest providers separately from host exports, require matching
exports and resolution edges, and prefer exact filenames before suffix
fallback. Preserve real host gaps and import reference counts.

Add synthetic CLI regressions and clarify named module classification.

Fixes #14322
2026-11-01 10:59:22 +00:00
liskeeeandClaude Opus 5.5 5c1cac4112 fix(agc): disable pipeline binaries with outdated wrapping layers
Check the enabled layers before querying pipeline binary features. A
validation or gfxreconstruct layer older than Vulkan 1.3.294 wraps
handles but passes the extension's commands to the driver unchanged, so
keep the driver pipeline cache path there and when enumeration fails.
Cover the layer decisions with a fake enumerator.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 11:56:07 +01:00
liskeeeandClaude Opus 5.5 f1b0dbbf5d fix(agc): retain driver cache fallback after binary capture failures
A costly build whose binaries cannot be extracted or stored, and a
rejected capture build, now leave a capture-failure marker, so later
runs build that recipe through the driver cache instead of repeating a
capture build with a null pipeline cache. Lowering the time threshold
does not retry these markers; a driver change does. Existing
below-threshold markers stay compatible and retryable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 11:56:06 +01:00
liskeeeandClaude Opus 5.5 0c572f1c25 feat(agc): persist costly compute pipeline binaries
Capture costly compute builds and restore matching recipes after checking
full recipes, driver fingerprints and Vulkan compatibility keys. Add size
and time thresholds, opt-out, atomic persistence and corruption/rejection
fallback.

Remember below-threshold recipes in separate files so competing decisions
cannot overwrite captured binaries. Prefer saved binaries and retry
capture when the time threshold is lowered.

Cover compatibility, fallback, deterministic competing writers and
cross-process capture, restore and corruption.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 11:56:06 +01:00
liskeeeandClaude Opus 5.5 8413207b8e fix(agc): preserve driver pipeline caches across source updates
Keep driver blobs outside source-version cleanup and import compatible
legacy caches. Persist equal-size content changes and retry incomplete
snapshots without replacing the previous file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 11:56:06 +01:00
Adrià e67cc81869 Merge pull request #13926 from dr-hoseyn/feat/relinker-dry-run
feat(relinker): validate conversions without writing outputs
2026-11-01 11:50:43 +01:00
Dean Galvin e4fb5da8c1 Merge main into rr/pr3-gpu 2026-11-01 22:52:42 +13:00
Dean Galvin 0e3bb2c125 Merge rr/pr2-writer into rr/pr3-gpu
# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
#	core/shader/recompiler/Recompiler.cpp
#	docs/dev/debt/libc.md
2026-11-01 22:52:36 +13:00
roboterspinne 7e896cac7b docs(usage): list --strict-stubs and --strict-providers in the import audit options 2026-11-01 10:48:21 +01:00