Repository navigation
Description
Setup: Bloodborne for Mac 0.7.0-beta2 (online play beta), M4 Max 64 GB, macOS 27.2.1. Output 2560x1440, MetalFX temporal at Ultra Performance (scene 854x480), 60 FPS cap, fixed timing, full screen. Shadows from dynamic lights and Screen-space reflections off.
What happens: The rest of Central Yharnam holds 60 FPS. In the sewer below the first lamp it drops to 20-27 FPS and recovers as soon as I leave it. Lowering the output resolution and using Ultra Performance changes nothing. Turning off dynamic-light shadows and SSR helped a little but never got past 30.
Numbers from one session in that spot (BB_FRAME_STATS=1, BB_PASS_STATS=1, excerpt below):
- Frame stats: 27.3 FPS, worst frame 46.1 ms, 0 shader compiles, ~1,650 draws per frame.
- Recording thread busy 35 ms per frame (the game's command thread waits ~31 ms for it); GPU busy 24.9 ms (68%).
- 368 Metal encoders and ~1,674 ordering fence waits per frame (at most 181 on one encoder); ~120 render passes per frame, mostly "BeginRendering: other attachments/size".
- 28.9 tessellated draws and 24.8 rect/quad-list draws per frame; copy shader 168.8 deferred per frame.
Guess: the cost doesn't scale with pixels, and the encoder and ordering-wait counts look like the ones in the backlog item "Tessellated draws split their render pass" (it quotes ~1,700 ordering waits per frame in the city). I haven't confirmed that tessellation is the cause here; BB_ENCODER_STATS lines are not in my log.
Happy to test a build or record a route from that spot. The log excerpt has my paths, game folder and online ID removed.
Log excerpt (redacted)
2026-11-17T01:24:27.594-03:00 NOTICE launcher: Bloodborne for Mac 0.7.0-beta2 on Mac16,5 (Apple M4 Max), 64 GB, macOS 27.2.1 (Build 26B131); output 2560x1440, upscaler metalfx, quality Ultra Performance, cap 60 FPS, fixed timing, full screen; game folder <redacted>
2026-11-17T01:24:28.969-03:00 INFO Output 2560x1440: scene 854x480, direct memory 5056 MiB (live_resolution=1: live changes)
2026-11-17T01:24:29.007-03:00 INFO Patches: FPS preset 60; 258 writes from ['60 FPS++', 'Disable Dynamic Light Shadows (perf increase)']
2026-11-17T01:24:30.837-03:00 INFO VideoOut: vblank 60 Hz, frame limit 60 FPS
...
2026-11-17T01:25:51.809-03:00 INFO Frame stats: 27.3 FPS, worst frame 46.1 ms (vblank 60 Hz); 0 shader/pipeline compiles, 0.0 ms; 0 recorder syncs; 1083 write faults/s, 0 hot pages; GPU thread 6.47 us/draw, 1650 draws/frame, idle 0.2%; blocked: recorder 0.6%, host copies 1.5% (41/frame), copy threads 0.0%, GPU ticks 65.0%; reduced-size draws 0/frame of 0 in the scene; GPU busy 24.94 ms/frame (68.0%)
2026-11-17T01:25:51.809-03:00 INFO GPU memory: 8055 MiB allocated, 6273 MiB resident buffers; collector usage 1782 MiB, trigger 36819 MiB, 0 images freed; pipelines: 626 from the binary archive, 49 compiled
2026-11-17T01:25:51.809-03:00 INFO GPU memory detail: staging 224/240/16 MiB (peak 224/240/16; device-local/host-uncached/host-cached); copies past 4 GiB: index 0 CPU + 0 GPU, indirect 0 CPU + 0 GPU (0 counted draws read in place); page table fills 0; size-0 sinks 0, uncovered read-backs 0; Metal errors 0
2026-11-17T01:25:51.809-03:00 INFO Arena requests (since start): 5767261 in a run (0 ending over 4 GiB past its start), 0 straddling a run end, 0 across a gap, outside: 0 CPU-only, 0 unmapped; 0 of size 0, 0 before the layout; 0 late run changes
2026-11-17T01:25:51.809-03:00 INFO Frame timeline (ms/frame): recording thread busy 35.33 (flip submit 0.05, frames-ahead wait 0.00), waiting for packets 0.87; vkQueueSubmit 0.05 in 4.1 calls; command thread waiting for recording 31.20; flip submit -> GPU done 21.91, GPU done every 36.66; per frame 28.9 tessellated, 24.8 rect/quad-list draws; hoisted 50.1 uploads, copy shader 13.9 hoisted / 15.4 inline / 168.8 deferred (0.0 conflicts); arena ordering requests 41.7 naming render passes, 378.3 others; 3.3 not hoisted (in flight); busy-slot reuses 0.0 guest memory, 0.0 motion; ordering fence waits 1674.3 per frame on 368.2 encoders, at most 181 on one
2026-11-17T01:25:51.809-03:00 INFO Frame pacing: median 37.85 ms, stddev 7.47 ms, p99 46.07 ms, 0 frames over 1.5x median
2026-11-17T01:25:51.809-03:00 INFO Spikes (frames later than 1.25 periods): game 136, flip 136, present 136, display 0 (first 20 printed); 0 frames never displayed; present->display mean 0.0 ms, max 0.0 ms
2026-11-17T01:25:51.810-03:00 INFO Spike #4150 (1 frames after #4149), ms apart: game 43.8!, flip 44.9!, present 44.9!, display 0.0 | game->host 0.09, host->flip packet 43.2, frame prep 0.1, queued 0.0, flip->presented 0.2 (acquire 0.0, submit 0.1, vkQueuePresent 0.0), presented->display 0.0 | GPU thread on CPU 10.3 ms, 0 preempted, 1602 draws; recording busy 44.1 idle 0.3, frames-ahead wait 0.0, recorder waits 40.4, host copies 0.5; 1 GPU frames done; 0 compiles (0.0 ms waited) | game: 76 GPU page faults, 3.8 ms waited; on CPU: main thread 5.2 ms, flip thread 1.4 ms, all threads 18.2 ms, busiest FMOD mixer thread 2.1 ms
2026-11-17T01:25:51.841-03:00 INFO Render passes: 3272 begins/s, 3272 ends/s by reason:
2026-11-17T01:25:51.841-03:00 INFO 2717/s BeginRendering: other attachments/size
2026-11-17T01:25:51.841-03:00 INFO 138/s vk_runtime.cpp:1070 void Vulkan::Runtime::ClearImage(VideoCore::Image *, const VideoCore::SubresourceRange &, const vk::ClearValue &)
2026-11-17T01:25:51.841-03:00 INFO 93/s vk_runtime.cpp:589 void Vulkan::Runtime::DownloadImage(VideoCore::Image *, const VideoCore::Buffer *, std::span<const vk::BufferImageCopy>)
2026-11-17T01:25:51.841-03:00 INFO 92/s vk_runtime.cpp:796 void Vulkan::Runtime::CopyImage(VideoCore::Image *, VideoCore::Image *)
2026-11-17T01:25:51.841-03:00 INFO 92/s vk_rasterizer.cpp:1423 void Vulkan::Rasterizer::DispatchRecord(const ComputePipeline *)
2026-11-17T01:25:51.841-03:00 INFO 69/s BeginRendering: same attachments, clear/flags differ
2026-11-17T01:25:51.841-03:00 INFO 24/s texture_cache.cpp:858 void VideoCore::TextureCache::RefreshImage(Image &)
2026-11-17T01:25:51.841-03:00 INFO 23/s vk_temporal_upscaler.cpp:1002 void Vulkan::TemporalUpscaler::PrepareUiDepth(VideoCore::ImageId)
2026-11-17T01:25:51.841-03:00 INFO 23/s pp_pass.cpp:21 void Vulkan::HostPasses::PostProcessingPass::Render(Scheduler &, Metal::Object, Metal::Object, u32, u32, const Settings &)
2026-11-17T01:25:51.841-03:00 INFO split passes (same attachments reopened next): 139/s, after:
2026-11-17T01:25:51.841-03:00 INFO 69/s vk_runtime.cpp:796 void Vulkan::Runtime::CopyImage(VideoCore::Image *, VideoCore::Image *)
2026-11-17T01:25:51.841-03:00 INFO 46/s vk_runtime.cpp:589 void Vulkan::Runtime::DownloadImage(VideoCore::Image *, const VideoCore::Buffer *, std::span<const vk::BufferImageCopy>)
2026-11-17T01:25:51.841-03:00 INFO 23/s vk_runtime.cpp:1070 void Vulkan::Runtime::ClearImage(VideoCore::Image *, const VideoCore::SubresourceRange &, const vk::ClearValue &)
2026-11-17T01:25:51.841-03:00 INFO 1/s texture_cache.cpp:858 void VideoCore::TextureCache::RefreshImage(Image &)
2026-11-17T01:25:51.854-03:00 INFO Encoders: 434.0 per frame over 137 frames:
2026-11-17T01:25:51.854-03:00 INFO 1.1 render (pass start) first
2026-11-17T01:25:51.854-03:00 INFO 4.0 render (pass start) after compute
2026-11-17T01:25:51.854-03:00 INFO 30.9 render (pass start) EndEncoding
2026-11-17T01:25:51.854-03:00 INFO 127.1 render (pass start) pass end
2026-11-17T01:25:51.854-03:00 INFO 24.8 render (pass split) after compute
2026-11-17T01:25:51.854-03:00 INFO 24.8 compute after render
2026-11-17T01:25:51.854-03:00 INFO 27.7 compute after blit
2026-11-17T01:25:51.854-03:00 INFO 0.9 compute reopen (lane)
2026-11-17T01:25:51.854-03:00 INFO 40.8 compute ordering wait
2026-11-17T01:25:51.854-03:00 INFO 1.5 compute EndEncoding
2026-11-17T01:25:51.854-03:00 INFO 15.4 compute pass end
2026-11-17T01:25:51.854-03:00 INFO 3.8 blit first
2026-11-17T01:25:51.854-03:00 INFO 48.7 blit after compute
2026-11-17T01:25:51.854-03:00 INFO 1.0 blit reopen (access)
2026-11-17T01:25:51.854-03:00 INFO 27.0 blit ordering wait
2026-11-17T01:25:51.854-03:00 INFO 33.8 blit EndEncoding
...
2026-11-17T01:26:31.939-03:00 INFO Spike #5515 (1 frames after #5514), ms apart: game 30.0!, flip 30.6!, present 30.6!, display 0.0 | game->host 0.10, host->flip packet 28.9, frame prep 0.1, queued 0.0, flip->presented 0.1 (acquire 0.0, submit 0.1, vkQueuePresent 0.0), presented->display 0.0 | GPU thread on CPU 4.2 ms, 0 preempted, 665 draws; recording busy 30.1 idle 0.3, frames-ahead wait 0.0, recorder waits 27.9, host copies 0.5; 1 GPU frames done; 0 compiles (0.0 ms waited) | game: 49 GPU page faults, 2.7 ms waited; on CPU: main thread 4.7 ms, flip thread 1.4 ms, all threads 14.9 ms, busiest GXRenderThread 1.4 ms
Activity
Wooloomooloo2 commentedon Nov 20, 2026
Thanks for the detailed report @fparrav, and for following it up with #160, which found the cause.
For anyone reading later: the slowdown came from the Object motion setting together with a temporal upscaler (MetalFX or FSR 3). Passes in the sewer alternate between two sizes, and each switch made the renderer wait for the whole GPU and rebuild the motion-vector texture. #160 keeps one texture per size, and in fparrav's run the sewer held about 58 FPS instead of 20–47. With Object motion off (the default), this slowdown didn't happen.
#160 is merged and goes out in 0.5.18. I'll close this once it ships.
Written with Claude Code.
gpu/motion: 🐛 keep one motion texture per size instead of waiting on …
docs/findings: 📝 sewer slowdown profile and the motion texture fix (#159
Merge PR #160: one object motion texture per size (fparrav, #159)
Wooloomooloo2 commentedon Nov 20, 2026
@fparrav your fix (#160) is merged and in a test build: 0.5.18 test 1. We couldn't find the exact spot in the sewer here, so could you check it on your Mac? Same settings as in your report (MetalFX, Character motion vectors on), same place below the first lamp. Does it hold around 58 FPS now?
If it does, we'll close this when 0.5.18 ships.
Written with Claude Code.
fparrav commentedon Nov 20, 2026
Tested 0.5.18 test 1 and the sewer slowdown is gone. Thanks for the quick build.
Setup: same as the report. M4 Max 64 GB, macOS 27.2.1, output 2560x1440, MetalFX temporal at Ultra Performance (scene 854x480), Character motion vectors on, dynamic-light shadows and SSR off, 60 FPS cap, fixed timing, full screen. I walked into the sewer below the first lamp and stayed around it.
Result: 60 FPS, stable, in the spot that used to drop to 20-27 FPS.
From the log (
BB_FRAME_STATS=1, 8 minutes, 99 five-second intervals):Heavy-scene frame timeline, before (report) and after:
One caveat: the busiest frames in this run had up to 1,257 draws, while the original excerpt showed about 1,650. The fix removes the wait on the GPU at render-size changes, which matches the recording thread dropping from 35 ms to 9 ms, so I'm confident that was the cause. I just can't say the two runs were at exactly the same camera position.
I think this can be closed when 0.5.18 ships.
fparrav commentedon Nov 20, 2026
One more data point for #159, from a different place: the bonfires and burnt bodies with the thick smoke columns in Old Yharnam, before the gunner.
With 0.5.17-5 that area dropped to 40-48 FPS. With 0.5.18 test 1 it is close to 60 FPS, so the fix helps there too.
Setup: M4 Max 64 GB, macOS 27.2.1, output 3840x2160, MetalFX temporal at Performance (scene 1916x1078), Character motion vectors on, 60 FPS cap, fixed timing, full screen. Same area in both runs, played by hand (
BB_FRAME_STATS=1, 5-second intervals). I compared only the intervals with the heaviest scene (80 or more tessellated draws per frame), where the load is nearly identical in both runs:Whole session: 55.7 → 59.1 FPS on average; 39 of 50 intervals at 59 FPS or better. The one low interval with 0.5.18 test 1 (44.8 FPS, worst frame 890 ms) has 84 shader compiles from entering the area for the first time, and the next interval is back at 59.6 FPS.
Two notes:
texture 1916x1080 (1 sizes)), and 0.5.17-5 doesn't log sizes, so I can't say whether the gain in this area comes from size changes or from something else the fix touched. The frame times are what I measured.No separate issue needed. I'll keep test 1 as my build for playing.
Wooloomooloo2 commentedon Nov 21, 2026
Thanks @fparrav, that's very thorough, and good to hear Old Yharnam's smoke columns got faster too. We'll close this when 0.5.18 ships. The fence waits from tessellation are already on our backlog.
Written with Claude Code.