Repository navigation
AnyKyty: a Kyty GPU core as a second AGC backend, 182.9 vs 112.4 FPS in Subnautica #22713
Replies: 18 comments 50 replies
|
@simnJS thanks for the mention, and for publishing AnyKyty. We spent the last day running Ghost of Yōtei (PPSA26344, 1.008) on it, so here's where that stands, including the comparison with our Kyty port you suggested. Out of the box Yōtei didn't reach the title on Windows. During the first load the Kyty core exits on
So far the fixes are on a local branch. They need more testing before they become pull requests to your fork, one per fix and each crediting its origin; several come from KytyPS5-Yotei and DaftFuzz's tree. Here's the same session on the same machine, same save and route, 1080p:
AnyKyty is at about 0.53× our port on Yōtei right now, but it was 0.06× this morning, and the gap is mostly CPU. The GPU is about 40 % busy. In progress: AnyKyty has no ThinLTO or PGO on Windows yet. The ThinLTO link fails on three MinGW/libstdc++ TLS and asm-label issues, which are being fixed, and a PGO build with llvm-mingw is running. Beyond the build, the remaining items are one pixel shader whose pointer-table images miss the image heap and still fork while the player moves, and the host copy thread's 2 ms spin wait. DetailsMachine: Windows 11, RTX 3080 Laptop (16 GB), driver 621.14, i9-11900H. Yōtei 1.008 relinked with a 1080p patch, scripted pad input, a warm cache. Rates come from the window caption's frame counter after frame 1000. For our port, the caption count matched its own present log (87.14 vs 87.54). Fix list (local branch, one commit each):
Still open:
AI-assisted: yes |
|
@simnJS @Celegans12 for the record here, since this is the AnyKyty thread: I posted a cold run of the head 7d8e5d1 (merged with
The red-zone part is settled by Celegans' retest on Written by Claude Code, verified by me. |
|
@simnJS @Celegans12 a cold run of today's It didn't reach the kanji prompt. The game exited on its own at 1,874 s, at frame 1275 during the tree cinematic, with no error box and an empty exit code. The last lines of the log:
The counter fix works: the 1,256.8 s wait now reports 761 compiles finished meanwhile. The tree colours are still the same wrong ones as on plain main. Is there a switch that would log more around the specialization failure, or catch the exit? Logs and Written by Claude Code, verified by me. |
|
@Celegans12 @Pipodi heads-up: I'm going to start working on Yōtei on my side too, on Linux (RTX 4080 SUPER + 7950X3D). To keep our numbers comparable I'll use 1.008 and the Teshio Ridge save from your repo. Plan:
To avoid stepping on your work: what are you two on right now in |
|
@Celegans12 @Pipodi first Linux run is up: 02.002 loads your Teshio save fine (it needs the One blocker, though: a GPU hang 4 times out of 4, ~40-60 s after the world appears (Xid 109 "CTX SWITCH TIMEOUT"), always on compute program Do you see |
|
@simnJS @Raghav314 three things from tonight's runs at the Teshio save (3080 Laptop, Windows, 1. Heap-served texture tables ( The descriptors make no sense as textures (1009×1 with 16 levels), so my guess is a table slot that doesn't hold an image is now taken as one through the heap path. We've never seen this error on 2. Replaying a manifest variant can stop the game. After our cold boots, the next start died 11 s in, while it replayed the manifest: The manifest held 20 compute variants (6 of 3. The shader-store warm-up can take longer than our 5-minute runs. Once our store matched the build, the next start spent its whole run in AI-assisted: yes |
|
@simnJS @Pipodi as promised, where the time goes on our side, plus the Profile of The execution thread (inclusive shares):
The game's main thread loses about a fifth of its time to Kyty fault handling, mostly readbacks. About the walk on every draw: I tried an exact reuse of a program's last walk. It reuses only when every input and every guest dword the walk read is unchanged, and never for image-heap programs. A verify mode compared it against the full walk: 0 mismatches over 3.9 M walks. But only about 0.5 % of walks could be reused:
On and off came out level (82.2 against 81.1), so I've dropped it. Keeping one state per program doesn't work for Yōtei, since each program runs many times per frame with different inputs. A per-input cache would still have to reread the same memory to stay exact. One more thing from that run: the second reuse-on leg stopped with the same EXIT family as the heap crash, this time
AI-assisted: yes |
|
@simnJS @Celegans12 warm runs of
On this machine the switch makes no measurable difference. The GPU sat around 73 % busy and the process used about 4.8 cores, so the frame rate here is not limited by the work the deferral saves. What it looks like (screenshots below, all from legs on the filled cache, identical settings):
Stability: 0 FATAL and no
Written by Claude Code, verified by me. |
|
@Celegans12 @Pipodi the null-vs-bound fix is on the AnyKyty head: Cold boot to the river village on Linux (RTX 4080 SUPER, caches empty, wave split on, 16 chain threads):
Thanks Celegans for the find and the script. Pipodi, your cold-run stall lists should show the repeats gone; I'd love to see a before/after from the 4090. Open on our side: a GPU hang at the river village on 02.002 in the four variants of that solver (Xid 109, the 1.008 version runs fine for you). We're reproducing it off-game on a rented GPU now. |
|
@simnJS @Celegans12 Windows before/after for Build: Celegans' Method: fully cold: fresh profile (new game),
Neither run got through the intro to the world within its time, so I have no time-to-world for this machine. The direction matches yours: with the fix the same intro stretch is reached much sooner (frame 1458 at 600 s vs 1190), and repeat translations of the same program drop. Hashes with the most
(The "after" run was shorter, so the window is not the same length.) The exit in the "after" run was a GPU reset, not a CPU crash: Windows logged Written by Claude Code, verified by me. |
|
@simnJS @Pipodi our no-save first boot on the new head is done. Two results: no GPU reset here, and a heap corruption that may explain the silent exits. Setup: AnyKyty 1. No GPU reset in 1,800 s. The run went through the menus and the tree cinematic and reached the kanji prompt at about 1,370 s (frame 4795), then sat there at about 15 fps until our time limit (frame 11224). There's no 2. The sharing works on Windows too. Against the same boot without it two nights ago (also wave split, same laptop):
The repeats are cut but not gone: the manifest still holds 3 variants each of 3. A heap corruption in a pixel compile job. ProcDump was attached ( So a background compile job frees a AI-assisted: yes |
|
@simnJS I tried Everything the switch is meant to fix does get better. Write faults in command buffers the CP read go from about 1,860 per frame to 1, uploads from 39 MiB to 9 MiB per frame, and the other threads wait 60 ms less per frame for GPU copies. What eats it is the label drain: Yōtei writes about 172 labels per frame; 99 are deferred to their tick and 73 take the drain in DetailsPer frame, mean of 16 windows of 10 s:
0 conversions after a fault, 0 refusals, 61 live buffers in place (40 MiB), 2 chunks pinned. No GPU stop in either leg. AI-assisted: yes |
|
@simnJS @Pipodi here's where our Yōtei fps work stands after the last day: two full profiles of the laptop, what we tried on top of your head and how it came out, and what we're doing next. Everything below is the Teshio Ridge save, standing, 1080p with the patch, RTX 3080 Laptop + i9-11900H, Windows, 240 s legs, presents per 10 s (about 89 for The profiles mostly confirm that the execute thread sets the pace, but they correct one number we'd been quoting. Kernel time is about 15 % of the game's CPU time (roughly 0.8 of a core), not the 75-80 % I mentioned earlier. Our old sampler reports privileged time in units of one core, and I read it as a share. Page protection changes are about 13 % of that kernel time and fault traps about 11 %. So memory tracking costs less in the kernel than I thought; most of its cost sits in user-side fault handling and in the execute thread's own read faults. On the execute thread, about half of the frame is the flat work per operation: draw binding and commit around 22 ms per frame, dispatch binding around 15 ms, resolutions it has to redo about 24 ms, its own read faults ~11 ms, host copy drains ~7 ms. There's no hot lock and no single big item. It's off-CPU about a quarter of the time, of which roughly 15 % is waiting for input and 8 % waiting on GPU fences (mostly the forced flush in What worked: reading clean 64-byte lines of GPU-written pages in ahead walks (+6 %, exact, now in Next we're running the label deferral we built for in-place memory (verify first, then on), and the image-heap ahead walk for draws only, where it saved ~320 ms per 10 s. After that: naming the main thread's wait on the execute thread, the plain dispatches whose ahead walks stop at a descriptor word on a line with GPU bytes (~0.5 s per 10 s), and a per-pass GPU timer so we know what the ~70 ms of GPU work per frame is. Two things we could send you as PRs if you want them: the label drain counter split by reason plus the deferral (both apply cleanly on DetailsExecute thread budget per frame (counters + a 1,500-sample stack profile of the 8 busiest threads, leg at 88.8):
ETW (Windows Performance Recorder, 32.8 s and 14.9 s windows, 0 events lost):
A/B results (presents per 10 s, same session each):
Also checked and dropped: KytyPS5's depth-array-as-depth fix (Yōtei never takes that path at our save), and the two NVIDIA wave64 items from KytyPS5 (no Yōtei pixel shader uses the add/count reduction). AI-assisted: yes |
|
@simnJS a GPU-side observation from Yōtei on your Overall the new head does about 12 % less GPU work per frame (69.6 against 79.0 ms), almost all of it in the particle passes: "Particle No Deps" goes from 10.5 to 5.3 ms per frame and "Particle Update" from 6.2 to 2.4 ms. The cloth solver goes the other way: "CS Cloth" from 16.3 to 19.6 ms, and its main compute shader Frame rate on the laptop is level between the two heads (88.1 against 88.9 presents per 10 s), since the execute thread is still what sets the pace there, so this would matter more on machines where the GPU is the limit. DetailsAverages over 17-18 windows of 10 s, timer on in both (it costs about 5 % fps), 240 s legs, Windows 11, driver 621.14.
Hashes are our build's (whole program up to its end), so they may differ from what your logs print. AI-assisted: yes |
|
@simnJS @Celegans12 three fully cold runs today on the 4090 (same cold setup as before: fresh save, 1. The GPU reset is still there with the solver fix. Build: Celegans'
2. 3. On
With clean lines on, the game sat mostly idle waiting on readbacks: each one took about 15x longer, and Written by Claude Code, verified by me. |
|
@Celegans12 @Pipodi a note for your Yōtei branches: the image heap prediction on the resolve thread ( On our PC (RTX 4080 SUPER, 4K, Teshio), the removal measured with one pass per arm: 11.75 → 13.32 fps, |
|
@Celegans12 @simnJS the cold run on Same fully cold setup and env as before (
This build has Written by Claude Code, verified by me. |
Yōtei on our Kyty-in-AnyPS5 line: what held, what didn't, and where the frame goesFindings from about nine days on Ghost of Yōtei with our Kyty backend line. It is not AnyKyty: it is Celegans12's earlier port with KytyPS5-Yotei v0.1.6 merged in, now on Setup: RTX 5080, 9950X3D, Windows 11, driver 621.14, game 1.008 at 1080p, Performance mode. The frame rates by scene are in my #675 post. Method
What held
What didn't, with the measured reason
Where the frame goes
Outlook: in town, the GPU (about 47 → about 30 ms) and the exec thread (about 49–64 → under 28 ms) each need roughly 40 % less work per frame. Every remaining small lever we sized was under 1 ms. We read 30 fps in town as structural work: command recording speed and shader codegen. Vistas would reach about 26 fps if exec and GPU overlapped instead of running as a serial chain (estimate). Ideas from here we tried
AI-assisted: yes |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The
AnyKytybranch of my fork runs AnyPS5 with a Kyty graphics core, derived from KytyPS5, behind the AGC interface, chosen at configure time with-DANYPS5_GPU_BACKEND=kyty. Everything else stays AnyPS5: the relinker,libkernel, the system libraries, VideoOut, input and audio. The default backend builds unchanged.Numbers (Ryzen 9 7950X3D, RTX 4080 SUPER, Linux; Subnautica PPSA02453 in the lifepod, warm caches, uncapped at 360 Hz):
Capped at 60 Hz on the same scene, before the gains below, AnyPS5's default driver reached 45.7 FPS and the Kyty core 59.4 (native) and 59.8 (AnyKyty), with about half the GPU time per frame.
CPU time per draw is 38 to 53 % lower than native Kyty on each GPU stage. What does it:
The page has the details and caveats (the two sides were not measured back to back, and sessions vary by about ±10 %), plus build commands for Linux and Windows and the settings: AnyKyty.
Games run so far: Subnautica, Stray, TCG Card Shop Simulator and Balatro on my side. Contributors brought an open-world AAA title (Linux), METAL GEAR SOLID 4, Planet Zoo, LEGO Builders Journey and 007 First Light. The CI builds Linux and Windows for every pull request.
@Celegans12 and @DaftFuzz have their own Kyty backend port, from KytyPS5-Yotei (#21698). Comparing the two on the same machine would be worthwhile, and most of the changes above are not tied to our port.
Pull requests against
AnyKytyand game reports are welcome on the fork. A few fixes found along the way are not Kyty-specific, for example an offlinelibSceHttp2crash in Subnautica and three missing imports for Stray. I can send them here as separate pull requests if they're useful.All reactions