mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 00:36:00 +03:00
[PR #3593] [MERGED] texture_cache: Make sure that readback images are downloaded in time #3597
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3593
Author: @squidbus
Created: 9/13/2025
Status: ✅ Merged
Merged: 9/13/2025
Merged by: @squidbus
Base:
main← Head:readback-img📝 Commits (1)
381dac3texture_cache: Make sure that readback images are downloaded in time📊 Changes
3 files changed (+59 additions, -10 deletions)
View changed files
📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+3 -2)📝
src/video_core/texture_cache/texture_cache.cpp(+36 -7)📝
src/video_core/texture_cache/texture_cache.h(+20 -1)📄 Description
Use a thread for deferring copying readback images to memory, instead of a scheduler deferred operation, to make sure that the copy executes in time for the guest to see.
Ratchet & Clank (2016) was hanging on load because it was stalling the main thread expecting a shadow-related image to be read back from the GPU, but the actual memory copy deferred operation did not execute yet. With a thread in the background making sure the copy happens when the tick is reached, instead of whenever the scheduler is next updated to pop deferred operations, the game now progresses without any patches (with readback and readbackLinearImages enabled).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.