Reference: AI-assisted Demon's Souls CPU and rendering experiments #599
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!599
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/599/head"
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?
@chenxiao07 on GitHub · 2026-09-13 03:31 UTC · original
chenxiao07:submission/reference-demons-souls-20260913→main· +9709 −413 · 106 files · 40 commits · closed without mergingExperimental reference draft — not recommended for direct merging.
This shares a broad set of CPU and rendering experiments developed while trying
to improve Demon's Souls in KytyPS5. Because the changes are extensive and make
heavy use of AI assistance, this branch may be more useful as a reference for
investigation, selective reimplementation or small follow-up patches than as a
single mergeable PR. Please do not treat it as production-ready or fully reviewed.
Changes and expected effects
x86-64 code and group compatible resource reads to reduce repeated interpretation
and allocation overhead. Unsupported cases retain the interpreter.
indexed draws to reduce repeated descriptor and buffer lookups. Dependency
checks retain the original path when reuse cannot be established.
ranges to avoid redundant synchronization and reduce page-fault handling.
Keep supported indirect-dispatch arguments on the GPU to avoid CPU readbacks.
CPU wait, reducing avoidable CPU/GPU stalls while preserving dependency boundaries.
and SRT masks; fix fiber TLS after migration, register clobbers on guest-stack
exit, save-capacity accounting and shader-variant pointer lifetimes. These address
incorrect resource access, runtime instability and inaccurate save-space reporting.
boundaries, replace verified linear-copy work with buffer copies, route verified
bulk copies through coherent host memmove, and sleep for 50 microseconds after
an empty job poll. These aim to reduce synchronization, copying and idle CPU
overhead. They apply only to
PPSA01341 / 01.007.000, with signature/hash checksfor guest-code patches and fallback when the required conditions are not met.
The expected benefit is less CPU work per frame while preserving rendering and
guest behavior. A speedup over current upstream or a 30 FPS result has not been
established. Selected CPU/Vulkan regression tests passed on Linux x86-64;
Windows/macOS, long sessions and combat remain unverified on this snapshot.
Upstream relationship
This branch builds on an older PR #500 snapshot and requires adaptation to
current upstream. The full diff includes prerequisite work credited to its original
authors. This contribution consists of 9 generic commits and 2 Demon's Souls commits:
AI assistance and human involvement
AI tools were used extensively for research, reverse engineering, code generation,
refactoring, diagnostics, test automation and preparation of these English notes.
The contributor directed the experiments and manually played earlier local
checkpoints on Ubuntu. That play testing is not a complete manual review of
every change or validation of this exact snapshot across platforms; the checks
listed above were automated.
This is intentionally shared as an experimental reference, with no claim that it
satisfies the review standard for direct acceptance. Maintainers may prefer to
close the draft and use individual ideas, tests or guarded implementations as
reference. Smaller, independently reviewed contributions would be the appropriate
path for anything worth adopting.
@chenxiao07 on GitHub · 2026-09-13 03:35 UTC · original
added youtube example
https://www.youtube.com/watch?v=gq5dl-SiRSM
@chenxiao07 on GitHub · 2026-09-13 03:36 UTC · original
reference fps image
@Nmzik on GitHub · 2026-09-13 08:32 UTC · original
@chenxiao07 Thanks for PR/ideas. We need some time to rethink the architecture. Do not close PR
@nzc20090108 on GitHub · 2026-09-13 14:41 UTC · original
Render Screen Error





@EmulationChannell on GitHub · 2026-09-13 17:29 UTC · original
hi compile build download link ?
@nzc20090108 on GitHub · 2026-09-14 02:52 UTC · original
https://github.com/RainKikyou/KytyPS5/actions/runs/34747602960
@Nmzik on GitHub · 2026-10-21 19:42 UTC · original
Stale.
Pull request closed