Game Emulation Status Report: UFC® 6 #2019

Open
opened 2026-11-26 10:11:43 +00:00 by github-bot · 14 comments
Owner

@⁠Emin467707 on GitHub · 2026-10-31 12:51 UTC · original

No description provided.

**@⁠Emin467707** on GitHub · 2026-10-31 12:51 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019) *No description provided.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:11:43 +00:00
Author
Owner

@⁠jdshyf7vfn-hub on GitHub · 2026-10-31 22:54 UTC · original · edited 2026-11-01 13:07 UTC

[UFC 6] PPSA23566 v01.005.000 — IN-GAME on 9070 XT OC / Ryzen 7 9800X3D

Image Image Image Image

UFC6_Complete_Emulator_Log_FRESH.txt

Summary

EA SPORTS UFC 6 v01.005.000 runs in-game on my locally compiled KytyPS5 0.3.0 build. I can boot the game, watch the intro, navigate the main menu, open other screens and enter a playable tutorial/fight scene. Player models, HUD and game input work. This is a clear improvement over the earlier v01.004.000 / RTX 4060 report in #1055.

Compatibility status: IN-GAME — rendering and frame pacing are not yet reliable. Major graphics defects remain: large black regions, missing fighter/background geometry, incorrect colored edges and lighting, and prolonged rendering stalls. A captured session shows no frames for 16 seconds. A complete, stable fight has not been established.

This report contributes a separate AMD test configuration to #2019, with original console output and annotated-by-filename screenshots.

Confirmed test environment

Component Configuration
Game EA SPORTS UFC 6
Title ID PPSA23566
Game version 01.005.000 (identified by KytyPS5)
Compatibility In-game
Emulator KytyPS5 0.3.0, locally compiled Release build, clang-lld_link
Build identifier Release, clang-lld_link, ver = 0.3.0, git = unknown, date = 2026.10.31
Source revision git = unknown (local source build without embedded commit metadata)
OS Windows 11 Pro x64, version 10.0.26300, build 26300
CPU AMD Ryzen 7 9800X3D, 8 cores / 16 logical processors
GPU AMD Radeon RX 9070 XT, 16 GB VRAM
AMD Software 26.8.1
RAM 32.0 GB installed, 30.9 GB usable
Motherboard MSI MAG B650 TOMAHAWK WIFI (MS-7D75)
BIOS AMI 1.R3, dated 2026-09-07
AMD chipset software 8.09.28.1124 — correctly installed
Rendering settings 2560×1440, Mailbox, Vblank 60, shader cache enabled
Other graphics options Readback, tiled readback, tessellation, occlusion queries, HDR and Pro mode disabled in captured settings
Emulated console language English (United States)

Chipset driver clarification: The AMD chipset package 8.09.28.1124 is installed correctly. The MSI motherboard support page displays package 8.03.25.247 (dated 2026-09-18), an older package entry. This report does not involve a missing, incorrectly installed or outdated chipset package.

The CPU, OS, memory, motherboard, BIOS and AMD software versions come directly from Windows System Information and installed-program records. The PC identification fields shown in those system screenshots have intentionally not been published.

Game files and extraction

The tested version is a community-converted .ffpfsc PS5 image with Russian-localized menus and English audio. It was extracted with MkPFS 0.0.9 into a regular game directory containing eboot.bin and sce_sys/param.json.

Extraction complete
Files written: 372
Dirs created:  64
Bytes written: 167545418473 (156.04 GiB)
Exit-Code:    0

The extracted directory was recognized by the KytyPS5 launcher, which displayed PPSA23566, game version 01.005.000 and required firmware 9.00. Two independent extractions contained the same 372 relative file paths and file sizes.

The Russian-only UI is a property of this localized game distribution, not an emulator language or rendering defect.

Reproduction steps

  1. Start KytyPS5 0.3.0 with the RX 9070 XT, 2560×1440, Mailbox, Vblank 60 and shader cache enabled.
  2. Add the parent of the extracted UFC6 game directory to Global settings → Game folders and refresh the library.
  3. Launch EA SPORTS UFC 6, PPSA23566, version 01.005.000.
  4. Advance through the intro and navigate between Play, Store and the main menu; enter the tutorial/fight sequence.
  5. Observe black geometry masks and holes, incorrectly colored edges/lighting, partial silhouettes and severe stalls. The attached screenshots document these states.

Observed behavior

Scene Observed performance / outcome
Tutorial fight 23.2 FPS / 43.1 ms in captured frame; fighter models and combat HUD visible
Main menu Approximately 23–30 FPS in captured frames, with significant graphic corruption
Cutscenes/loading Approximately 0.6–29 FPS in captured frames; intermittent multi-second pauses
Black-screen stall Overlay reports No frames for 16 s

These figures are direct overlay observations, not a synthetic benchmark. The overlay also showed GPU-memory use around 6.6–10.6 GiB, system RAM around 16–19 GiB, and active shader/pipeline compilation. A pipeline compilation peak of approximately 1.3 s was visible. The long stalls and defective frames are reproducible targets for renderer investigation.

Visual defects: Both main-menu and Store views show large black regions, missing character/background portions and unnatural colored edges or lighting. The same game build reaches rendered fight scenes, demonstrating that basic execution and graphics initialization work.

Crash classification: This test documents an in-game rendering/stall problem. The supplied console capture contains no explicit fatal exception, masterSemaphore error or verified host Vulkan device-loss termination. It is not a reproduction of a confirmed fatal-crash signature.

Direct log evidence

Original output: UFC6_PPSA23566_01.005.000_KytyPS5_full_log.txt — 1,782 lines, attached unchanged.

Vulkan pipeline cache: loading _PipelineCache\PPSA23566.bin
Vulkan pipeline cache: loaded 1.33 MB from _PipelineCache\PPSA23566.bin
Shader cache: compiling shaders and pipelines from _PipelineCache\PPSA23566.shaders (1.5 MB) with 8 threads
Shader cache: loaded 152 programs, 160 modules, 146 pipelines in 29 ms
Title ID: PPSA23566
Unresolved import stub called: ZzzC3ZGVAkc[libkernel_module_info_v1][libkernel_v1.1][Func]
Unresolved import stub called: 7CxI50-xlCk[NpPartner001_v1][NpPartner001_v1.1][Func]
depth attachment feedback loop is not supported by the host
Warning: format Bc5UnormBlock does not support storage access; block-compressed textures written by the guest will not render.

The log includes 18 GPU Stopped Working Breadcrumb analysis follows diagnostic sections. Named passes include hdriSky, worldMainForwardEmissive, worldMainGeometryPass, sssConvHorizontal and Generic2DFullScreen. These markers give concrete GPU-work locations to investigate. The captured process continued printing shader activity and ended after saving a 20.07 MB Vulkan pipeline cache, without an explicit fatal-error message.

The feedback-loop and BC5 storage-access warnings are important renderer compatibility findings and should be investigated alongside the visible rendering defects.

Relevant upstream work

The following contributions address directly related renderer mechanisms. They provide focused starting points for regression testing on this AMD configuration:

Expected result and development objective

The target is correctly rendered menus, fighters, background geometry, depth occlusion, transparencies and lighting, followed by stable frame pacing and the ability to complete an entire local fight.

My next step is to build from a pinned upstream commit and test the HTile/depth-state correction first, using identical graphics settings and controlled shader-cache conditions. Further rendering and stability changes will be evaluated independently so their effects can be measured.

Evidence files

  • UFC6_PPSA23566_01.005.000_KytyPS5_full_log.txt — complete original console output.
  • 01_tutorial_fight_23fps.png — gameplay with rendered fighters and performance overlay.
  • 02_long_stall_16s.png — black screen with No frames for 16 s.
  • 03_main_menu_graphics_corruption.png — main-menu rendering failure.
  • 04_store_graphics_corruption.png — Store-screen visual corruption.
**@⁠jdshyf7vfn-hub** on GitHub · 2026-10-31 22:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-6550243216) · edited 2026-11-01 13:07 UTC # [UFC 6] PPSA23566 v01.005.000 — IN-GAME on 9070 XT OC / Ryzen 7 9800X3D <img width="2047" height="1152" alt="Image" src="https://github.com/user-attachments/assets/03244e69-1d31-4f8c-b818-198af5a6ec3c" /> <img width="2048" height="1151" alt="Image" src="https://github.com/user-attachments/assets/9bf2a1d9-09e3-4cf8-a389-e592cca1d820" /> <img width="2048" height="1184" alt="Image" src="https://github.com/user-attachments/assets/8667fb32-9fcb-48ae-bd21-b6951835cf36" /> <img width="2048" height="1154" alt="Image" src="https://github.com/user-attachments/assets/a776a2f0-c6bb-4e6b-8a24-a6df30efa342" /> [UFC6_Complete_Emulator_Log_FRESH.txt](https://github.com/user-attachments/files/34227656/UFC6_Complete_Emulator_Log_FRESH.txt) ## Summary **EA SPORTS UFC 6 v01.005.000 runs in-game on my locally compiled KytyPS5 0.3.0 build.** I can boot the game, watch the intro, navigate the main menu, open other screens and enter a playable tutorial/fight scene. Player models, HUD and game input work. This is a clear improvement over the earlier v01.004.000 / RTX 4060 report in [#1055](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1055). **Compatibility status: IN-GAME — rendering and frame pacing are not yet reliable.** Major graphics defects remain: large black regions, missing fighter/background geometry, incorrect colored edges and lighting, and prolonged rendering stalls. A captured session shows **no frames for 16 seconds**. A complete, stable fight has not been established. This report contributes a separate AMD test configuration to [#2019](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/2019), with original console output and annotated-by-filename screenshots. ## Confirmed test environment | Component | Configuration | | --- | --- | | Game | EA SPORTS UFC 6 | | Title ID | `PPSA23566` | | Game version | `01.005.000` (identified by KytyPS5) | | Compatibility | **In-game** | | Emulator | KytyPS5 `0.3.0`, locally compiled Release build, `clang-lld_link` | | Build identifier | `Release, clang-lld_link, ver = 0.3.0, git = unknown, date = 2026.10.31` | | Source revision | `git = unknown` (local source build without embedded commit metadata) | | OS | **Windows 11 Pro x64**, version `10.0.26300`, build `26300` | | CPU | **AMD Ryzen 7 9800X3D**, 8 cores / 16 logical processors | | GPU | **AMD Radeon RX 9070 XT**, 16 GB VRAM | | AMD Software | **26.8.1** | | RAM | **32.0 GB installed**, 30.9 GB usable | | Motherboard | MSI **MAG B650 TOMAHAWK WIFI** (`MS-7D75`) | | BIOS | AMI `1.R3`, dated `2026-09-07` | | AMD chipset software | **8.09.28.1124 — correctly installed** | | Rendering settings | `2560×1440`, **Mailbox**, **Vblank 60**, shader cache enabled | | Other graphics options | Readback, tiled readback, tessellation, occlusion queries, HDR and Pro mode disabled in captured settings | | Emulated console language | English (United States) | **Chipset driver clarification:** The AMD chipset package **8.09.28.1124** is installed correctly. The MSI motherboard support page displays package **8.03.25.247** (dated **2026-09-18**), an older package entry. **This report does not involve a missing, incorrectly installed or outdated chipset package.** The CPU, OS, memory, motherboard, BIOS and AMD software versions come directly from Windows System Information and installed-program records. The PC identification fields shown in those system screenshots have intentionally not been published. ## Game files and extraction The tested version is a community-converted `.ffpfsc` PS5 image with Russian-localized menus and English audio. It was extracted with **MkPFS 0.0.9** into a regular game directory containing `eboot.bin` and `sce_sys/param.json`. ```text Extraction complete Files written: 372 Dirs created: 64 Bytes written: 167545418473 (156.04 GiB) Exit-Code: 0 ``` The extracted directory was recognized by the KytyPS5 launcher, which displayed `PPSA23566`, game version `01.005.000` and required firmware `9.00`. Two independent extractions contained the same 372 relative file paths and file sizes. The Russian-only UI is a property of this localized game distribution, **not an emulator language or rendering defect**. ## Reproduction steps 1. Start KytyPS5 0.3.0 with the RX 9070 XT, `2560×1440`, Mailbox, Vblank `60` and shader cache enabled. 2. Add the parent of the extracted `UFC6` game directory to **Global settings → Game folders** and refresh the library. 3. Launch **EA SPORTS UFC 6**, `PPSA23566`, version `01.005.000`. 4. Advance through the intro and navigate between **Play**, **Store** and the main menu; enter the tutorial/fight sequence. 5. Observe black geometry masks and holes, incorrectly colored edges/lighting, partial silhouettes and severe stalls. The attached screenshots document these states. ## Observed behavior | Scene | Observed performance / outcome | | --- | --- | | Tutorial fight | **23.2 FPS / 43.1 ms** in captured frame; fighter models and combat HUD visible | | Main menu | Approximately **23–30 FPS** in captured frames, with significant graphic corruption | | Cutscenes/loading | Approximately **0.6–29 FPS** in captured frames; intermittent multi-second pauses | | Black-screen stall | Overlay reports **`No frames for 16 s`** | These figures are direct overlay observations, not a synthetic benchmark. The overlay also showed GPU-memory use around **6.6–10.6 GiB**, system RAM around **16–19 GiB**, and active shader/pipeline compilation. A pipeline compilation peak of approximately **1.3 s** was visible. The long stalls and defective frames are reproducible targets for renderer investigation. **Visual defects:** Both main-menu and Store views show large black regions, missing character/background portions and unnatural colored edges or lighting. The same game build reaches rendered fight scenes, demonstrating that basic execution and graphics initialization work. **Crash classification:** This test documents an in-game rendering/stall problem. The supplied console capture contains **no explicit fatal exception, `masterSemaphore` error or verified host Vulkan device-loss termination**. It is not a reproduction of a confirmed fatal-crash signature. ## Direct log evidence Original output: **`UFC6_PPSA23566_01.005.000_KytyPS5_full_log.txt`** — 1,782 lines, attached unchanged. ```text Vulkan pipeline cache: loading _PipelineCache\PPSA23566.bin Vulkan pipeline cache: loaded 1.33 MB from _PipelineCache\PPSA23566.bin Shader cache: compiling shaders and pipelines from _PipelineCache\PPSA23566.shaders (1.5 MB) with 8 threads Shader cache: loaded 152 programs, 160 modules, 146 pipelines in 29 ms Title ID: PPSA23566 Unresolved import stub called: ZzzC3ZGVAkc[libkernel_module_info_v1][libkernel_v1.1][Func] Unresolved import stub called: 7CxI50-xlCk[NpPartner001_v1][NpPartner001_v1.1][Func] depth attachment feedback loop is not supported by the host Warning: format Bc5UnormBlock does not support storage access; block-compressed textures written by the guest will not render. ``` The log includes **18** `GPU Stopped Working Breadcrumb analysis follows` diagnostic sections. Named passes include `hdriSky`, `worldMainForwardEmissive`, `worldMainGeometryPass`, `sssConvHorizontal` and `Generic2DFullScreen`. These markers give concrete GPU-work locations to investigate. The captured process continued printing shader activity and ended after saving a **20.07 MB Vulkan pipeline cache**, without an explicit fatal-error message. The **feedback-loop** and **BC5 storage-access** warnings are important renderer compatibility findings and should be investigated alongside the visible rendering defects. ## Relevant upstream work The following contributions address directly related renderer mechanisms. They provide focused starting points for regression testing on this AMD configuration: - [#1743 — HTile depth-clear state](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1743): UFC 6 black blocks and torn fighter silhouettes; matches the main visual symptom. - [#1748 — Depth-target image extent](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1748): Recreate cached depth targets when required render areas exceed their dimensions. - [#1751 — Depth/stencil image association](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1751): Correct texture-cache image lifetime and association. - [#1187 — Static depth feedback-loop pipeline](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1187): Support Vulkan hosts without the feedback-loop dynamic-state extension. - [#1893 — Packed color-clear handling](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1893): Integrated renderer correction for color-clear region handling. ## Expected result and development objective The target is **correctly rendered menus, fighters, background geometry, depth occlusion, transparencies and lighting**, followed by **stable frame pacing and the ability to complete an entire local fight**. My next step is to build from a pinned upstream commit and test the **HTile/depth-state correction first**, using identical graphics settings and controlled shader-cache conditions. Further rendering and stability changes will be evaluated independently so their effects can be measured. ## Evidence files - `UFC6_PPSA23566_01.005.000_KytyPS5_full_log.txt` — complete original console output. - `01_tutorial_fight_23fps.png` — gameplay with rendered fighters and performance overlay. - `02_long_stall_16s.png` — black screen with `No frames for 16 s`. - `03_main_menu_graphics_corruption.png` — main-menu rendering failure. - `04_store_graphics_corruption.png` — Store-screen visual corruption.
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-18 16:55 UTC · original

