[GAME STATUS]: Code Vein II — In game with MaxImages fix (PR #2292), low FPS #2293

Open
opened 2026-11-26 10:18:18 +00:00 by github-bot · 1 comment
Owner

@⁠RubyUwU56 on GitHub · 2026-11-15 23:19 UTC · original

Game title

CODE VEIN II

Game ID / serial

PPSA23908

KytyPS5 version

Fork build RubyUwU56/KytyPS5 d68f820 (upstream 3acafb3 + MaxImages 64 -> 128, PR #2292)

Compatibility status

In game

Last working build / first broken build

No response

Result details

  • Official build crashes at boot: "shader resource tracking: hash=0x9fcaf641322a7c96
    stage=compute pc=0x0000a794 image resource limit exceeded" (ResourceTracking.cpp)
  • With MaxImages raised to 128 (PR #2292): intro cutscene runs at a stable 60 FPS
  • Character creator loads and renders correctly, but only ~6 FPS
    (Guest GPU ~134 ms/frame, heavy pipeline compilation on first run)
  • Reaches MainWorld (loads in ~5 s) and is controllable: enemies spawn, buddy Lou loads,
    ran ~4.5 minutes in-game without crashing
  • PS5 direct memory nearly full (11.77 / 12.00 GB)
  • Page table far over limit (CPU 34572 / 16384, GPU 34290 / 16384)
  • Pro mode: fails to reserve 13952 MB direct memory (error 0x5AA) on 32 GB RAM
  • Missing HLE calls: 2
  • Tracy profile: Thread_Gpu is saturated; top self-time zones are CpOpDispatchIndirect
    (6M calls, 15%), CommandProcessor::Process (11%), DrawAuto (7.7%) and the descriptor
    binding path (RebindBuffers / PrepareBindings / CommitBindings, ~15% combined).
    Pipeline creation is only ~2%.

Steps to reproduce the result

  1. Open KytyPS5 (build above), Pro mode off.
  2. Boot Code Vein II.
  3. Intro plays at 60 FPS.
  4. Continue to the character creator -> loads, runs at ~6 FPS.
  5. Finish character creation -> MainWorld loads, game is controllable.

Expected behavior

Character creator and gameplay should run at playable framerates.

OS

Windows 11 Pro

CPU

AMD Ryzen 7 5800X

GPU

RTX 2080 TI 11VRAM

RAM / VRAM

32 GB RAM / 11 GB VRAM

Log file upload

kyty_codevein2_log.zip

Screenshots/video

https://github.com/user-attachments/assets/8cc34db1-43ff-4a14-b112-e3483941f88d

Extra notes

Settings: Pro mode off, Cache shaders, Relaxed shader float math,
Accurate texture synchronization, Skip boot logos, Run in fullscreen,
Present mode Mailbox, Vblank 120, console language German.
Tracy profiler was enabled during the logged run.

**@⁠RubyUwU56** on GitHub · 2026-11-15 23:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2293) ### Game title CODE VEIN II ### Game ID / serial PPSA23908 ### KytyPS5 version Fork build RubyUwU56/KytyPS5 d68f820 (upstream 3acafb3 + MaxImages 64 -> 128, PR #2292) ### Compatibility status In game ### Last working build / first broken build _No response_ ### Result details - Official build crashes at boot: "shader resource tracking: hash=0x9fcaf641322a7c96 stage=compute pc=0x0000a794 image resource limit exceeded" (ResourceTracking.cpp) - With MaxImages raised to 128 (PR #2292): intro cutscene runs at a stable 60 FPS - Character creator loads and renders correctly, but only ~6 FPS (Guest GPU ~134 ms/frame, heavy pipeline compilation on first run) - Reaches MainWorld (loads in ~5 s) and is controllable: enemies spawn, buddy Lou loads, ran ~4.5 minutes in-game without crashing - PS5 direct memory nearly full (11.77 / 12.00 GB) - Page table far over limit (CPU 34572 / 16384, GPU 34290 / 16384) - Pro mode: fails to reserve 13952 MB direct memory (error 0x5AA) on 32 GB RAM - Missing HLE calls: 2 - Tracy profile: Thread_Gpu is saturated; top self-time zones are CpOpDispatchIndirect (6M calls, 15%), CommandProcessor::Process (11%), DrawAuto (7.7%) and the descriptor binding path (RebindBuffers / PrepareBindings / CommitBindings, ~15% combined). Pipeline creation is only ~2%. ### Steps to reproduce the result 1. Open KytyPS5 (build above), Pro mode off. 2. Boot Code Vein II. 3. Intro plays at 60 FPS. 4. Continue to the character creator -> loads, runs at ~6 FPS. 5. Finish character creation -> MainWorld loads, game is controllable. ### Expected behavior Character creator and gameplay should run at playable framerates. ### OS Windows 11 Pro ### CPU AMD Ryzen 7 5800X ### GPU RTX 2080 TI 11VRAM ### RAM / VRAM 32 GB RAM / 11 GB VRAM ### Log file upload [kyty_codevein2_log.zip](https://github.com/user-attachments/files/34888567/kyty_codevein2_log.zip) ### Screenshots/video https://github.com/user-attachments/assets/8cc34db1-43ff-4a14-b112-e3483941f88d ### Extra notes Settings: Pro mode off, Cache shaders, Relaxed shader float math, Accurate texture synchronization, Skip boot logos, Run in fullscreen, Present mode Mailbox, Vblank 120, console language German. Tracy profiler was enabled during the logged run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:18 +00:00
Author
Owner

@⁠RubyUwU56 on GitHub · 2026-11-16 21:30 UTC · original

Performance profiling (Tracy) — CPU/GPU memory faults dominate

I profiled Code Vein II in-game with Tracy, using extra zones added on my branch
perf-profiling-v2
(zones only, no behaviour changes; base 3acafb3 + MaxImages 128 from #2292).
Warm shader cache, ~7 min capture in MainWorld, Ryzen 7 5800X / RTX 2080 Ti.

Top zones (self time)

Zone Total Count Mean Threads
HandleFault::ReadMemory 113.9 s (26.5%) 30,373 3.75 ms 21
HandleFault::WriteInvalidate 94.3 s (22.0%) 2,555,932 36.9 µs 37
RenderExecutor::RebindBuffers 29.4 s (6.9%) 12.9 M 2.28 µs 1
CreatePipeline(Compute)::DriverCompile 26.6 s (6.2%) 45 590 ms 1
RenderExecutor::PrepareBindings 26.0 s (6.1%) 12.9 M 2.02 µs 1
CommandProcessor::Process 24.1 s (5.6%) 165,640 145 µs 1
Materialize::WalkSrt 14.3 s (3.3%) 13.0 M 1.1 µs 1

HandleFault::* are zones inside RenderContext::HandleFault.

Observations

  • ~48% of instrumented time is spent in GPU page-fault handling on guest CPU
    threads
    (21–37 distinct threads).
  • BufferCache::ReadMemory (also reached from InvalidateMemory via the
    InvalidateRegion callback) uses GetGpu().SendCommandSync(...), so a faulting
    game thread blocks until Thread_Gpu gets to the command. Thread_Gpu is
    saturated (single CommandProcessor::Process blocks up to ~15 ms), which matches
    the ~3.75 ms mean per read fault.
  • Per-draw/dispatch descriptor work (RebindBuffers, PrepareBindings,
    CommitBindings, MaterializeResources) is the second cost centre, ~13 M calls.
  • In an earlier capture Materialize::WalkSrt averaged 8.7 µs instead of 1.1 µs;
    this seems scene dependent.
  • Remaining stutter comes from occasional driver pipeline compiles (up to ~590 ms
    each) even with a warm cache.

Happy to run further captures or test patches.

Tracy statistics screenshots attached.

image image
**@⁠RubyUwU56** on GitHub · 2026-11-16 21:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2293#issuecomment-6929980168) ## Performance profiling (Tracy) — CPU/GPU memory faults dominate I profiled Code Vein II in-game with Tracy, using extra zones added on my branch [perf-profiling-v2](https://github.com/RubyUwU56/KytyPS5/tree/perf-profiling-v2) (zones only, no behaviour changes; base 3acafb3 + MaxImages 128 from #2292). Warm shader cache, ~7 min capture in MainWorld, Ryzen 7 5800X / RTX 2080 Ti. ### Top zones (self time) | Zone | Total | Count | Mean | Threads | |---|---|---|---|---| | `HandleFault::ReadMemory` | 113.9 s (26.5%) | 30,373 | 3.75 ms | 21 | | `HandleFault::WriteInvalidate` | 94.3 s (22.0%) | 2,555,932 | 36.9 µs | 37 | | `RenderExecutor::RebindBuffers` | 29.4 s (6.9%) | 12.9 M | 2.28 µs | 1 | | `CreatePipeline(Compute)::DriverCompile` | 26.6 s (6.2%) | 45 | 590 ms | 1 | | `RenderExecutor::PrepareBindings` | 26.0 s (6.1%) | 12.9 M | 2.02 µs | 1 | | `CommandProcessor::Process` | 24.1 s (5.6%) | 165,640 | 145 µs | 1 | | `Materialize::WalkSrt` | 14.3 s (3.3%) | 13.0 M | 1.1 µs | 1 | `HandleFault::*` are zones inside `RenderContext::HandleFault`. ### Observations - **~48% of instrumented time is spent in GPU page-fault handling on guest CPU threads** (21–37 distinct threads). - `BufferCache::ReadMemory` (also reached from `InvalidateMemory` via the `InvalidateRegion` callback) uses `GetGpu().SendCommandSync(...)`, so a faulting game thread blocks until `Thread_Gpu` gets to the command. `Thread_Gpu` is saturated (single `CommandProcessor::Process` blocks up to ~15 ms), which matches the ~3.75 ms mean per read fault. - Per-draw/dispatch descriptor work (`RebindBuffers`, `PrepareBindings`, `CommitBindings`, `MaterializeResources`) is the second cost centre, ~13 M calls. - In an earlier capture `Materialize::WalkSrt` averaged 8.7 µs instead of 1.1 µs; this seems scene dependent. - Remaining stutter comes from occasional driver pipeline compiles (up to ~590 ms each) even with a warm cache. Happy to run further captures or test patches. Tracy statistics screenshots attached. <img width="1917" height="1080" alt="image" src="https://github.com/user-attachments/assets/b6e1e25c-3463-4133-a1c0-f8f5da8deaad" /> <img width="1915" height="1076" alt="image" src="https://github.com/user-attachments/assets/7acf4393-0253-47f7-840b-186347ae4b6d" />
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#2293
No description provided.