Same game (UFC 6, PPSA23566, v01.005.000) crashes at startup for me, before the first frame.

My copy requires firmware 13.60 (requiredSystemSoftwareVersion 0x1360000000000000), while the working copy in this report requires 9.00.

Tested builds (Windows x64), same crash on both:

  • KytyPS5-2026-10-31-f12fc20 -> runtimeLinker.cpp:721
  • KytyPS5-2026-11-18-b3295be -> runtimeLinker.cpp:693

System:

  • CPU: Intel Core i5-12600K (12th Gen)
  • GPU: AMD Radeon RX 6750 XT
  • GPU driver: AMD Software 26.10.2 (32.0.21045.20006)
  • RAM: 32 GB
  • OS: Windows 11 Home 23H2 (build 22631)
  • Settings: Intel CPU compatibility ON, red zone crash protection ON, 1280x720, Mailbox, shader cache ON

What happens:
The UFC splash image appears, the overlay shows "Waiting for frames" with 0 draw calls, then the emulator crashes. It happens right after Engine.Render.Core2.PlatformPs5.prx is loaded.

Game modules (sce_module): libc.prx, libSceNpCppWebApi.prx

Log excerpt:

Unresolved import stub called: ZzzC3ZGVAkc[libkernel_module_info_v1][libkernel_v1.1][Func]
...
Unhandled host exception: type=1 code=3221225477 access=1 address=0x0000000000000000
 in D:\a\KytyPS5\KytyPS5\src\loader\runtimeLinker.cpp:721

Full log attached.

UFC6_crash_log.txt

**@⁠TxF-AI** on GitHub · 2026-11-18 16:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-6985422354) Same game (UFC 6, PPSA23566, v01.005.000) crashes at startup for me, before the first frame. My copy requires firmware 13.60 (requiredSystemSoftwareVersion 0x1360000000000000), while the working copy in this report requires 9.00. **Tested builds (Windows x64), same crash on both:** - KytyPS5-2026-10-31-f12fc20 -> runtimeLinker.cpp:721 - KytyPS5-2026-11-18-b3295be -> runtimeLinker.cpp:693 **System:** - CPU: Intel Core i5-12600K (12th Gen) - GPU: AMD Radeon RX 6750 XT - GPU driver: AMD Software 26.10.2 (32.0.21045.20006) - RAM: 32 GB - OS: Windows 11 Home 23H2 (build 22631) - Settings: Intel CPU compatibility ON, red zone crash protection ON, 1280x720, Mailbox, shader cache ON **What happens:** The UFC splash image appears, the overlay shows "Waiting for frames" with 0 draw calls, then the emulator crashes. It happens right after Engine.Render.Core2.PlatformPs5.prx is loaded. **Game modules (sce_module):** libc.prx, libSceNpCppWebApi.prx **Log excerpt:** ``` Unresolved import stub called: ZzzC3ZGVAkc[libkernel_module_info_v1][libkernel_v1.1][Func] ... Unhandled host exception: type=1 code=3221225477 access=1 address=0x0000000000000000 in D:\a\KytyPS5\KytyPS5\src\loader\runtimeLinker.cpp:721 ``` Full log attached. [UFC6_crash_log.txt](https://github.com/user-attachments/files/35040144/UFC6_crash_log.txt)
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-18 18:12 UTC · original

Follow-up: I built from source (b3295be + #2288 + #2289 cherry-picked, clang-cl, Release).

Result:

  • #2288 works: the ZzzC3ZGVAkc[libkernel_module_info_v1] unresolved stub line is gone.
  • The game still crashes at the same point (splash, before first frame), same access violation at address 0x0.

The fault is inside the AMD Vulkan driver, not Kyty code.
The 96 code bytes printed in the guest fault context match amdvlk64.dll (AMD driver 26.10.2, file offset ~0x22234xx). Faulting instruction:

48 8b 41 48     mov rax, [rcx+0x48]   ; rax = 0
48 8b 04 f0     mov rax, [rax+rsi*8]  ; <- null deref

So runtimeLinker.cpp:693 is just where the host exception is reported.

Tried, no change: tessellation OFF, relaxed shader float math OFF, empty pipeline cache. Driver 26.10.2 is the latest available (AMD Software reports up to date).

System: RX 6750 XT (RDNA2), AMD Software 26.10.2, i5-12600K, Windows 11 23H2.
The in-game report above is on an RX 9070 XT (RDNA4, driver 26.8.1), so this may be RDNA2-specific or driver-version-specific: possibly a Vulkan call/feature the driver doesn't handle on this GPU.

Log with the patched build:

--- Build ---
Source build 0b0f605
--- Error ---
Unhandled host exception: type=1 code=3221225477 pc=0x00007ff8fb9d40fc access=1 address=0x0000000000000000
**@⁠TxF-AI** on GitHub · 2026-11-18 18:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-6987345831) Follow-up: I built from source (b3295be + #2288 + #2289 cherry-picked, clang-cl, Release). **Result:** - #2288 works: the `ZzzC3ZGVAkc[libkernel_module_info_v1]` unresolved stub line is gone. - The game still crashes at the same point (splash, before first frame), same access violation at address 0x0. **The fault is inside the AMD Vulkan driver, not Kyty code.** The 96 code bytes printed in the guest fault context match `amdvlk64.dll` (AMD driver 26.10.2, file offset ~0x22234xx). Faulting instruction: ``` 48 8b 41 48 mov rax, [rcx+0x48] ; rax = 0 48 8b 04 f0 mov rax, [rax+rsi*8] ; <- null deref ``` So `runtimeLinker.cpp:693` is just where the host exception is reported. **Tried, no change:** tessellation OFF, relaxed shader float math OFF, empty pipeline cache. Driver 26.10.2 is the latest available (AMD Software reports up to date). **System:** RX 6750 XT (RDNA2), AMD Software 26.10.2, i5-12600K, Windows 11 23H2. The in-game report above is on an RX 9070 XT (RDNA4, driver 26.8.1), so this may be RDNA2-specific or driver-version-specific: possibly a Vulkan call/feature the driver doesn't handle on this GPU. Log with the patched build: ``` --- Build --- Source build 0b0f605 --- Error --- Unhandled host exception: type=1 code=3221225477 pc=0x00007ff8fb9d40fc access=1 address=0x0000000000000000 ```
Author
Owner

@⁠akizaosolo on GitHub · 2026-11-21 16:39 UTC · original

Update: RX 6650 XT (RDNA2) startup crash on UFC 6 (PPSA23566) is fixed by the scalar-select change from #1885, but the game then hangs the GPU

Setup

  • GPU: AMD Radeon RX 6650 XT (8 GB), Windows 11
  • Build: official KytyPS5-2026-11-21-39936ff, plus the change below
  • Game: PPSA23566, content version 01.005.000, requires firmware 13.60
  • Drivers tried: 32.0.21045.29003 and 32.0.21045.5002 (Adrenalin 26.8.1). Same result on both.

1. Startup crash (fixed)
Before the change, every launch crashed with an access violation at address 0:
Unhandled host exception: type=1 code=3221225477 ... access=1 address=0x0 in runtimeLinker.cpp:693
Reinstalling or downgrading the driver did not help.

I applied the fix described in #1885 to src/graphics/host_gpu/shaders/gpu_tiler_standard64_3d.inc: replace the uvec4 s = ELEMENT_BYTES == ... ? uvec4(...) select in standard64_3d_offset() with four scalar selects (sx, sy, sz, sw). I rebuilt kyty_emulator and the startup crash is gone: the game boots, compiles shaders and renders. As far as I can tell this change is not on main yet, so it may be worth merging for RDNA2 users.

2. What happens after startup
Run 1, default settings: after about 130 frames the GPU stops responding. The breadcrumb report points at hdriSky / worldHalfRes and later TemporalAAPostSharpen. Windows shows the AMD "driver timeout" notice and the emulator exits with failed to create image: extent=1160x652x1 format=130, which looks like a consequence of the device loss.

Run 2, default settings, longer: the game reached frame index 2314 with several "GPU Stopped Working" reports, then vkQueueSubmit failed: ErrorDeviceLost (commandScheduler.cpp:341).

Run 3, --flush-draws 1: the hang is much less frequent, but the game stops after 85 s with failed to create image: extent=2000x1128x1 format=95.

VRAM use peaked at about 7.3 GB of 8 GB in both modes (measured with the Windows GPU process counter). Image creation uses VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT, so the failed to create image errors may simply be VRAM exhaustion on an 8 GB card. I could not confirm that.

I did not check the picture quality or the frame rate.

Not tried: --skip-shaders (not in this source tree) or the per-draw diagnostic build mentioned in #1885.

Happy to test patches or run a diagnostic build on this hardware.

**@⁠akizaosolo** on GitHub · 2026-11-21 16:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7065806575) **Update: RX 6650 XT (RDNA2) startup crash on UFC 6 (PPSA23566) is fixed by the scalar-select change from #1885, but the game then hangs the GPU** Setup - GPU: AMD Radeon RX 6650 XT (8 GB), Windows 11 - Build: official KytyPS5-2026-11-21-39936ff, plus the change below - Game: PPSA23566, content version 01.005.000, requires firmware 13.60 - Drivers tried: 32.0.21045.29003 and 32.0.21045.5002 (Adrenalin 26.8.1). Same result on both. **1. Startup crash (fixed)** Before the change, every launch crashed with an access violation at address 0: `Unhandled host exception: type=1 code=3221225477 ... access=1 address=0x0 in runtimeLinker.cpp:693` Reinstalling or downgrading the driver did not help. I applied the fix described in #1885 to `src/graphics/host_gpu/shaders/gpu_tiler_standard64_3d.inc`: replace the `uvec4 s = ELEMENT_BYTES == ... ? uvec4(...)` select in `standard64_3d_offset()` with four scalar selects (`sx`, `sy`, `sz`, `sw`). I rebuilt `kyty_emulator` and the startup crash is gone: the game boots, compiles shaders and renders. As far as I can tell this change is not on `main` yet, so it may be worth merging for RDNA2 users. **2. What happens after startup** Run 1, default settings: after about 130 frames the GPU stops responding. The breadcrumb report points at `hdriSky` / `worldHalfRes` and later `TemporalAAPostSharpen`. Windows shows the AMD "driver timeout" notice and the emulator exits with `failed to create image: extent=1160x652x1 format=130`, which looks like a consequence of the device loss. Run 2, default settings, longer: the game reached frame index 2314 with several "GPU Stopped Working" reports, then `vkQueueSubmit failed: ErrorDeviceLost` (commandScheduler.cpp:341). Run 3, `--flush-draws 1`: the hang is much less frequent, but the game stops after 85 s with `failed to create image: extent=2000x1128x1 format=95`. VRAM use peaked at about 7.3 GB of 8 GB in both modes (measured with the Windows GPU process counter). Image creation uses `VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT`, so the `failed to create image` errors may simply be VRAM exhaustion on an 8 GB card. I could not confirm that. I did not check the picture quality or the frame rate. Not tried: `--skip-shaders` (not in this source tree) or the per-draw diagnostic build mentioned in #1885. Happy to test patches or run a diagnostic build on this hardware.
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-23 20:32 UTC · original · edited 2026-11-23 20:37 UTC

UFC 6 (PPSA23566) on KytyPS5 / AMD RDNA2: image-allocation failures under VRAM pressure and VK_ERROR_DEVICE_LOST in the first 3D scene. Diagnostic report with local, non-upstream instrumentation

Context: follow-up to my two earlier comments on this issue (startup crash of this copy, traced to the AMD Vulkan driver; the local workaround is in section 4). With that workaround the game reaches the menus and the first 3D scene, then fails in one of two ways described below. Everything instrumentation-related exists only in a local build, not in the official repository.

TL;DR

  • Failure A (memory): failed to create image during initial loading (about 11 to 25 s after start, 5 of 8 runs). Device usage reaches the raw Vulkan heap budget and the texture GC has almost nothing evictable: most images were used within the last 16 GC ticks.
  • Failure B (device loss): VK_ERROR_DEVICE_LOST in the 3 runs that got past A (all with a local opt-in GC patch). VK_EXT_device_fault gives no fault info, Windows logs no GPU-reset events, and the last 13 render commands are the same in the two instrumented runs. No shader or GC responsibility is established.
  • What I am asking: the six questions at the end (intent of the age increase under pressure, recovery on CreateImage failure, GC thresholds vs the live budget, readback volume, acceptable upstream diagnostics, the RDNA2 workaround).
  • Details are collapsed below. Line numbers refer to commit dfe0f3b. Local patches and a log excerpt are in this link-only (secret) gist: https://gist.github.com/TxF-AI/de946c9219d06e9179800da9534449a6 (experimental, not intended for merging as is).

Naming used in this report

  • Failure A / B: as above (data in sections 10 and 9).
  • Runs: C1 to C3 are runs without the local age-16 patch (C3 is the explicit control with the flag off); T2 to T6 are runs with KYTY_GC_EMERGENCY_AGE16=1. The numbering follows my own test log (there is no T1). Full table in section 8.
  • GC tick: one RunGarbageCollector call, i.e. one guest sceAgcSuspendPoint (not a frame, not a fixed duration).

How to reproduce (short)

Title PPSA23566 v01.005.000, settings in section 3 (notably flush draws = 1). Start the game and accept the EA agreement and the online-features message. Failure A happens during the initial loading/menus (within about 25 s of start without the local patch). Failure B happened later, in what appears to be the first 3D scene (octagon) after the intro video, only in runs that survived A.

1. Executive summary

  • Two failure modes were observed on an RX 6750 XT (12 GB), after the RDNA2 shader-compiler crash (#1885) was worked around locally.
  • Mode 1: failed to create image. In 5 of the 8 runs listed in section 8 the process exits during the first loading phase (about 11 to 25 s after start, GC pass 124 to 397). At failure, device usage equals the raw VK_EXT_memory_budget heap budget (derived, see section 10) and 78 to 95 % of the image bytes are younger than 16 GC ticks, so the texture GC has no (or too few) evictable candidates.
  • Mode 2: VK_ERROR_DEVICE_LOST. Seen only in runs that survived mode 1 (3 runs, all with the local opt-in age-16 patch). vkGetDeviceFaultInfoEXT reports "No fault detected", and Windows logs no TDR or GPU-reset events. It also occurred once in an earlier build with no GC changes (tick 5233).
  • In the two instrumented runs of mode 2, the last 13 render commands are the same (a dispatch_indirect, then 2 draw_auto and 10 draw_index). The last vkQueueSubmit then blocked for roughly 2.5 to 2.7 s before returning. This does not establish that a given shader or command is responsible.
  • The opt-in age-16 patch (KYTY_GC_EMERGENCY_AGE16=1, local) coincides with surviving mode 1 in 3 of 5 runs (0 of 3 without it). With n this small it is a tendency, not a demonstrated effect.
  • Cumulative GC readback reached 88 to 97 GB over 76 to 97 s in instrumented runs. That is a throughput figure, not simultaneous VRAM occupancy.
  • Nothing here proves a GC defect or a shader defect. The data mostly shows structural limits: a working set larger than the usable budget, and no recovery path on allocation failure.

2. Hardware and software environment

Item Value
CPU / RAM Intel Core i5-12600K / 32 GB DDR4
GPU AMD Radeon RX 6750 XT (RDNA2), 12 GB, AMD driver 32.0.21045.29003 (Adrenalin 26.10.2)
OS Windows 11
Game EA SPORTS UFC 6, title PPSA23566, content version 01.005.000, firmware 13.60, content ID EP0006-PPSA23566_00-EASPORTSUFC6GAME
Emulator KytyPS5 at commit dfe0f3ba73854e3af684767736e41c7d1178e21e plus local changes (build string dfe0f3b-dirty)
Toolchain VS 2022 Build Tools 17.14, clang-cl 19.1.5, Qt 6.10.3, Ninja 1.12.1, glslang 16.6.0
Vulkan (measured on this device) VK_EXT_device_fault (deviceFault = true, deviceFaultVendorBinary = false), VK_AMD_buffer_marker, VK_EXT_memory_budget, VK_AMD_memory_overallocation_behavior, VK_EXT_pageable_device_local_memory; no VK_NV_device_diagnostic_checkpoints on the AMD GPU

3. Reproduction configuration

CPU compatibility Intel, red zone on, shader cache on, tessellation off, relaxed float off, 1280x720, flush draws = 1, Emulate PSN on, log written to a file. The log reports requested present mode is unavailable; falling back to Fifo.

Why flush draws = 1 matters. CommandProcessor::CountDraw (src/graphics/guest_gpu/graphicsRun.cpp:734-741) calls GetScheduler().Flush() after N draws, which is one vkQueueSubmit per N draws. With N = 1 there is roughly one submission per draw. Measured: 273,946 submissions in about 820 GC passes (run T3) and 402,669 in about 1,017 (run T4), i.e. about 330 to 400 per pass. This changes the number of timeline-semaphore signals, command-buffer recycling and how early the GPU starts work. It was the workaround for a GPU hang near frame 517 (mechanism unknown). Any reproduction without it is not comparable.

A GC "tick" is one RunGarbageCollector call, issued at SubmissionType::SuspendPoint (graphicsRun.cpp:530-532). That corresponds to one guest sceAgcSuspendPoint (src/libs/agc.cpp:1513 -> GuestGpu::SuspendPoint, graphicsRun.cpp:144). It is not a frame and not a fixed duration (loading screens advance it slowly).

4. Problems already solved or worked around
  • Missing import. KernelGetModuleList2 (NID ZzzC3ZGVAkc) exists in the reference commit (src/libs/libKernel.cpp:1790, registered at :1841). My clone is shallow, so I could not retrieve the commit that added it.
  • RDNA2 shader-compiler crash (#1885). The AMD compiler (amdvlk64.dll) crashed at pipeline creation on a nested vector select over specialization constants in src/graphics/host_gpu/shaders/gpu_tiler_standard64_3d.inc (standard64_3d_offset). The local workaround replaces the uvec4 s = ELEMENT_BYTES == ... ? uvec4(...) : ... chain with four scalar selects (sx, sz, sy, sw) of identical values (7 lines added, 7 removed). Its upstream status was not checked. It is a driver-process crash during shader compilation, unrelated to the queue loss studied below.
  • GPU hang near frame 517: worked around with flush draws = 1 (see section 3).
  • EA DNS stall: worked around with Emulate PSN (not a GPU issue).
  • GPU Stopped Working Breadcrumb blocks in the log come from the game engine's own watchdog (Frostbite names such as fb::Opcode...); rendering continued after them. They are not driver errors.
5. Memory management and GC investigation (official code, HEAD `dfe0f3b`)
  • Allocation path. GraphicContext::CreateImage (src/graphics/host_gpu/vma.cpp:149) sets VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT (:154) and calls vmaCreateImage. On failure it calls LogMemoryBudget() (:63) and returns false. Image::Image (src/graphics/host_gpu/renderer/image/image.cpp:717-718) then calls EXIT("failed to create image: extent=... format=..."). There is no retry, no emergency GC and no graceful path.
  • Budget accessors. GetDeviceMemoryUsage (vma.cpp:80) sums heap usage over device-local heaps. GetTotalMemoryBudget (vma.cpp:118) sums budgets and, on discrete GPUs, subtracts min(budget/8, 1 GiB) (:142). Both rely on vmaGetHeapBudgets (VK_EXT_memory_budget).
  • Thresholds. Computed once in the TextureCache constructor (src/graphics/host_gpu/renderer/cache/textureCache.cpp:121-138), never updated, from budget = GetTotalMemoryBudget() and threshold = min(budget, 8 GiB):
    • pressure = max(min(budget - 0.6*threshold, budget - 1 GiB), 1.5 GiB)
    • critical = max(min(budget - 0.2*threshold, budget - 0.5 GiB), 3 GiB)
    • trigger = (budget - threshold) / 2
    • Observed in every log: trigger 1,184,479,104, pressure 5,804,932,045, critical 9,240,905,882. These imply a constructor-time budget of 10,958,892,800 B (derived). At failure time the budget was about 10.29 to 10.44 GB.
  • RunGarbageCollector (textureCache.cpp:2051-2110):
    • m_gc_tick++; usage = GetDeviceMemoryUsage() (:2055) when memory reporting is available.
    • Minimum age 16, relaxed to 80 under pressure (:2069) and 160 when critical (:2066); age = min(age, tick) (:2072), so early in a run the "aggressive" age is clamped.
    • Caps of 10 / 20 / 40 evictions per pass.
    • Skips unregistered images, stencil associations (depth_id) and pinned images (heap_refs != 0, which are touched instead).
    • SafeToDownload() && (!pressured || HasStencil() || !DownloadImageMemory(id)) -> skip (:2090).
    • Up to two passes per call: collect(false), then collect(true) if usage is still >= critical (:2107-2109).
    • Observation: under pressure the minimum age increases. The code has no comment on the intent.
  • Age is the LRU tick distance (m_lru_cache Insert at registration, Touch from FindImage, UpdateImage, FindTexture, FindRenderTarget, FindDepthTarget, AssociateStencil, GetImage, and the GC itself for pinned images). tick_accessed_last is a different field (used at :773 for replacement).
  • Download before eviction. SafeToDownload() = IsGpuModified() && !IsBufferModified() && !IsCpuDirty() (image.h:112). About 92 to 94 % of tracked images were in this state in each failure report. DownloadImageMemory (textureCache.cpp:1816) maps staging space with StreamBuffer::MapDownload (src/graphics/host_gpu/renderer/cache/streamBuffer.cpp:286) on a 64 MiB ring (bufferCache.cpp:237) and copies the guest range into it (TryReadBacking). It then records the GPU copy plus a barrier (AllCommands -> Host) and defers the guest write-back to the priority thread (DeferPriorityOperation, :1856). StreamBuffer::Map (:221) waits with allow_wait = true. On wrap, WaitPendingOperations (:304, :316) calls Scheduler().Wait(tick) (commandScheduler.cpp:159), which submits the current command buffer if the tick is the current one, then waits for the GPU. Costs: submissions plus CPU blocking per wrap, host memory traffic in both directions, and recreation plus upload when an evicted image is used again.
  • Deferred destruction. DeleteImage (textureCache.cpp:250) unregisters at once and destroys through DeferOperation (:273), so VRAM returns only after the GPU completes the tick.

Metrics are not interchangeable (local instrumentation, see section 6):

Name What it is Limit
device_usage GetDeviceMemoryUsage(), device-local heap usage from VK_EXT_memory_budget/VMA Includes buffers and any VMA allocation, not only images; value as of VMA's last budget refresh
total_budget GetTotalMemoryBudget() (raw budget minus the 1 GiB reserve) The GC's own budget, below the raw Vulkan budget
gc_accounting_estimate (gc_estimate) m_total_used_memory: set to device usage at each GC call, then adjusted by logical image sizes on register/unregister An estimate, not a measure of physical VRAM
vma_images Count and sum of VmaAllocationInfo.size of live images created via CreateImage Images only
tracked_here Recount over the slot vector at report time, sum of allocation_size Differs by 3 images / 100 MB from vma_images in one run (unexplained)
cache_registered Registered images and AccountedSize() (guest data size aligned to 1 KiB) Not the VMA size
retirement_pending Unregistered images whose deferred destruction has not yet run Count and bytes
6. Local modifications and instrumentation

Diff against the reference commit: 15 files, +1,137 / -16.

File Local change Changes behavior? Upstream interest
host_gpu/shaders/gpu_tiler_standard64_3d.inc RDNA2 scalar-select workaround Semantics preserved Yes (check #1885 status)
host_gpu/vma.cpp, graphicContext.h Per-allocation image metrics (always on, mutex-protected); failure hook called after LogMemoryBudget Collects only Failure report idea
host_gpu/renderer/cache/textureCache.cpp/.h Metrics; failure report (age buckets, evictability, CanDownload mirror, top 10 images); "age 16 when usage > GC budget" branch gated by KYTY_GC_EMERGENCY_AGE16=1; download/eviction counters Only the opt-in branch Report: yes. Age-16 branch: experimental, do not merge as is
host_gpu/renderer/commandScheduler.cpp/.h, masterSemaphore.cpp Deferred-callback metrics (always on); submission ring, counters and dump (env-gated) Collects only Ring/dump concept
host_gpu/renderer/cache/streamBuffer.cpp, renderDraw.cpp, renderCompute.cpp, renderContext.cpp Cause tag for ring waits; "last work" notes; counters appended to a VRAM diag line every 120 passes (the line itself is always on) Collects only Concept
host_gpu/vulkanCommon.cpp/.h, presentation/window/vulkanWindow.cpp VK_EXT_device_fault enabled when KYTY_GPU_FAULT_DIAG=1; fault report before the fatal exit; diagnostic ring/counters/dump Env-gated Fault-report logging: yes

Env switches: KYTY_GPU_FAULT_DIAG=1 (device fault, counters, ring, dump) and KYTY_GC_EMERGENCY_AGE16=1 (opt-in age branch). Not env-gated: image allocation metrics, deferred-callback metrics, the periodic VRAM diag line and the failure-report hook.

Instrumentation limits. The ring holds 256 submissions. The "known completed tick" is polled lazily. Only some commands carry work notes (DrawIndex, DrawAuto, DispatchDirect, DispatchIndirect; copies, clears and tiler dispatches show none). Shader hashes exist only for dispatches. The pixel-shader address is a register value that can be stale if no pixel shader is bound. The dump can be truncated if another thread reaches its own fatal exit. An earlier version had a data race in the ring and associated downloads with threads; the current one uses atomic fields with a seqlock and associates downloads with a scheduler.

7. Reproduction information

Title PPSA23566 v01.005.000; reference commit dfe0f3b plus the changes of section 6; settings of section 3. Start the game, proceed to the menus and the first 3D scene. Without the local age-16 patch the process exits with failed to create image after about 20 s. With KYTY_GPU_FAULT_DIAG=1 and KYTY_GC_EMERGENCY_AGE16=1, outcomes ranged from 11 s (allocation failure) to 134 s (device loss). Guest addresses and hashes quoted here are specific to these local runs. The local patches and a log excerpt are in the gist linked in the TL;DR.

8. Full test history

"C" runs have no age-16 patch active; "T" runs have KYTY_GC_EMERGENCY_AGE16=1.

Run Duration GC pass at end End Note
C1 n/a 151 failed to create image 2408x1352 fmt 83 first failure report
C2 ~24 s 124 failed to create image 3840x2160 fmt 130 with simulation
C3 (control, flag explicitly off) ~20 s 397 failed to create image 2224x1256 fmt 43 with simulation
T2 ~134 s ~1,100 VK_ERROR_DEVICE_LOST, render tick 556499 no ring
T3 76 s ~820 VK_ERROR_DEVICE_LOST, render tick 271578 ring + counters
T4 ~97 s ~1,017 VK_ERROR_DEVICE_LOST, render tick 399869 ring + counters
T5 ~18 s 234 failed to create image 2152x1216 fmt 122
T6 ~11 s 148 failed to create image 2728x1536 fmt 95

An earlier build with no GC changes also hit VK_ERROR_DEVICE_LOST at tick 5233 right after entering the 3D scene; ticks are not comparable across builds.

Instrumented counters at the fatal dump:

Counter T3 T4
GC passes 820 1,017
Evictions 13,903 16,002
GC downloads requested / ok / failed 13,111 / 13,111 / 0 13,906 / 13,906 / 0
Cumulative bytes read back 87.9 GB 96.7 GB
Emergency (age-16) passes 871 (active to the end) 817 (constant since ~pass 840)
Ring (staging) waits: n / total / max 1,302 / 4.7 s / 8 ms 1,467 / 5.7 s / 424 ms
Non-priority GPU waits: n / total / max 9,685 / 13.9 s / 488 ms 12,314 / 14.5 s / 47 ms
Submissions / wait-induced / of which ring 273,946 / 10,456 / 1,298 402,669 / 13,019 / 1,467

Waits are summed over threads and are not wall-clock equivalents. The 88 to 97 GB are cumulative transfers, not resident VRAM.

9. Device-lost analysis
  • Fault info. VK_EXT_device_fault returns 0 address infos, 0 vendor infos and the description "No fault detected" in T2, T3 and T4. That means the driver provided no usable diagnostic. It does not prove there was no GPU fault.
  • Windows. No System 4101 / 141 / 117, Display, amdkmdag or Windows Error Reporting entries around the three losses.
  • Final commands (T3 and T4). The last render submissions recorded before the failure are, in both runs:
# Command Counts (indices or vertices / instances) Guest shader addresses
1 dispatch_indirect n/a cs 0x11636ad000, hash 0xb6c04c59ad4fac06
2-3 draw_auto x2 3 / 1 ps 0x116027a800 (T3) or 0x116061dd00 (T4); vs 0x116050e800, then 0x920221f00
4-13 draw_index x10 576/1, 492/2, 1254/2, 942/2, 231/2, 2388/2, 1110/2, 4620/2, 1164/2, 648/1 same addresses in both runs; last draw ps 0x1164768000, vs 0x1164bb2800

41 of the last 47 render entries are identical between T3 and T4 (the rest: order of 4 draws and the two draw_auto pixel-shader addresses). This does not identify a responsible shader or command. It may simply reflect deterministic frame content, and addresses recur normally inside a single run.

  • Progress. In both runs the last observed completed render tick equals the dispatch_indirect tick. No later completion was observed before the last submit stalled.
  • Stall. T3: the failing submission was recorded 2.45 s before the dump (render thread triggered it). T4: the render thread's last submission was recorded 2.68 s before the dump, and the presentation scheduler's failing submit came 23 us before it. This suggests the last render vkQueueSubmit blocked for about 2.5 to 2.7 s. In T3 the interval also includes the fault query and logging. A direct timing of vkQueueSubmit is not available.
  • Downloads. All 48 last submissions have 0 downloads in both runs. In T3 the GC was still downloading until the end. In T4 it had essentially stopped (+34 downloads, about 59 MB, in the final >= 177 passes) and image memory had dropped to 0.38 GB, yet the same final window occurred. With n = 2, this suggests the loss does not depend on ongoing GC downloads.
  • Dump labeling defect. The fatal dump header and the IN_FLIGHT_OR_UNKNOWN labels use the tick of the scheduler that triggered the dump. In T4 that was the presentation scheduler (tick 2800), so every render entry was mislabeled. The per-entry known_gpu_tick should be used, and the two schedulers' ticks must not be mixed.
10. Memory allocation failures (C1, C2, C3, T5, T6)
Run usage (GB) total_budget (GB) usage - total_budget (GB) tracked images share younger than 16 ticks Age-16 simulation: upper bound after evicting every candidate (GB)
C1 11.250 10.288 0.962 1,213 / 9.61 GB 8.38 GB (87 %) not simulated
C2 11.391 10.329 1.062 1,181 / 8.77 GB not recorded 9.156
C3 11.510 10.436 1.074 1,345 / 10.40 GB 8.08 GB (78 %) 9.321
T5 11.416 10.352 1.063 1,153 / 10.01 GB 9.51 GB (95 %) 10.971
T6 11.408 10.353 1.055 990 / 9.59 GB 9.05 GB (94 %) 10.921
  • Derived relation: total_budget + 1 GiB (the reserve removed at vma.cpp:142) is within 0 to 19 MB of device_usage in every failure, and equals it exactly in C3. The failing allocation is only 10 to 33 MB. So the failure happens when usage reaches the raw Vulkan heap budget. This is derived from the formula, not logged directly.
  • Age-16 headroom. The simulation counts about 0.45 to 2.2 GB as evictable (after download, with the guest-memory read and LinearSize() not evaluated). In T5 and T6 even evicting all of it would leave usage 0.57 to 0.62 GB above total_budget. In C2 and C3 it would have fit. The age-16 branch therefore cannot guarantee success when the recently used set already exceeds the budget.
  • Why the GC finds nothing. Under pressure the minimum age is 80 or 160. At pass 124 to 397 only 0 to 1 images satisfy it, and even age 16 yields few candidates because most images were touched within the last 16 passes. The mirrored CanDownload checks passed for all 927 to 1,237 SafeToDownload images in each report (the guest-memory read and LinearSize() were not evaluated).
11. Hypotheses and evidence
# Hypothesis For Against / missing Test
1 Rendering/shader/GPU state fault Final window repeats in 2 runs; loss predates GC patches; stalled submit; no GC downloads in the last 48 submissions Same-sequence repetition may be deterministic content; no faulting address Command markers; repeat runs; timing around the submit
2 Resource lifetime/synchronization Eviction and recreation volume is huge (13.9-16.0 k evictions) No lifetime violation found in static review of the download/deferred-destruction paths Log freed-then-used images; validation layer (not installed)
3 Indirect GC effect (evicted then recreated image used by a draw) Heavy churn T4: GC idle for >= 177 passes before the loss Eviction/recreation tracing
4 Downloads directly involved Volume 88-97 GB downloads=0 in all last 48 submissions (T3, T4) Track downloads in flight per tick
5 WDDM/AMD residency pressure Usage near budget in memory phase Usage ~7.6-8.8 GB estimated near the losses Log budget/usage at the loss
6 Submission volume (flush draws = 1) ~3.6-5.3 k submits/s No data without it A/B with a different flush value (changes a reference setting)
7 Render/present scheduler interaction Presenter reads cached images (swapchain.cpp:220) in its own scheduler Requires a recently touched image to be freed; no evidence Log frees of video-out images
8 Structural GC limit C1-C3, T5, T6 numbers Not a cause of the device loss n/a
12. Potential upstream improvements (proposals, not validated)
  1. CreateImage failure handling (image.cpp:717, vma.cpp:149): return an error to TextureCache instead of exiting. A safe-point emergency collection could then retry once. Risk: memory returns only after the GPU completes the tick (deferred destruction), so a retry may still fail.
  2. Failure report with GC/VRAM state (as in the local patch): pure logging of usage, budget and evictable candidates. Low risk.
  3. GC when no candidate exists (textureCache.cpp:2063-2072): examine why the age rises under pressure, and what should happen when no image is old enough. Lowering the age or raising caps alone is not supported by the data.
  4. Thresholds fixed at construction (:134-138): the budget varies by session. Consider logging or recomputing. Risk: behavior change in existing tuning.
  5. Readback cost (DownloadImageMemory, StreamBuffer::Map/WaitPendingOperations, CommandScheduler::Wait): ring wraps cause a submission plus a GPU wait. Counters or backpressure could be considered. Risk: ordering and write-back correctness.
  6. Fatal vkQueueSubmit error (commandScheduler.cpp:339): log the failing scheduler, the known tick per scheduler and recent submissions. Do not mix the two schedulers' ticks.
  7. VK_EXT_device_fault reporting: log counts and description even when empty, and state that "No fault detected" is not proof of no fault.
  8. Per-scheduler submission traceability, passive (the ring pattern).
  9. VRAM pressure line in the log/overlay (usage, budget, young-image bytes).
  10. Any of the above needs upstream review. None of the local patches should be merged unreviewed.
13. Recommended next investigations
  1. Immediate, static or passive: per-entry known ticks in the dump; timing of vkQueueSubmit, vkGetDeviceFaultInfoEXT and dump printing separately.
  2. Needs code, passive: per-image eviction -> recreation -> use tracing; per-submission command identity for copies, clears and tiler dispatches.
  3. May perturb the GPU: VK_AMD_buffer_marker (extra GPU commands; not strictly passive); a different flush draws value.
  4. Not justified by current data: lowering the minimum age further, raising eviction caps, or concluding that a specific shader is at fault.
14. Known limitations
  • Two comparable instrumented DEVICE_LOST runs only (T3, T4); T2 has no ring. T5 and T6 end on allocation failures, not device loss.
  • Run-to-run variation is large (11 to 134 s). The age-16 effect rests on 5 runs.
  • No control run for the device loss (without the patch the game never gets there).
  • The known GPU tick is polled lazily. Waits are summed across threads. Simulation figures assume evictions and downloads all succeed.
  • A few metrics are always on in the local build (see section 6), which may slightly perturb timing.

15. Conclusion and questions for maintainers

The data shows a capacity limit in the memory phase and a reproducible but not understood queue loss afterwards. It does not show that the GC or any shader is at fault.

Questions:

  1. Is the age increase under pressure (80 / 160) intentional?
  2. Is there a preferred recovery design for CreateImage failures?
  3. Should GC thresholds follow the live budget?
  4. Is the readback volume (up to ~1.2 GB/s cumulative here) expected, and should ring wraps be reported?
  5. Which diagnostics would you accept upstream for submissions and device loss?
  6. Is the RDNA2 select workaround acceptable upstream?
**@⁠TxF-AI** on GitHub · 2026-11-23 20:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7113210563) · edited 2026-11-23 20:37 UTC ## UFC 6 (PPSA23566) on KytyPS5 / AMD RDNA2: image-allocation failures under VRAM pressure and `VK_ERROR_DEVICE_LOST` in the first 3D scene. Diagnostic report with local, non-upstream instrumentation **Context:** follow-up to my two earlier comments on this issue (startup crash of this copy, traced to the AMD Vulkan driver; the local workaround is in section 4). With that workaround the game reaches the menus and the first 3D scene, then fails in one of two ways described below. Everything instrumentation-related exists **only in a local build**, not in the official repository. ### TL;DR - **Failure A (memory):** `failed to create image` during initial loading (about 11 to 25 s after start, 5 of 8 runs). Device usage reaches the raw Vulkan heap budget and the texture GC has almost nothing evictable: most images were used within the last 16 GC ticks. - **Failure B (device loss):** `VK_ERROR_DEVICE_LOST` in the 3 runs that got past A (all with a local opt-in GC patch). `VK_EXT_device_fault` gives no fault info, Windows logs no GPU-reset events, and the last 13 render commands are the same in the two instrumented runs. **No shader or GC responsibility is established.** - **What I am asking:** the six questions at the end (intent of the age increase under pressure, recovery on `CreateImage` failure, GC thresholds vs the live budget, readback volume, acceptable upstream diagnostics, the RDNA2 workaround). - Details are collapsed below. Line numbers refer to commit `dfe0f3b`. Local patches and a log excerpt are in this link-only (secret) gist: https://gist.github.com/TxF-AI/de946c9219d06e9179800da9534449a6 (experimental, not intended for merging as is). ### Naming used in this report - **Failure A / B:** as above (data in sections 10 and 9). - **Runs:** `C1` to `C3` are runs without the local age-16 patch (`C3` is the explicit control with the flag off); `T2` to `T6` are runs with `KYTY_GC_EMERGENCY_AGE16=1`. The numbering follows my own test log (there is no `T1`). Full table in section 8. - **GC tick:** one `RunGarbageCollector` call, i.e. one guest `sceAgcSuspendPoint` (not a frame, not a fixed duration). ### How to reproduce (short) Title `PPSA23566` v01.005.000, settings in section 3 (notably `flush draws = 1`). Start the game and accept the EA agreement and the online-features message. Failure A happens during the initial loading/menus (within about 25 s of start without the local patch). Failure B happened later, in what appears to be the first 3D scene (octagon) after the intro video, only in runs that survived A. ## 1. Executive summary - Two failure modes were observed on an RX 6750 XT (12 GB), after the RDNA2 shader-compiler crash (#1885) was worked around locally. - **Mode 1: `failed to create image`.** In 5 of the 8 runs listed in section 8 the process exits during the first loading phase (about 11 to 25 s after start, GC pass 124 to 397). At failure, device usage equals the raw `VK_EXT_memory_budget` heap budget (derived, see section 10) and 78 to 95 % of the image bytes are younger than 16 GC ticks, so the texture GC has no (or too few) evictable candidates. - **Mode 2: `VK_ERROR_DEVICE_LOST`.** Seen only in runs that survived mode 1 (3 runs, all with the local opt-in age-16 patch). `vkGetDeviceFaultInfoEXT` reports "No fault detected", and Windows logs no TDR or GPU-reset events. It also occurred once in an earlier build with no GC changes (tick 5233). - In the two instrumented runs of mode 2, the last 13 render commands are the same (a `dispatch_indirect`, then 2 `draw_auto` and 10 `draw_index`). The last `vkQueueSubmit` then blocked for roughly 2.5 to 2.7 s before returning. This does **not** establish that a given shader or command is responsible. - The opt-in age-16 patch (`KYTY_GC_EMERGENCY_AGE16=1`, local) coincides with surviving mode 1 in 3 of 5 runs (0 of 3 without it). With n this small it is a tendency, not a demonstrated effect. - Cumulative GC readback reached 88 to 97 GB over 76 to 97 s in instrumented runs. That is a throughput figure, not simultaneous VRAM occupancy. - Nothing here proves a GC defect or a shader defect. The data mostly shows structural limits: a working set larger than the usable budget, and no recovery path on allocation failure. ## 2. Hardware and software environment | Item | Value | |---|---| | CPU / RAM | Intel Core i5-12600K / 32 GB DDR4 | | GPU | AMD Radeon RX 6750 XT (RDNA2), 12 GB, AMD driver 32.0.21045.29003 (Adrenalin 26.10.2) | | OS | Windows 11 | | Game | EA SPORTS UFC 6, title `PPSA23566`, content version `01.005.000`, firmware 13.60, content ID `EP0006-PPSA23566_00-EASPORTSUFC6GAME` | | Emulator | KytyPS5 at commit `dfe0f3ba73854e3af684767736e41c7d1178e21e` plus local changes (build string `dfe0f3b-dirty`) | | Toolchain | VS 2022 Build Tools 17.14, clang-cl 19.1.5, Qt 6.10.3, Ninja 1.12.1, glslang 16.6.0 | | Vulkan (measured on this device) | `VK_EXT_device_fault` (deviceFault = true, deviceFaultVendorBinary = false), `VK_AMD_buffer_marker`, `VK_EXT_memory_budget`, `VK_AMD_memory_overallocation_behavior`, `VK_EXT_pageable_device_local_memory`; no `VK_NV_device_diagnostic_checkpoints` on the AMD GPU | ## 3. Reproduction configuration CPU compatibility Intel, red zone on, shader cache on, tessellation off, relaxed float off, 1280x720, **flush draws = 1**, Emulate PSN on, log written to a file. The log reports `requested present mode is unavailable; falling back to Fifo`. **Why `flush draws = 1` matters.** `CommandProcessor::CountDraw` (`src/graphics/guest_gpu/graphicsRun.cpp:734-741`) calls `GetScheduler().Flush()` after N draws, which is one `vkQueueSubmit` per N draws. With N = 1 there is roughly one submission per draw. Measured: 273,946 submissions in about 820 GC passes (run T3) and 402,669 in about 1,017 (run T4), i.e. about 330 to 400 per pass. This changes the number of timeline-semaphore signals, command-buffer recycling and how early the GPU starts work. It was the workaround for a GPU hang near frame 517 (mechanism unknown). Any reproduction without it is not comparable. A GC "tick" is one `RunGarbageCollector` call, issued at `SubmissionType::SuspendPoint` (`graphicsRun.cpp:530-532`). That corresponds to one guest `sceAgcSuspendPoint` (`src/libs/agc.cpp:1513` -> `GuestGpu::SuspendPoint`, `graphicsRun.cpp:144`). It is not a frame and not a fixed duration (loading screens advance it slowly). <details> <summary><b>4. Problems already solved or worked around</b></summary> - **Missing import.** `KernelGetModuleList2` (NID `ZzzC3ZGVAkc`) exists in the reference commit (`src/libs/libKernel.cpp:1790`, registered at `:1841`). My clone is shallow, so I could not retrieve the commit that added it. - **RDNA2 shader-compiler crash (#1885).** The AMD compiler (`amdvlk64.dll`) crashed at pipeline creation on a nested vector select over specialization constants in `src/graphics/host_gpu/shaders/gpu_tiler_standard64_3d.inc` (`standard64_3d_offset`). The local workaround replaces the `uvec4 s = ELEMENT_BYTES == ... ? uvec4(...) : ...` chain with four scalar selects (`sx`, `sz`, `sy`, `sw`) of identical values (7 lines added, 7 removed). Its upstream status was not checked. It is a driver-process crash during shader compilation, unrelated to the queue loss studied below. - **GPU hang near frame 517:** worked around with `flush draws = 1` (see section 3). - **EA DNS stall:** worked around with Emulate PSN (not a GPU issue). - **`GPU Stopped Working Breadcrumb` blocks** in the log come from the game engine's own watchdog (Frostbite names such as `fb::Opcode...`); rendering continued after them. They are not driver errors. </details> <details> <summary><b>5. Memory management and GC investigation (official code, HEAD `dfe0f3b`)</b></summary> - **Allocation path.** `GraphicContext::CreateImage` (`src/graphics/host_gpu/vma.cpp:149`) sets `VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT` (`:154`) and calls `vmaCreateImage`. On failure it calls `LogMemoryBudget()` (`:63`) and returns false. `Image::Image` (`src/graphics/host_gpu/renderer/image/image.cpp:717-718`) then calls `EXIT("failed to create image: extent=... format=...")`. There is no retry, no emergency GC and no graceful path. - **Budget accessors.** `GetDeviceMemoryUsage` (`vma.cpp:80`) sums heap usage over device-local heaps. `GetTotalMemoryBudget` (`vma.cpp:118`) sums budgets and, on discrete GPUs, subtracts `min(budget/8, 1 GiB)` (`:142`). Both rely on `vmaGetHeapBudgets` (`VK_EXT_memory_budget`). - **Thresholds.** Computed once in the `TextureCache` constructor (`src/graphics/host_gpu/renderer/cache/textureCache.cpp:121-138`), never updated, from `budget = GetTotalMemoryBudget()` and `threshold = min(budget, 8 GiB)`: - `pressure = max(min(budget - 0.6*threshold, budget - 1 GiB), 1.5 GiB)` - `critical = max(min(budget - 0.2*threshold, budget - 0.5 GiB), 3 GiB)` - `trigger = (budget - threshold) / 2` - Observed in every log: trigger 1,184,479,104, pressure 5,804,932,045, critical 9,240,905,882. These imply a constructor-time budget of 10,958,892,800 B (derived). At failure time the budget was about 10.29 to 10.44 GB. - **`RunGarbageCollector`** (`textureCache.cpp:2051-2110`): - `m_gc_tick++`; usage = `GetDeviceMemoryUsage()` (`:2055`) when memory reporting is available. - Minimum age 16, relaxed to **80 under pressure** (`:2069`) and **160 when critical** (`:2066`); `age = min(age, tick)` (`:2072`), so early in a run the "aggressive" age is clamped. - Caps of 10 / 20 / 40 evictions per pass. - Skips unregistered images, stencil associations (`depth_id`) and pinned images (`heap_refs != 0`, which are touched instead). - `SafeToDownload() && (!pressured || HasStencil() || !DownloadImageMemory(id))` -> skip (`:2090`). - Up to two passes per call: `collect(false)`, then `collect(true)` if usage is still >= critical (`:2107-2109`). - Observation: under pressure the minimum age increases. The code has no comment on the intent. - **Age** is the LRU tick distance (`m_lru_cache` `Insert` at registration, `Touch` from `FindImage`, `UpdateImage`, `FindTexture`, `FindRenderTarget`, `FindDepthTarget`, `AssociateStencil`, `GetImage`, and the GC itself for pinned images). `tick_accessed_last` is a different field (used at `:773` for replacement). - **Download before eviction.** `SafeToDownload() = IsGpuModified() && !IsBufferModified() && !IsCpuDirty()` (`image.h:112`). About 92 to 94 % of tracked images were in this state in each failure report. `DownloadImageMemory` (`textureCache.cpp:1816`) maps staging space with `StreamBuffer::MapDownload` (`src/graphics/host_gpu/renderer/cache/streamBuffer.cpp:286`) on a 64 MiB ring (`bufferCache.cpp:237`) and copies the guest range into it (`TryReadBacking`). It then records the GPU copy plus a barrier (`AllCommands -> Host`) and defers the guest write-back to the priority thread (`DeferPriorityOperation`, `:1856`). `StreamBuffer::Map` (`:221`) waits with `allow_wait = true`. On wrap, `WaitPendingOperations` (`:304`, `:316`) calls `Scheduler().Wait(tick)` (`commandScheduler.cpp:159`), which submits the current command buffer if the tick is the current one, then waits for the GPU. Costs: submissions plus CPU blocking per wrap, host memory traffic in both directions, and recreation plus upload when an evicted image is used again. - **Deferred destruction.** `DeleteImage` (`textureCache.cpp:250`) unregisters at once and destroys through `DeferOperation` (`:273`), so VRAM returns only after the GPU completes the tick. **Metrics are not interchangeable (local instrumentation, see section 6):** | Name | What it is | Limit | |---|---|---| | `device_usage` | `GetDeviceMemoryUsage()`, device-local heap usage from `VK_EXT_memory_budget`/VMA | Includes buffers and any VMA allocation, not only images; value as of VMA's last budget refresh | | `total_budget` | `GetTotalMemoryBudget()` (raw budget minus the 1 GiB reserve) | The GC's own budget, below the raw Vulkan budget | | `gc_accounting_estimate` (`gc_estimate`) | `m_total_used_memory`: set to device usage at each GC call, then adjusted by logical image sizes on register/unregister | An estimate, **not** a measure of physical VRAM | | `vma_images` | Count and sum of `VmaAllocationInfo.size` of live images created via `CreateImage` | Images only | | `tracked_here` | Recount over the slot vector at report time, sum of `allocation_size` | Differs by 3 images / 100 MB from `vma_images` in one run (unexplained) | | `cache_registered` | Registered images and `AccountedSize()` (guest data size aligned to 1 KiB) | Not the VMA size | | `retirement_pending` | Unregistered images whose deferred destruction has not yet run | Count and bytes | </details> <details> <summary><b>6. Local modifications and instrumentation</b></summary> Diff against the reference commit: 15 files, +1,137 / -16. | File | Local change | Changes behavior? | Upstream interest | |---|---|---|---| | `host_gpu/shaders/gpu_tiler_standard64_3d.inc` | RDNA2 scalar-select workaround | Semantics preserved | **Yes** (check #1885 status) | | `host_gpu/vma.cpp`, `graphicContext.h` | Per-allocation image metrics (always on, mutex-protected); failure hook called after `LogMemoryBudget` | Collects only | Failure report idea | | `host_gpu/renderer/cache/textureCache.cpp/.h` | Metrics; **failure report** (age buckets, evictability, `CanDownload` mirror, top 10 images); "age 16 when usage > GC budget" branch gated by `KYTY_GC_EMERGENCY_AGE16=1`; download/eviction counters | **Only the opt-in branch** | Report: yes. Age-16 branch: experimental, do not merge as is | | `host_gpu/renderer/commandScheduler.cpp/.h`, `masterSemaphore.cpp` | Deferred-callback metrics (always on); submission ring, counters and dump (env-gated) | Collects only | Ring/dump concept | | `host_gpu/renderer/cache/streamBuffer.cpp`, `renderDraw.cpp`, `renderCompute.cpp`, `renderContext.cpp` | Cause tag for ring waits; "last work" notes; counters appended to a `VRAM diag` line every 120 passes (the line itself is always on) | Collects only | Concept | | `host_gpu/vulkanCommon.cpp/.h`, `presentation/window/vulkanWindow.cpp` | `VK_EXT_device_fault` enabled when `KYTY_GPU_FAULT_DIAG=1`; fault report before the fatal exit; diagnostic ring/counters/dump | Env-gated | Fault-report logging: yes | Env switches: `KYTY_GPU_FAULT_DIAG=1` (device fault, counters, ring, dump) and `KYTY_GC_EMERGENCY_AGE16=1` (opt-in age branch). **Not env-gated:** image allocation metrics, deferred-callback metrics, the periodic `VRAM diag` line and the failure-report hook. **Instrumentation limits.** The ring holds 256 submissions. The "known completed tick" is polled lazily. Only some commands carry work notes (`DrawIndex`, `DrawAuto`, `DispatchDirect`, `DispatchIndirect`; copies, clears and tiler dispatches show `none`). Shader hashes exist only for dispatches. The pixel-shader address is a register value that can be stale if no pixel shader is bound. The dump can be truncated if another thread reaches its own fatal exit. An earlier version had a data race in the ring and associated downloads with threads; the current one uses atomic fields with a seqlock and associates downloads with a scheduler. </details> <details> <summary><b>7. Reproduction information</b></summary> Title `PPSA23566` v01.005.000; reference commit `dfe0f3b` plus the changes of section 6; settings of section 3. Start the game, proceed to the menus and the first 3D scene. Without the local age-16 patch the process exits with `failed to create image` after about 20 s. With `KYTY_GPU_FAULT_DIAG=1` and `KYTY_GC_EMERGENCY_AGE16=1`, outcomes ranged from 11 s (allocation failure) to 134 s (device loss). Guest addresses and hashes quoted here are specific to these local runs. The local patches and a log excerpt are in the gist linked in the TL;DR. </details> <details> <summary><b>8. Full test history</b></summary> "C" runs have no age-16 patch active; "T" runs have `KYTY_GC_EMERGENCY_AGE16=1`. | Run | Duration | GC pass at end | End | Note | |---|---|---|---|---| | C1 | n/a | 151 | `failed to create image` 2408x1352 fmt 83 | first failure report | | C2 | ~24 s | 124 | `failed to create image` 3840x2160 fmt 130 | with simulation | | C3 (control, flag explicitly off) | ~20 s | 397 | `failed to create image` 2224x1256 fmt 43 | with simulation | | T2 | ~134 s | ~1,100 | `VK_ERROR_DEVICE_LOST`, render tick 556499 | no ring | | T3 | 76 s | ~820 | `VK_ERROR_DEVICE_LOST`, render tick 271578 | ring + counters | | T4 | ~97 s | ~1,017 | `VK_ERROR_DEVICE_LOST`, render tick 399869 | ring + counters | | T5 | ~18 s | 234 | `failed to create image` 2152x1216 fmt 122 | | | T6 | ~11 s | 148 | `failed to create image` 2728x1536 fmt 95 | | An earlier build with no GC changes also hit `VK_ERROR_DEVICE_LOST` at tick 5233 right after entering the 3D scene; ticks are not comparable across builds. **Instrumented counters at the fatal dump:** | Counter | T3 | T4 | |---|---:|---:| | GC passes | 820 | 1,017 | | Evictions | 13,903 | 16,002 | | GC downloads requested / ok / failed | 13,111 / 13,111 / 0 | 13,906 / 13,906 / 0 | | Cumulative bytes read back | 87.9 GB | 96.7 GB | | Emergency (age-16) passes | 871 (active to the end) | 817 (constant since ~pass 840) | | Ring (staging) waits: n / total / max | 1,302 / 4.7 s / 8 ms | 1,467 / 5.7 s / 424 ms | | Non-priority GPU waits: n / total / max | 9,685 / 13.9 s / 488 ms | 12,314 / 14.5 s / 47 ms | | Submissions / wait-induced / of which ring | 273,946 / 10,456 / 1,298 | 402,669 / 13,019 / 1,467 | Waits are summed over threads and are not wall-clock equivalents. The 88 to 97 GB are cumulative transfers, not resident VRAM. </details> <details> <summary><b>9. Device-lost analysis</b></summary> - **Fault info.** `VK_EXT_device_fault` returns 0 address infos, 0 vendor infos and the description "No fault detected" in T2, T3 and T4. That means the driver provided no usable diagnostic. It does not prove there was no GPU fault. - **Windows.** No System 4101 / 141 / 117, Display, `amdkmdag` or Windows Error Reporting entries around the three losses. - **Final commands (T3 and T4).** The last render submissions recorded before the failure are, in both runs: | # | Command | Counts (indices or vertices / instances) | Guest shader addresses | |---|---|---|---| | 1 | `dispatch_indirect` | n/a | cs `0x11636ad000`, hash `0xb6c04c59ad4fac06` | | 2-3 | `draw_auto` x2 | 3 / 1 | ps `0x116027a800` (T3) or `0x116061dd00` (T4); vs `0x116050e800`, then `0x920221f00` | | 4-13 | `draw_index` x10 | 576/1, 492/2, 1254/2, 942/2, 231/2, 2388/2, 1110/2, 4620/2, 1164/2, 648/1 | same addresses in both runs; last draw ps `0x1164768000`, vs `0x1164bb2800` | 41 of the last 47 render entries are identical between T3 and T4 (the rest: order of 4 draws and the two `draw_auto` pixel-shader addresses). **This does not identify a responsible shader or command.** It may simply reflect deterministic frame content, and addresses recur normally inside a single run. - **Progress.** In both runs the last observed completed render tick equals the `dispatch_indirect` tick. No later completion was observed before the last submit stalled. - **Stall.** T3: the failing submission was recorded 2.45 s before the dump (render thread triggered it). T4: the render thread's last submission was recorded 2.68 s before the dump, and the presentation scheduler's failing submit came 23 us before it. This suggests the last render `vkQueueSubmit` blocked for about 2.5 to 2.7 s. In T3 the interval also includes the fault query and logging. A direct timing of `vkQueueSubmit` is not available. - **Downloads.** All 48 last submissions have 0 downloads in both runs. In T3 the GC was still downloading until the end. In T4 it had essentially stopped (+34 downloads, about 59 MB, in the final >= 177 passes) and image memory had dropped to 0.38 GB, yet the same final window occurred. With n = 2, this suggests the loss does not depend on ongoing GC downloads. - **Dump labeling defect.** The fatal dump header and the `IN_FLIGHT_OR_UNKNOWN` labels use the tick of the scheduler that triggered the dump. In T4 that was the presentation scheduler (tick 2800), so every render entry was mislabeled. The per-entry `known_gpu_tick` should be used, and the two schedulers' ticks must not be mixed. </details> <details> <summary><b>10. Memory allocation failures (C1, C2, C3, T5, T6)</b></summary> | Run | usage (GB) | `total_budget` (GB) | usage - `total_budget` (GB) | tracked images | share younger than 16 ticks | Age-16 simulation: upper bound after evicting every candidate (GB) | |---|---:|---:|---:|---|---|---:| | C1 | 11.250 | 10.288 | 0.962 | 1,213 / 9.61 GB | 8.38 GB (87 %) | not simulated | | C2 | 11.391 | 10.329 | 1.062 | 1,181 / 8.77 GB | not recorded | 9.156 | | C3 | 11.510 | 10.436 | 1.074 | 1,345 / 10.40 GB | 8.08 GB (78 %) | 9.321 | | T5 | 11.416 | 10.352 | 1.063 | 1,153 / 10.01 GB | 9.51 GB (95 %) | 10.971 | | T6 | 11.408 | 10.353 | 1.055 | 990 / 9.59 GB | 9.05 GB (94 %) | 10.921 | - **Derived relation:** `total_budget + 1 GiB` (the reserve removed at `vma.cpp:142`) is within 0 to 19 MB of `device_usage` in every failure, and equals it exactly in C3. The failing allocation is only 10 to 33 MB. So the failure happens when usage reaches the raw Vulkan heap budget. This is derived from the formula, not logged directly. - **Age-16 headroom.** The simulation counts about 0.45 to 2.2 GB as evictable (after download, with the guest-memory read and `LinearSize()` not evaluated). In T5 and T6 even evicting all of it would leave usage 0.57 to 0.62 GB above `total_budget`. In C2 and C3 it would have fit. The age-16 branch therefore cannot guarantee success when the recently used set already exceeds the budget. - **Why the GC finds nothing.** Under pressure the minimum age is 80 or 160. At pass 124 to 397 only 0 to 1 images satisfy it, and even age 16 yields few candidates because most images were touched within the last 16 passes. The mirrored `CanDownload` checks passed for all 927 to 1,237 SafeToDownload images in each report (the guest-memory read and `LinearSize()` were not evaluated). </details> <details> <summary><b>11. Hypotheses and evidence</b></summary> | # | Hypothesis | For | Against / missing | Test | |---|---|---|---|---| | 1 | Rendering/shader/GPU state fault | Final window repeats in 2 runs; loss predates GC patches; stalled submit; no GC downloads in the last 48 submissions | Same-sequence repetition may be deterministic content; no faulting address | Command markers; repeat runs; timing around the submit | | 2 | Resource lifetime/synchronization | Eviction and recreation volume is huge (13.9-16.0 k evictions) | No lifetime violation found in static review of the download/deferred-destruction paths | Log freed-then-used images; validation layer (not installed) | | 3 | Indirect GC effect (evicted then recreated image used by a draw) | Heavy churn | T4: GC idle for >= 177 passes before the loss | Eviction/recreation tracing | | 4 | Downloads directly involved | Volume 88-97 GB | `downloads=0` in all last 48 submissions (T3, T4) | Track downloads in flight per tick | | 5 | WDDM/AMD residency pressure | Usage near budget in memory phase | Usage ~7.6-8.8 GB estimated near the losses | Log budget/usage at the loss | | 6 | Submission volume (`flush draws = 1`) | ~3.6-5.3 k submits/s | No data without it | A/B with a different flush value (changes a reference setting) | | 7 | Render/present scheduler interaction | Presenter reads cached images (`swapchain.cpp:220`) in its own scheduler | Requires a recently touched image to be freed; no evidence | Log frees of video-out images | | 8 | Structural GC limit | C1-C3, T5, T6 numbers | Not a cause of the device loss | n/a | </details> <details> <summary><b>12. Potential upstream improvements (proposals, not validated)</b></summary> 1. **`CreateImage` failure handling** (`image.cpp:717`, `vma.cpp:149`): return an error to `TextureCache` instead of exiting. A safe-point emergency collection could then retry once. Risk: memory returns only after the GPU completes the tick (deferred destruction), so a retry may still fail. 2. **Failure report with GC/VRAM state** (as in the local patch): pure logging of usage, budget and evictable candidates. Low risk. 3. **GC when no candidate exists** (`textureCache.cpp:2063-2072`): examine why the age rises under pressure, and what should happen when no image is old enough. Lowering the age or raising caps alone is not supported by the data. 4. **Thresholds fixed at construction** (`:134-138`): the budget varies by session. Consider logging or recomputing. Risk: behavior change in existing tuning. 5. **Readback cost** (`DownloadImageMemory`, `StreamBuffer::Map`/`WaitPendingOperations`, `CommandScheduler::Wait`): ring wraps cause a submission plus a GPU wait. Counters or backpressure could be considered. Risk: ordering and write-back correctness. 6. **Fatal `vkQueueSubmit` error** (`commandScheduler.cpp:339`): log the failing scheduler, the known tick per scheduler and recent submissions. Do not mix the two schedulers' ticks. 7. **`VK_EXT_device_fault` reporting**: log counts and description even when empty, and state that "No fault detected" is not proof of no fault. 8. **Per-scheduler submission traceability**, passive (the ring pattern). 9. **VRAM pressure line** in the log/overlay (usage, budget, young-image bytes). 10. Any of the above needs upstream review. None of the local patches should be merged unreviewed. </details> <details> <summary><b>13. Recommended next investigations</b></summary> 1. **Immediate, static or passive:** per-entry known ticks in the dump; timing of `vkQueueSubmit`, `vkGetDeviceFaultInfoEXT` and dump printing separately. 2. **Needs code, passive:** per-image eviction -> recreation -> use tracing; per-submission command identity for copies, clears and tiler dispatches. 3. **May perturb the GPU:** `VK_AMD_buffer_marker` (extra GPU commands; not strictly passive); a different `flush draws` value. 4. **Not justified by current data:** lowering the minimum age further, raising eviction caps, or concluding that a specific shader is at fault. </details> <details> <summary><b>14. Known limitations</b></summary> - Two comparable instrumented `DEVICE_LOST` runs only (T3, T4); T2 has no ring. T5 and T6 end on allocation failures, not device loss. - Run-to-run variation is large (11 to 134 s). The age-16 effect rests on 5 runs. - No control run for the device loss (without the patch the game never gets there). - The known GPU tick is polled lazily. Waits are summed across threads. Simulation figures assume evictions and downloads all succeed. - A few metrics are always on in the local build (see section 6), which may slightly perturb timing. </details> ## 15. Conclusion and questions for maintainers The data shows a capacity limit in the memory phase and a reproducible but not understood queue loss afterwards. It does not show that the GC or any shader is at fault. Questions: 1. Is the age increase under pressure (80 / 160) intentional? 2. Is there a preferred recovery design for `CreateImage` failures? 3. Should GC thresholds follow the live budget? 4. Is the readback volume (up to ~1.2 GB/s cumulative here) expected, and should ring wraps be reported? 5. Which diagnostics would you accept upstream for submissions and device loss? 6. Is the RDNA2 select workaround acceptable upstream?
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 08:46 UTC · original

@⁠TxF-AI your section 10 matches the code: on a failed image allocation Kyty stops at once (image.cpp:717-721), even when the cache holds images it could free. My fix: the texture cache then frees images not used in the current GC tick (GPU-written ones are copied to guest memory first), waits for the GPU and retries; if that frees nothing, it stops with the same message.

Test build, with your #1885 workaround: KytyPS5-Windows-x64 (fork build b298ac4)

Could you run it like C3 (age-16 patch off, flush draws = 1)? A [lab-vram] image allocation failed: released ... line in _kyty.txt without a later failed to create image means it recovered. Please also say if loading gets slower.

@⁠akizaosolo this may also help the failed to create image stop on your 8 GB card.

**@⁠Nawid3333** on GitHub · 2026-11-24 08:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7126548454) @⁠TxF-AI your section 10 matches the code: on a failed image allocation Kyty stops at once (`image.cpp:717-721`), even when the cache holds images it could free. My fix: the texture cache then frees images not used in the current GC tick (GPU-written ones are copied to guest memory first), waits for the GPU and retries; if that frees nothing, it stops with the same message. Test build, with your #1885 workaround: [KytyPS5-Windows-x64 (fork build b298ac4)](https://github.com/Nawid3333/KytyPS5/actions/runs/45354443241/artifacts/14902292216) Could you run it like C3 (age-16 patch off, flush draws = 1)? A `[lab-vram] image allocation failed: released ...` line in `_kyty.txt` without a later `failed to create image` means it recovered. Please also say if loading gets slower. @⁠akizaosolo this may also help the `failed to create image` stop on your 8 GB card.
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-24 16:48 UTC · original

Thanks, @⁠Nawid3333. I ran your fork build (b298ac4) like C3: #1885 workaround, age-16 GC bypass off, flush draws = 1. This is one run.

failed to create image is no longer hit in this run.

  • There are 10 [lab-vram] image allocation failed: released … lines: 4 at frame 401, 5 at frame 599 and 1 at frame 744.
  • There is no failed to create image line anywhere in the log. The same setup without your change stopped on it early in loading (one run).
  • At the first four, VMA heap 0 was at usage = budget (11,562,306,560 B), so these were real budget hits.
  • Some requests needed several releases (same address twice at frame 401, three times at frame 599). The retry loop recovered each time.
  • I have not measured whether loading got slower.

A new stop appears later: Not implemented (result != vk::Result::eSuccess) at shaders.cpp:417 (the createGraphicsPipelines call).

  • EXIT_NOT_IMPLEMENTED prints only the expression, so the VkResult is not in the log. I can't tell if it is DEVICE_LOST, an out-of-memory error or a compile failure.
  • The last shader generated before the exit is the VS 0x3a984167c9a08605, and nothing is generated after it.
  • The same hash appears in two earlier runs (age-16 bypass on) that ended with VK_ERROR_DEVICE_LOST from vkQueueSubmit. There it was not the last shader (23 and 4 shaders came after it), so I am not claiming it is responsible.
  • No error, lost or out of memory line is logged before the exit. This build has no device-fault diagnostics, so a device loss would not be reported.

Request: could you add a lab-only log just before the EXIT at shaders.cpp:417, with vk::to_string(result) and the four key.stage_ids? It needs no GPU sync. Logging module.id next to the guest hash where the module is built (pipelineCache.cpp, near DumpShader) would also let me map the ids to the hashes in the log. With the VkResult we can tell a driver compile failure from device memory or a device loss.

Setup: RX 6750 XT 12 GB, Windows, AMD driver 32.0.21045.29003. I can rerun C3 on any new build.

**@⁠TxF-AI** on GitHub · 2026-11-24 16:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7138227883) Thanks, @⁠Nawid3333. I ran your fork build (`b298ac4`) like C3: #1885 workaround, age-16 GC bypass **off**, `flush draws = 1`. This is one run. **`failed to create image` is no longer hit in this run.** - There are 10 `[lab-vram] image allocation failed: released …` lines: 4 at frame 401, 5 at frame 599 and 1 at frame 744. - There is no `failed to create image` line anywhere in the log. The same setup without your change stopped on it early in loading (one run). - At the first four, VMA heap 0 was at `usage = budget` (11,562,306,560 B), so these were real budget hits. - Some requests needed several releases (same address twice at frame 401, three times at frame 599). The retry loop recovered each time. - I have not measured whether loading got slower. **A new stop appears later: `Not implemented (result != vk::Result::eSuccess)` at `shaders.cpp:417`** (the `createGraphicsPipelines` call). - `EXIT_NOT_IMPLEMENTED` prints only the expression, so the `VkResult` is not in the log. I can't tell if it is `DEVICE_LOST`, an out-of-memory error or a compile failure. - The last shader generated before the exit is the VS `0x3a984167c9a08605`, and nothing is generated after it. - The same hash appears in two earlier runs (age-16 bypass on) that ended with `VK_ERROR_DEVICE_LOST` from `vkQueueSubmit`. There it was not the last shader (23 and 4 shaders came after it), so I am not claiming it is responsible. - No error, `lost` or `out of memory` line is logged before the exit. This build has no device-fault diagnostics, so a device loss would not be reported. **Request:** could you add a lab-only log just before the `EXIT` at `shaders.cpp:417`, with `vk::to_string(result)` and the four `key.stage_ids`? It needs no GPU sync. Logging `module.id` next to the guest hash where the module is built (`pipelineCache.cpp`, near `DumpShader`) would also let me map the ids to the hashes in the log. With the `VkResult` we can tell a driver compile failure from device memory or a device loss. Setup: RX 6750 XT 12 GB, Windows, AMD driver 32.0.21045.29003. I can rerun C3 on any new build.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 18:09 UTC · original

@⁠TxF-AI Thank you. New build with both logs you asked for: KytyPS5-Windows-x64 (fork build 8cd7777). It is b298ac4 plus one lab commit:

  • [lab-pipeline] createGraphicsPipelines failed: <VkResult> stage_ids <VS/LS/mesh> <HS> <TES> <PS> just before that EXIT (and createComputePipelines failed: <VkResult> module <id> for compute pipelines).
  • [lab-pipeline] module <id> = <stage> 0x<hash> each time a shader module is built, so the stage ids map to the hashes in the log.

A rerun of C3 on it would show which VkResult it is.

**@⁠Nawid3333** on GitHub · 2026-11-24 18:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7140243765) @⁠TxF-AI Thank you. New build with both logs you asked for: [KytyPS5-Windows-x64 (fork build 8cd7777)](https://github.com/Nawid3333/KytyPS5/actions/runs/45443203384/artifacts/14946116150). It is `b298ac4` plus one lab commit: - `[lab-pipeline] createGraphicsPipelines failed: <VkResult> stage_ids <VS/LS/mesh> <HS> <TES> <PS>` just before that `EXIT` (and `createComputePipelines failed: <VkResult> module <id>` for compute pipelines). - `[lab-pipeline] module <id> = <stage> 0x<hash>` each time a shader module is built, so the stage ids map to the hashes in the log. A rerun of C3 on it would show which `VkResult` it is.
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-25 20:17 UTC · original

Thanks, @⁠Nawid3333. I ran 8cd7777 like C3 (#1885 workaround, age-16 bypass off, flush draws = 1). This is one run.

Allocation: no more failed to create image.

  • There are 33 [lab-vram] image allocation failed: released … lines and no failed to create image.
  • The last recovery is at frame 1336, at line 452,925 of a 3,038,429-line log. The allocation recoveries stopped long before the end of the run.

The new stop is a device loss, not a compile failure or an out-of-memory error. Your new line gives the VkResult:

[lab-pipeline] createGraphicsPipelines failed: ErrorDeviceLost stage_ids d36ddd17c243ed18 0000000000000000 0000000000000000 0b985c0fb9a44a7e

With your module lines the ids map to VS 0x3a984167c9a08605 and PS 0x5a132a6582622f31. The VS is the same one that was the last generated shader in C3. I would not read this pair as the cause: it is what was being built when the loss was noticed. In one of my earlier runs (my own tree, without your change) the device was also lost without this VS having been compiled, as far as my logs show.

What I see on my side (my own local diagnostics, not part of your fork):

  • VK_ERROR_DEVICE_LOST is first seen at different calls (vkQueueSubmit in my runs, createGraphicsPipelines in yours). So the place where it is reported does not look like the origin.
  • After the loss, vkGetSemaphoreCounterValue returns UINT64_MAX for both timeline semaphores, so the counter is not usable to tell how far the GPU got.
  • Before the loss the render queue shows no submissions for about 2.7 to 3.2 s, while presentation keeps going at roughly one frame per second.
  • VK_EXT_device_fault reports "No fault detected". I have no Windows TDR event, but the System event log has no entries at all after a certain time that day, so I cannot rule a TDR out.

I do not have a cause yet. Your change fixes the allocation stop in my runs, so the remaining stop looks like a separate GPU problem. I can rerun anything that helps or share the dump lines if you want them.

**@⁠TxF-AI** on GitHub · 2026-11-25 20:17 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7173444529) Thanks, @⁠Nawid3333. I ran `8cd7777` like C3 (#1885 workaround, age-16 bypass off, `flush draws = 1`). This is one run. **Allocation: no more `failed to create image`.** - There are 33 `[lab-vram] image allocation failed: released …` lines and no `failed to create image`. - The last recovery is at frame 1336, at line 452,925 of a 3,038,429-line log. The allocation recoveries stopped long before the end of the run. **The new stop is a device loss, not a compile failure or an out-of-memory error.** Your new line gives the `VkResult`: `[lab-pipeline] createGraphicsPipelines failed: ErrorDeviceLost stage_ids d36ddd17c243ed18 0000000000000000 0000000000000000 0b985c0fb9a44a7e` With your `module` lines the ids map to VS `0x3a984167c9a08605` and PS `0x5a132a6582622f31`. The VS is the same one that was the last generated shader in C3. I would not read this pair as the cause: it is what was being built when the loss was noticed. In one of my earlier runs (my own tree, without your change) the device was also lost without this VS having been compiled, as far as my logs show. **What I see on my side (my own local diagnostics, not part of your fork):** - `VK_ERROR_DEVICE_LOST` is first seen at different calls (`vkQueueSubmit` in my runs, `createGraphicsPipelines` in yours). So the place where it is reported does not look like the origin. - After the loss, `vkGetSemaphoreCounterValue` returns `UINT64_MAX` for both timeline semaphores, so the counter is not usable to tell how far the GPU got. - Before the loss the render queue shows no submissions for about 2.7 to 3.2 s, while presentation keeps going at roughly one frame per second. - `VK_EXT_device_fault` reports "No fault detected". I have no Windows TDR event, but the System event log has no entries at all after a certain time that day, so I cannot rule a TDR out. I do not have a cause yet. Your change fixes the allocation stop in my runs, so the remaining stop looks like a separate GPU problem. I can rerun anything that helps or share the dump lines if you want them.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-25 21:13 UTC · original

@⁠TxF-AI Thanks, that settles the allocation part: 33 releases and no failed to create image.

For the device loss, this build adds the device-loss report we use on #1215. When a submit, a semaphore call or a pipeline creation returns the loss, it prints [DEVLOST] lines: the last GPU command the queue started and the last one it finished (AMD buffer markers), the commands recorded around the first unfinished one, and the fault address if the driver reports one. The markers add GPU commands around every draw and dispatch, so timing changes a little. It keeps everything from 8cd7777 on current main, with the current #2551: KytyPS5-Windows-x64 (window title Fork build Nawid3333/KytyPS5 5e2fc6b). Could you run it like C3 and attach the _kyty.txt zipped?

**@⁠Nawid3333** on GitHub · 2026-11-25 21:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7174784093) @⁠TxF-AI Thanks, that settles the allocation part: 33 releases and no `failed to create image`. For the device loss, this build adds the device-loss report we use on #1215. When a submit, a semaphore call or a pipeline creation returns the loss, it prints `[DEVLOST]` lines: the last GPU command the queue started and the last one it finished (AMD buffer markers), the commands recorded around the first unfinished one, and the fault address if the driver reports one. The markers add GPU commands around every draw and dispatch, so timing changes a little. It keeps everything from `8cd7777` on current main, with the current #2551: [KytyPS5-Windows-x64](https://github.com/Nawid3333/KytyPS5/actions/runs/45695927119/artifacts/15063825490) (window title `Fork build Nawid3333/KytyPS5 5e2fc6b`). Could you run it like C3 and attach the `_kyty.txt` zipped?
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-26 19:40 UTC · original

Could you run it like C3 and attach the _kyty.txt zipped?

Thanks @⁠Nawid3333. I haven't run 5e2fc6b yet. In the meantime I have one run on my own tree that may help. Single run, so nothing conclusive about the DEVICE_LOST.

Setup (not one of your builds): dfe0f3b + my local diagnostics (submission ring, VRAM/GC counters) + your scalar-select #1885 workaround (identical to the lab commit) + #2551 applied by hand (textureCache.cpp/h, image.cpp/h; I only deferred my once-only failure report so a recoverable failure doesn't consume it). C3-like settings: age-16 off, flush draws = 1. No [lab-vram] line, so releases are not logged directly. RX 6750 XT, driver 32.0.21045.29003.

Allocation (#2551):

  • 93 vmaCreateImage failures, one VMA heap 0/1/2 block each. Heap 0 usage >= budget every time (max about 11.18 GB), between ~31 s and ~69 s of play.
  • No failed to create image. The game kept running ~87 s after the last block.
  • Non-GC image downloads went 0 -> 728 (2.26 GB) only across intervals that contained failures. That fits ReleaseIdleImages (the only non-GC caller here, readback flags off), but it is an inference from the code.

DEVICE_LOST (still there): 156 s into play, vkQueueSubmit returns ErrorDeviceLost (render queue). vkGetDeviceFaultInfoEXT: "No fault detected", 0 address / 0 vendor infos. No Windows TDR/System event, no LiveKernelReports/WER. Dedicated VRAM at that point is about 9.1 GB, after an 11 GB peak ~87 s earlier.

In my ring dump (last 256 submissions, ~3.6 s) the failing submit is empty. The 17 render submissions before it landed within ~0.5 ms, then 2.3 s passed with no render submission while presents continued at ~1 Hz, similar to the silence I reported earlier. The timeline semaphores read UINT64_MAX after the loss, and my "known completed tick" is polled lazily, so I can't tell how far the GPU got. My ring is host-side and its draw-to-submission association isn't verified.

I don't have a cause. To see whether GPU progress stops before the loss, I'm thinking of polling the timeline semaphore every ~100 ms from a separate thread and keeping the last good value with a timestamp. Would you rely on your AMD buffer markers instead? I wonder whether a single started/finished slot could misreport with out-of-order completion, but I haven't checked that. Any instrumentation you'd suggest?

**@⁠TxF-AI** on GitHub · 2026-11-26 19:40 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7201833619) > Could you run it like C3 and attach the `_kyty.txt` zipped? Thanks @⁠Nawid3333. I haven't run `5e2fc6b` yet. In the meantime I have one run on my own tree that may help. Single run, so nothing conclusive about the DEVICE_LOST. **Setup (not one of your builds):** `dfe0f3b` + my local diagnostics (submission ring, VRAM/GC counters) + your scalar-select #1885 workaround (identical to the lab commit) + #2551 applied by hand (`textureCache.cpp/h`, `image.cpp/h`; I only deferred my once-only failure report so a recoverable failure doesn't consume it). C3-like settings: age-16 off, flush draws = 1. No `[lab-vram]` line, so releases are not logged directly. RX 6750 XT, driver 32.0.21045.29003. **Allocation (#2551):** - 93 `vmaCreateImage` failures, one `VMA heap 0/1/2` block each. Heap 0 `usage >= budget` every time (max about 11.18 GB), between ~31 s and ~69 s of play. - No `failed to create image`. The game kept running ~87 s after the last block. - Non-GC image downloads went 0 -> 728 (2.26 GB) only across intervals that contained failures. That fits `ReleaseIdleImages` (the only non-GC caller here, readback flags off), but it is an inference from the code. **DEVICE_LOST (still there):** 156 s into play, `vkQueueSubmit` returns `ErrorDeviceLost` (render queue). `vkGetDeviceFaultInfoEXT`: "No fault detected", 0 address / 0 vendor infos. No Windows TDR/System event, no LiveKernelReports/WER. Dedicated VRAM at that point is about 9.1 GB, after an 11 GB peak ~87 s earlier. In my ring dump (last 256 submissions, ~3.6 s) the failing submit is empty. The 17 render submissions before it landed within ~0.5 ms, then 2.3 s passed with no render submission while presents continued at ~1 Hz, similar to the silence I reported earlier. The timeline semaphores read `UINT64_MAX` after the loss, and my "known completed tick" is polled lazily, so I can't tell how far the GPU got. My ring is host-side and its draw-to-submission association isn't verified. I don't have a cause. To see whether GPU progress stops before the loss, I'm thinking of polling the timeline semaphore every ~100 ms from a separate thread and keeping the last good value with a timestamp. Would you rely on your AMD buffer markers instead? I wonder whether a single started/finished slot could misreport with out-of-order completion, but I haven't checked that. Any instrumentation you'd suggest?
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-26 20:08 UTC · original

@⁠TxF-AI Thanks, that is what #2551 should do: 93 failed image allocations, all recovered.

On the markers: the single slots cannot go backwards through out-of-order completion. Each marker write waits for every earlier marker write of the same or an earlier stage in submission order (VK_AMD_buffer_marker, first synchronization scope), and both schedulers submit to the same queue. So finished = N means everything submitted to that queue before N's marker reached the bottom of the pipe, and started is the newest command the GPU began. Your timeline poll answers a different question (when progress stopped, not which command), so it adds to the markers rather than replacing them.

Could you run 5e2fc6b like C3 and attach the _kyty.txt zipped?

**@⁠Nawid3333** on GitHub · 2026-11-26 20:08 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7202351842) @⁠TxF-AI Thanks, that is what #2551 should do: 93 failed image allocations, all recovered. On the markers: the single slots cannot go backwards through out-of-order completion. Each marker write waits for every earlier marker write of the same or an earlier stage in submission order (VK_AMD_buffer_marker, first synchronization scope), and both schedulers submit to the same queue. So `finished = N` means everything submitted to that queue before N's marker reached the bottom of the pipe, and `started` is the newest command the GPU began. Your timeline poll answers a different question (when progress stopped, not which command), so it adds to the markers rather than replacing them. Could you run `5e2fc6b` like C3 and attach the `_kyty.txt` zipped?
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-27 01:07 UTC · original

Could you run 5e2fc6b like C3 and attach the _kyty.txt zipped?

Thanks for the marker explanation, that settles my out-of-order question. You were right that the timeline poll would add to the markers rather than replace them: I'll still add it later to see when progress stops. I ran 5e2fc6b as downloaded (CI artifact, not rebuilt) in a fresh folder with the original save data, C3-like settings (flush draws = 1; the build has no age-16 switch; it includes your #1885 workaround). RX 6750 XT, driver 32.0.21045.29003. The zipped _kyty.txt (1.3 MB) follows right after this comment. Single run again, so nothing conclusive.

Allocation (#2551): 10 [lab-vram] releases (60 images, ~211 MB, frames 354-579). Each one matches exactly one VMA heap block (heap 0 usage = budget, about 10.0 GB). No failed to create image.

DEVICE_LOST at 164.6 s of play, noticed by createGraphicsPipelines (shaders.cpp:428) with stage_ids d36ddd17c243ed18 ... 0b985c0fb9a44a7e, the same ids as in my 8cd7777 run.

From the [DEVLOST] report:

  • device fault: "No fault detected", 0 address / 0 vendor infos
  • AMD markers: last started #545256 dispatch tick=378853 hash0=0xb37644325c6f10c6 hash1=0x0000001163fcc000, last finished #545255 kyty-internal site=tiler.cpp:307, so the first unfinished command is that dispatch (no indirect args)
  • #545249-#545252 (dispatches) finished; #545257-#545263 were recorded after it
  • last known finished tick = UINT64_MAX (same poisoned value as before)

Context, with no conclusion drawn:

  • That CS was compiled fresh about 9k log lines before the loss (29,500 SPIR-V words, 98 blocks, 6 loops). The same hash was also compiled in earlier runs of mine, which did not end on it as far as I can tell.
  • My 1 Hz sampler shows the 3D engine at about 96-111 % in the last two seconds, and dedicated VRAM at about 7.1 GB at the loss, after a 10.0 GB peak about 100 s earlier.
  • No Windows System/TDR events, no LiveKernelReports/WER.

Questions:

  1. For a plain dispatch the report doesn't print the dimensions or the bound resources. Could the report add the group counts for the first unfinished dispatch (and maybe the newest writers of its inputs, like you do for dispatch-indirect)?
  2. The marker says the dispatch started but not that it hung. What would you try to tell a hang inside this dispatch from a fault caused by something an earlier command wrote?
**@⁠TxF-AI** on GitHub · 2026-11-27 01:07 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7207036915) > Could you run `5e2fc6b` like C3 and attach the `_kyty.txt` zipped? Thanks for the marker explanation, that settles my out-of-order question. You were right that the timeline poll would add to the markers rather than replace them: I'll still add it later to see when progress stops. I ran `5e2fc6b` as downloaded (CI artifact, not rebuilt) in a fresh folder with the original save data, C3-like settings (flush draws = 1; the build has no age-16 switch; it includes your #1885 workaround). RX 6750 XT, driver 32.0.21045.29003. The zipped `_kyty.txt` (1.3 MB) follows right after this comment. Single run again, so nothing conclusive. **Allocation (#2551):** 10 `[lab-vram]` releases (60 images, ~211 MB, frames 354-579). Each one matches exactly one `VMA heap` block (heap 0 usage = budget, about 10.0 GB). No `failed to create image`. **DEVICE_LOST** at 164.6 s of play, noticed by `createGraphicsPipelines` (`shaders.cpp:428`) with `stage_ids d36ddd17c243ed18 ... 0b985c0fb9a44a7e`, the same ids as in my `8cd7777` run. From the `[DEVLOST]` report: - device fault: "No fault detected", 0 address / 0 vendor infos - AMD markers: last started `#545256 dispatch tick=378853 hash0=0xb37644325c6f10c6 hash1=0x0000001163fcc000`, last finished `#545255 kyty-internal site=tiler.cpp:307`, so the first unfinished command is that dispatch (no indirect args) - `#545249`-`#545252` (dispatches) finished; `#545257`-`#545263` were recorded after it - last known finished tick = `UINT64_MAX` (same poisoned value as before) Context, with no conclusion drawn: - That CS was compiled fresh about 9k log lines before the loss (29,500 SPIR-V words, 98 blocks, 6 loops). The same hash was also compiled in earlier runs of mine, which did not end on it as far as I can tell. - My 1 Hz sampler shows the 3D engine at about 96-111 % in the last two seconds, and dedicated VRAM at about 7.1 GB at the loss, after a 10.0 GB peak about 100 s earlier. - No Windows System/TDR events, no LiveKernelReports/WER. Questions: 1. For a plain dispatch the report doesn't print the dimensions or the bound resources. Could the report add the group counts for the first unfinished dispatch (and maybe the newest writers of its inputs, like you do for dispatch-indirect)? 2. The marker says the dispatch started but not that it hung. What would you try to tell a hang inside this dispatch from a fault caused by something an earlier command wrote?
Author
Owner

@⁠TxF-AI on GitHub · 2026-11-27 01:14 UTC · original

Zipped _kyty.txt from the run above.

_kyty_5e2fc6b_run.zip

**@⁠TxF-AI** on GitHub · 2026-11-27 01:14 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2019#issuecomment-7207126105) Zipped `_kyty.txt` from the run above. [_kyty_5e2fc6b_run.zip](https://github.com/user-attachments/files/35489643/_kyty_5e2fc6b_run.zip)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#2019
No description provided.